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

Side by Side Diff: lib/compiler/implementation/js/nodes.dart

Issue 11033016: Added TODO. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 abstract class NodeVisitor<T> { 5 abstract class NodeVisitor<T> {
6 T visitProgram(Program node); 6 T visitProgram(Program node);
7 7
8 T visitBlock(Block node); 8 T visitBlock(Block node);
9 T visitExpressionStatement(ExpressionStatement node); 9 T visitExpressionStatement(ExpressionStatement node);
10 T visitEmptyStatement(EmptyStatement node); 10 T visitEmptyStatement(EmptyStatement node);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 T visitLiteralNumber(LiteralNumber node) => visitLiteral(node); 134 T visitLiteralNumber(LiteralNumber node) => visitLiteral(node);
135 T visitLiteralNull(LiteralNull node) => visitLiteral(node); 135 T visitLiteralNull(LiteralNull node) => visitLiteral(node);
136 136
137 T visitArrayInitializer(ArrayInitializer node) => visitExpression(node); 137 T visitArrayInitializer(ArrayInitializer node) => visitExpression(node);
138 T visitArrayElement(ArrayElement node) => visitNode(node); 138 T visitArrayElement(ArrayElement node) => visitNode(node);
139 T visitObjectInitializer(ObjectInitializer node) => visitExpression(node); 139 T visitObjectInitializer(ObjectInitializer node) => visitExpression(node);
140 T visitProperty(Property node) => visitNode(node); 140 T visitProperty(Property node) => visitNode(node);
141 T visitRegExpLiteral(RegExpLiteral node) => visitExpression(node); 141 T visitRegExpLiteral(RegExpLiteral node) => visitExpression(node);
142 } 142 }
143 143
144 class Node { 144 abstract class Node {
145 var sourcePosition; 145 var sourcePosition;
146 var endSourcePosition; 146 var endSourcePosition;
147 147
148 abstract accept(NodeVisitor visitor); 148 abstract accept(NodeVisitor visitor);
149 abstract void visitChildren(NodeVisitor visitor); 149 abstract void visitChildren(NodeVisitor visitor);
150 } 150 }
151 151
152 class Program extends Node { 152 class Program extends Node {
153 final List<Statement> body; 153 final List<Statement> body;
154 Program(this.body); 154 Program(this.body);
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 /** Contains the pattern and the flags.*/ 830 /** Contains the pattern and the flags.*/
831 String pattern; 831 String pattern;
832 832
833 RegExpLiteral(this.pattern); 833 RegExpLiteral(this.pattern);
834 834
835 accept(NodeVisitor visitor) => visitor.visitRegExpLiteral(this); 835 accept(NodeVisitor visitor) => visitor.visitRegExpLiteral(this);
836 void visitChildren(NodeVisitor visitor) {} 836 void visitChildren(NodeVisitor visitor) {}
837 837
838 int get precedenceLevel => PRIMARY; 838 int get precedenceLevel => PRIMARY;
839 } 839 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698