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

Unified Diff: runtime/vm/ast.h

Issue 8490019: Capturing for loop variables correctly (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 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 | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/code_generator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 1268)
+++ runtime/vm/ast.h (working copy)
@@ -42,6 +42,7 @@
V(InstanceCallNode, "instance call") \
V(StaticCallNode, "static call") \
V(ClosureCallNode, "closure call") \
+ V(CloneContextNode, "clone context") \
V(ConstructorCallNode, "constructor call") \
V(InstanceGetterNode, "instance getter call") \
V(InstanceSetterNode, "instance setter call") \
@@ -233,6 +234,21 @@
};
+class CloneContextNode : public AstNode {
+ public:
+ explicit CloneContextNode(intptr_t token_index)
+ : AstNode(token_index) {
+ }
+
+ virtual void VisitChildren(AstNodeVisitor* visitor) const { }
+
+ DECLARE_COMMON_NODE_FUNCTIONS(CloneContextNode);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CloneContextNode);
+};
+
+
class ArgumentListNode : public AstNode {
public:
explicit ArgumentListNode(intptr_t token_index)
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/code_generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698