Index: pkg/compiler/lib/src/js/template.dart |
diff --git a/pkg/compiler/lib/src/js/template.dart b/pkg/compiler/lib/src/js/template.dart |
index 7740431fc05ed717483c4adbbc7e189beac6657e..f08fe5239b4847576277eea271795f175b51ecae 100644 |
--- a/pkg/compiler/lib/src/js/template.dart |
+++ b/pkg/compiler/lib/src/js/template.dart |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-part of js_ast; |
+part of js; |
class TemplateManager { |
Map<String, Template> expressionTemplates = new Map<String, Template>(); |
@@ -499,6 +499,8 @@ class InstantiatorGeneratorVisitor implements NodeVisitor<Instantiator> { |
Instantiator visitLiteralStatement(LiteralStatement node) => |
TODO('visitLiteralStatement'); |
+ Instantiator visitBlob(Blob node) => |
+ TODO('visitBlob'); |
Instantiator visitLiteralExpression(LiteralExpression node) => |
TODO('visitLiteralExpression'); |
@@ -707,12 +709,12 @@ class InstantiatorGeneratorVisitor implements NodeVisitor<Instantiator> { |
} |
/** |
- * InterpolatedNodeAnalysis determines which AST trees contain |
- * [InterpolatedNode]s, and the names of the named interpolated nodes. |
+ * InterpolatedNodeAnalysis extract [InterpolatedNode]s from AST. |
*/ |
class InterpolatedNodeAnalysis extends BaseVisitor { |
- final Set<Node> containsInterpolatedNode = new Set<Node>(); |
- final Set<String> holeNames = new Set<String>(); |
+ final Setlet<Node> containsInterpolatedNode = new Setlet<Node>(); |
+ final List<InterpolatedNode> interpolatedNodes = <InterpolatedNode>[]; |
+ final Setlet<String> holeNames = new Setlet<String>(); |
int count = 0; |
InterpolatedNodeAnalysis(); |
@@ -732,6 +734,7 @@ class InterpolatedNodeAnalysis extends BaseVisitor { |
} |
visitInterpolatedNode(InterpolatedNode node) { |
+ interpolatedNodes.add(node); |
containsInterpolatedNode.add(node); |
if (node.isNamed) holeNames.add(node.nameOrPosition); |
++count; |