Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: pkg/compiler/lib/src/js/printer.dart

Issue 671513013: dart2js: Accept named holes in js-templates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase, and move finishedClasses to buildFinishClass. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/js/nodes.dart ('k') | pkg/compiler/lib/src/js/template.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js/printer.dart
diff --git a/pkg/compiler/lib/src/js/printer.dart b/pkg/compiler/lib/src/js/printer.dart
index 1a512cf8dd48fc96ae617c9ba241b031bba77a1b..f64bdfb0840752ab5bb41694424df10571d14492 100644
--- a/pkg/compiler/lib/src/js/printer.dart
+++ b/pkg/compiler/lib/src/js/printer.dart
@@ -874,7 +874,7 @@ class Printer extends Indentation implements NodeVisitor {
}
visitInterpolatedNode(InterpolatedNode node) {
- out('#${node.name}');
+ out('#${node.nameOrPosition}');
}
visitInterpolatedExpression(InterpolatedExpression node) =>
@@ -890,7 +890,7 @@ class Printer extends Indentation implements NodeVisitor {
visitInterpolatedNode(node);
visitInterpolatedStatement(InterpolatedStatement node) {
- outLn('#${node.name}');
+ outLn('#${node.nameOrPosition}');
}
void visitComment(Comment node) {
« no previous file with comments | « pkg/compiler/lib/src/js/nodes.dart ('k') | pkg/compiler/lib/src/js/template.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698