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

Unified Diff: pkg/kernel/lib/visitor.dart

Issue 2778223002: Add primitive to create closures and use it for closure conversion (Closed)
Patch Set: Follow common pattern for AST nodes with References in ClosureCreation Created 3 years, 9 months 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/kernel/lib/type_checker.dart ('k') | pkg/kernel/testcases/closures/capture_closure.dart.expect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/visitor.dart
diff --git a/pkg/kernel/lib/visitor.dart b/pkg/kernel/lib/visitor.dart
index c5cfc713b1ffae56f65b9ccb3550e40a55433da3..5494fd75bcc5d5ac1a07b7351fb2aaf5a8abad36 100644
--- a/pkg/kernel/lib/visitor.dart
+++ b/pkg/kernel/lib/visitor.dart
@@ -58,6 +58,7 @@ abstract class ExpressionVisitor<R> {
R visitVectorGet(VectorGet node) => defaultExpression(node);
R visitVectorSet(VectorSet node) => defaultExpression(node);
R visitVectorCopy(VectorCopy node) => defaultExpression(node);
+ R visitClosureCreation(ClosureCreation node) => defaultExpression(node);
}
abstract class StatementVisitor<R> {
@@ -169,6 +170,7 @@ class TreeVisitor<R>
R visitVectorGet(VectorGet node) => defaultExpression(node);
R visitVectorSet(VectorSet node) => defaultExpression(node);
R visitVectorCopy(VectorCopy node) => defaultExpression(node);
+ R visitClosureCreation(ClosureCreation node) => defaultExpression(node);
// Statements
R defaultStatement(Statement node) => defaultTreeNode(node);
@@ -392,6 +394,8 @@ abstract class ExpressionVisitor1<R> {
R visitVectorGet(VectorGet node, arg) => defaultExpression(node, arg);
R visitVectorSet(VectorSet node, arg) => defaultExpression(node, arg);
R visitVectorCopy(VectorCopy node, arg) => defaultExpression(node, arg);
+ R visitClosureCreation(ClosureCreation node, arg) =>
+ defaultExpression(node, arg);
}
abstract class StatementVisitor1<R> {
« no previous file with comments | « pkg/kernel/lib/type_checker.dart ('k') | pkg/kernel/testcases/closures/capture_closure.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698