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

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

Issue 2722283003: Initial implementation of interpreter for Kernel (Closed)
Patch Set: Fix naming Created 3 years, 10 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/interpreter/interpreter.dart ('k') | no next file » | 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 5aec3f7144894249eaa72eeeac6d9326676064c2..4790e73ab5c6510d165b2b7f1a583ff540f3f624 100644
--- a/pkg/kernel/lib/visitor.dart
+++ b/pkg/kernel/lib/visitor.dart
@@ -318,3 +318,66 @@ class Transformer extends TreeVisitor<TreeNode> {
return node;
}
}
+
+abstract class ExpressionVisitor1<R> {
+ R defaultExpression(Expression node, arg) => null;
+ R defaultBasicLiteral(BasicLiteral node, arg) => defaultExpression(node, arg);
+ R visitInvalidExpression(InvalidExpression node, arg) =>
+ defaultExpression(node, arg);
+ R visitVariableGet(VariableGet node, arg) => defaultExpression(node, arg);
+ R visitVariableSet(VariableSet node, arg) => defaultExpression(node, arg);
+ R visitPropertyGet(PropertyGet node, arg) => defaultExpression(node, arg);
+ R visitPropertySet(PropertySet node, arg) => defaultExpression(node, arg);
+ R visitDirectPropertyGet(DirectPropertyGet node, arg) =>
+ defaultExpression(node, arg);
+ R visitDirectPropertySet(DirectPropertySet node, arg) =>
+ defaultExpression(node, arg);
+ R visitSuperPropertyGet(SuperPropertyGet node, arg) =>
+ defaultExpression(node, arg);
+ R visitSuperPropertySet(SuperPropertySet node, arg) =>
+ defaultExpression(node, arg);
+ R visitStaticGet(StaticGet node, arg) => defaultExpression(node, arg);
+ R visitStaticSet(StaticSet node, arg) => defaultExpression(node, arg);
+ R visitMethodInvocation(MethodInvocation node, arg) =>
+ defaultExpression(node, arg);
+ R visitDirectMethodInvocation(DirectMethodInvocation node, arg) =>
+ defaultExpression(node, arg);
+ R visitSuperMethodInvocation(SuperMethodInvocation node, arg) =>
+ defaultExpression(node, arg);
+ R visitStaticInvocation(StaticInvocation node, arg) =>
+ defaultExpression(node, arg);
+ R visitConstructorInvocation(ConstructorInvocation node, arg) =>
+ defaultExpression(node, arg);
+ R visitNot(Not node, arg) => defaultExpression(node, arg);
+ R visitLogicalExpression(LogicalExpression node, arg) =>
+ defaultExpression(node, arg);
+ R visitConditionalExpression(ConditionalExpression node, arg) =>
+ defaultExpression(node, arg);
+ R visitStringConcatenation(StringConcatenation node, arg) =>
+ defaultExpression(node, arg);
+ R visitIsExpression(IsExpression node, arg) => defaultExpression(node, arg);
+ R visitAsExpression(AsExpression node, arg) => defaultExpression(node, arg);
+ R visitSymbolLiteral(SymbolLiteral node, arg) => defaultExpression(node, arg);
+ R visitTypeLiteral(TypeLiteral node, arg) => defaultExpression(node, arg);
+ R visitThisExpression(ThisExpression node, arg) =>
+ defaultExpression(node, arg);
+ R visitRethrow(Rethrow node, arg) => defaultExpression(node, arg);
+ R visitThrow(Throw node, arg) => defaultExpression(node, arg);
+ R visitListLiteral(ListLiteral node, arg) => defaultExpression(node, arg);
+ R visitMapLiteral(MapLiteral node, arg) => defaultExpression(node, arg);
+ R visitAwaitExpression(AwaitExpression node, arg) =>
+ defaultExpression(node, arg);
+ R visitFunctionExpression(FunctionExpression node, arg) =>
+ defaultExpression(node, arg);
+ R visitStringLiteral(StringLiteral node, arg) =>
+ defaultBasicLiteral(node, arg);
+ R visitIntLiteral(IntLiteral node, arg) => defaultBasicLiteral(node, arg);
+ R visitDoubleLiteral(DoubleLiteral node, arg) =>
+ defaultBasicLiteral(node, arg);
+ R visitBoolLiteral(BoolLiteral node, arg) => defaultBasicLiteral(node, arg);
+ R visitNullLiteral(NullLiteral node, arg) => defaultBasicLiteral(node, arg);
+ R visitLet(Let node, arg) => defaultExpression(node, arg);
+ R visitLoadLibrary(LoadLibrary node, arg) => defaultExpression(node, arg);
+ R visitCheckLibraryIsLoaded(CheckLibraryIsLoaded node, arg) =>
+ defaultExpression(node, arg);
+}
« no previous file with comments | « pkg/kernel/lib/interpreter/interpreter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698