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

Side by Side Diff: lib/src/js/nodes.dart

Issue 1011153002: js: fix core.Object, output order, static const fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 unified diff | Download patch
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 part of js_ast; 5 part of js_ast;
6 6
7 abstract class NodeVisitor<T> { 7 abstract class NodeVisitor<T> {
8 T visitProgram(Program node); 8 T visitProgram(Program node);
9 9
10 T visitBlock(Block node); 10 T visitBlock(Block node);
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 final VariableDeclaration name; 1178 final VariableDeclaration name;
1179 final Expression heritage; // Can be null. 1179 final Expression heritage; // Can be null.
1180 final List<Method> methods; 1180 final List<Method> methods;
1181 1181
1182 ClassExpression(this.name, this.heritage, this.methods); 1182 ClassExpression(this.name, this.heritage, this.methods);
1183 1183
1184 accept(NodeVisitor visitor) => visitor.visitClassExpression(this); 1184 accept(NodeVisitor visitor) => visitor.visitClassExpression(this);
1185 1185
1186 void visitChildren(NodeVisitor visitor) { 1186 void visitChildren(NodeVisitor visitor) {
1187 name.accept(visitor); 1187 name.accept(visitor);
1188 heritage.accept(visitor); 1188 if (heritage != null) heritage.accept(visitor);
1189 for (Method element in methods) element.accept(visitor); 1189 for (Method element in methods) element.accept(visitor);
1190 } 1190 }
1191 1191
1192 ClassExpression _clone() => new ClassExpression(name, heritage, methods); 1192 ClassExpression _clone() => new ClassExpression(name, heritage, methods);
1193 1193
1194 int get precedenceLevel => PRIMARY; 1194 int get precedenceLevel => PRIMARY;
1195 } 1195 }
1196 1196
1197 class Method extends Property { 1197 class Method extends Property {
1198 final bool isGetter; 1198 final bool isGetter;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1406 final Expression expression; 1406 final Expression expression;
1407 1407
1408 CommentExpression(this.comment, this.expression); 1408 CommentExpression(this.comment, this.expression);
1409 1409
1410 int get precedenceLevel => PRIMARY; 1410 int get precedenceLevel => PRIMARY;
1411 accept(NodeVisitor visitor) => visitor.visitCommentExpression(this); 1411 accept(NodeVisitor visitor) => visitor.visitCommentExpression(this);
1412 CommentExpression _clone() => new CommentExpression(comment, expression); 1412 CommentExpression _clone() => new CommentExpression(comment, expression);
1413 1413
1414 void visitChildren(NodeVisitor visitor) => expression.accept(visitor); 1414 void visitChildren(NodeVisitor visitor) => expression.accept(visitor);
1415 } 1415 }
OLDNEW
« lib/src/info.dart ('K') | « lib/src/info.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698