| 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; | |
| 6 | |
| 7 abstract class NodeVisitor<T> { | 5 abstract class NodeVisitor<T> { |
| 8 T visitProgram(Program node); | 6 T visitProgram(Program node); |
| 9 | 7 |
| 10 T visitBlock(Block node); | 8 T visitBlock(Block node); |
| 11 T visitExpressionStatement(ExpressionStatement node); | 9 T visitExpressionStatement(ExpressionStatement node); |
| 12 T visitEmptyStatement(EmptyStatement node); | 10 T visitEmptyStatement(EmptyStatement node); |
| 13 T visitIf(If node); | 11 T visitIf(If node); |
| 14 T visitFor(For node); | 12 T visitFor(For node); |
| 15 T visitForIn(ForIn node); | 13 T visitForIn(ForIn node); |
| 16 T visitWhile(While node); | 14 T visitWhile(While node); |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 /** Contains the pattern and the flags.*/ | 830 /** Contains the pattern and the flags.*/ |
| 833 String pattern; | 831 String pattern; |
| 834 | 832 |
| 835 RegExpLiteral(this.pattern); | 833 RegExpLiteral(this.pattern); |
| 836 | 834 |
| 837 accept(NodeVisitor visitor) => visitor.visitRegExpLiteral(this); | 835 accept(NodeVisitor visitor) => visitor.visitRegExpLiteral(this); |
| 838 void visitChildren(NodeVisitor visitor) {} | 836 void visitChildren(NodeVisitor visitor) {} |
| 839 | 837 |
| 840 int get precedenceLevel => PRIMARY; | 838 int get precedenceLevel => PRIMARY; |
| 841 } | 839 } |
| OLD | NEW |