| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |