OLD | NEW |
1 // Copyright (c) 2011, 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 package com.google.dart.compiler.parser; | 5 package com.google.dart.compiler.parser; |
6 | 6 |
| 7 import com.google.dart.compiler.ast.ASTVisitor; |
7 import com.google.dart.compiler.ast.DartArrayAccess; | 8 import com.google.dart.compiler.ast.DartArrayAccess; |
8 import com.google.dart.compiler.ast.DartArrayLiteral; | 9 import com.google.dart.compiler.ast.DartArrayLiteral; |
9 import com.google.dart.compiler.ast.DartAssertion; | |
10 import com.google.dart.compiler.ast.DartBinaryExpression; | 10 import com.google.dart.compiler.ast.DartBinaryExpression; |
11 import com.google.dart.compiler.ast.DartBlock; | 11 import com.google.dart.compiler.ast.DartBlock; |
12 import com.google.dart.compiler.ast.DartBooleanLiteral; | 12 import com.google.dart.compiler.ast.DartBooleanLiteral; |
13 import com.google.dart.compiler.ast.DartBreakStatement; | 13 import com.google.dart.compiler.ast.DartBreakStatement; |
14 import com.google.dart.compiler.ast.DartCase; | 14 import com.google.dart.compiler.ast.DartCase; |
15 import com.google.dart.compiler.ast.DartCatchBlock; | 15 import com.google.dart.compiler.ast.DartCatchBlock; |
16 import com.google.dart.compiler.ast.DartClass; | 16 import com.google.dart.compiler.ast.DartClass; |
17 import com.google.dart.compiler.ast.DartConditional; | 17 import com.google.dart.compiler.ast.DartConditional; |
18 import com.google.dart.compiler.ast.DartContinueStatement; | 18 import com.google.dart.compiler.ast.DartContinueStatement; |
19 import com.google.dart.compiler.ast.DartDefault; | 19 import com.google.dart.compiler.ast.DartDefault; |
(...skipping 18 matching lines...) Expand all Loading... |
38 import com.google.dart.compiler.ast.DartLibraryDirective; | 38 import com.google.dart.compiler.ast.DartLibraryDirective; |
39 import com.google.dart.compiler.ast.DartMapLiteral; | 39 import com.google.dart.compiler.ast.DartMapLiteral; |
40 import com.google.dart.compiler.ast.DartMapLiteralEntry; | 40 import com.google.dart.compiler.ast.DartMapLiteralEntry; |
41 import com.google.dart.compiler.ast.DartMethodDefinition; | 41 import com.google.dart.compiler.ast.DartMethodDefinition; |
42 import com.google.dart.compiler.ast.DartMethodInvocation; | 42 import com.google.dart.compiler.ast.DartMethodInvocation; |
43 import com.google.dart.compiler.ast.DartNamedExpression; | 43 import com.google.dart.compiler.ast.DartNamedExpression; |
44 import com.google.dart.compiler.ast.DartNativeBlock; | 44 import com.google.dart.compiler.ast.DartNativeBlock; |
45 import com.google.dart.compiler.ast.DartNativeDirective; | 45 import com.google.dart.compiler.ast.DartNativeDirective; |
46 import com.google.dart.compiler.ast.DartNewExpression; | 46 import com.google.dart.compiler.ast.DartNewExpression; |
47 import com.google.dart.compiler.ast.DartNode; | 47 import com.google.dart.compiler.ast.DartNode; |
48 import com.google.dart.compiler.ast.ASTVisitor; | |
49 import com.google.dart.compiler.ast.DartNullLiteral; | 48 import com.google.dart.compiler.ast.DartNullLiteral; |
50 import com.google.dart.compiler.ast.DartParameter; | 49 import com.google.dart.compiler.ast.DartParameter; |
51 import com.google.dart.compiler.ast.DartParameterizedTypeNode; | 50 import com.google.dart.compiler.ast.DartParameterizedTypeNode; |
52 import com.google.dart.compiler.ast.DartParenthesizedExpression; | 51 import com.google.dart.compiler.ast.DartParenthesizedExpression; |
53 import com.google.dart.compiler.ast.DartPropertyAccess; | 52 import com.google.dart.compiler.ast.DartPropertyAccess; |
54 import com.google.dart.compiler.ast.DartRedirectConstructorInvocation; | 53 import com.google.dart.compiler.ast.DartRedirectConstructorInvocation; |
55 import com.google.dart.compiler.ast.DartResourceDirective; | 54 import com.google.dart.compiler.ast.DartResourceDirective; |
56 import com.google.dart.compiler.ast.DartReturnStatement; | 55 import com.google.dart.compiler.ast.DartReturnStatement; |
57 import com.google.dart.compiler.ast.DartSourceDirective; | 56 import com.google.dart.compiler.ast.DartSourceDirective; |
58 import com.google.dart.compiler.ast.DartStringInterpolation; | 57 import com.google.dart.compiler.ast.DartStringInterpolation; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 119 } |
121 | 120 |
122 @Override | 121 @Override |
123 public Void visitArrayLiteral(DartArrayLiteral node) { | 122 public Void visitArrayLiteral(DartArrayLiteral node) { |
124 validate(node); | 123 validate(node); |
125 node.visitChildren(this); | 124 node.visitChildren(this); |
126 return null; | 125 return null; |
127 } | 126 } |
128 | 127 |
129 @Override | 128 @Override |
130 public Void visitAssertion(DartAssertion node) { | |
131 validate(node); | |
132 node.visitChildren(this); | |
133 return null; | |
134 } | |
135 | |
136 @Override | |
137 public Void visitBinaryExpression(DartBinaryExpression node) { | 129 public Void visitBinaryExpression(DartBinaryExpression node) { |
138 validate(node); | 130 validate(node); |
139 node.visitChildren(this); | 131 node.visitChildren(this); |
140 return null; | 132 return null; |
141 } | 133 } |
142 | 134 |
143 @Override | 135 @Override |
144 public Void visitBlock(DartBlock node) { | 136 public Void visitBlock(DartBlock node) { |
145 validate(node); | 137 validate(node); |
146 node.visitChildren(this); | 138 node.visitChildren(this); |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 } | 619 } |
628 } | 620 } |
629 | 621 |
630 @Override | 622 @Override |
631 public Void visitParameterizedTypeNode(DartParameterizedTypeNode node) { | 623 public Void visitParameterizedTypeNode(DartParameterizedTypeNode node) { |
632 validate(node); | 624 validate(node); |
633 node.visitChildren(this); | 625 node.visitChildren(this); |
634 return null; | 626 return null; |
635 } | 627 } |
636 } | 628 } |
OLD | NEW |