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

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

Issue 960353003: cleanup: js_codegen now returns a js_ast.Program (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
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 class Await extends Expression { 1369 class Await extends Expression {
1370 /** The awaited expression. */ 1370 /** The awaited expression. */
1371 final Expression expression; 1371 final Expression expression;
1372 1372
1373 Await(this.expression); 1373 Await(this.expression);
1374 1374
1375 int get precedenceLevel => UNARY; 1375 int get precedenceLevel => UNARY;
1376 accept(NodeVisitor visitor) => visitor.visitAwait(this); 1376 accept(NodeVisitor visitor) => visitor.visitAwait(this);
1377 void visitChildren(NodeVisitor visitor) => expression.accept(visitor); 1377 void visitChildren(NodeVisitor visitor) => expression.accept(visitor);
1378 Await _clone() => new Await(expression); 1378 Await _clone() => new Await(expression);
1379
1380 } 1379 }
1381 1380
1382 /** 1381 /**
1383 * A comment. 1382 * A comment.
1384 * 1383 *
1385 * Extends [Statement] so we can add comments before statements in 1384 * Extends [Statement] so we can add comments before statements in
1386 * [Block] and [Program]. 1385 * [Block] and [Program].
1387 */ 1386 */
1388 class Comment extends Statement { 1387 class Comment extends Statement {
1389 final String comment; 1388 final String comment;
(...skipping 17 matching lines...) Expand all
1407 final Expression expression; 1406 final Expression expression;
1408 1407
1409 CommentExpression(this.comment, this.expression); 1408 CommentExpression(this.comment, this.expression);
1410 1409
1411 int get precedenceLevel => PRIMARY; 1410 int get precedenceLevel => PRIMARY;
1412 accept(NodeVisitor visitor) => visitor.visitCommentExpression(this); 1411 accept(NodeVisitor visitor) => visitor.visitCommentExpression(this);
1413 CommentExpression _clone() => new CommentExpression(comment, expression); 1412 CommentExpression _clone() => new CommentExpression(comment, expression);
1414 1413
1415 void visitChildren(NodeVisitor visitor) => expression.accept(visitor); 1414 void visitChildren(NodeVisitor visitor) => expression.accept(visitor);
1416 } 1415 }
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698