OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library engine.ast.visitors; | 5 library engine.ast.visitors; |
6 | 6 |
7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
8 | 8 |
9 /// An [AstVisitor] that delegates calls to visit methods to all [delegates] | 9 /// An [AstVisitor] that delegates calls to visit methods to all [delegates] |
10 /// before calling [visitChildren]. | 10 /// before calling [visitChildren]. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 } | 146 } |
147 | 147 |
148 @override | 148 @override |
149 T visitConditionalExpression(ConditionalExpression node) { | 149 T visitConditionalExpression(ConditionalExpression node) { |
150 _delegates.forEach((delegate) => delegate.visitConditionalExpression(node)); | 150 _delegates.forEach((delegate) => delegate.visitConditionalExpression(node)); |
151 node.visitChildren(this); | 151 node.visitChildren(this); |
152 return null; | 152 return null; |
153 } | 153 } |
154 | 154 |
155 @override | 155 @override |
| 156 T visitConfiguration(Configuration node) { |
| 157 _delegates.forEach((delegate) => delegate.visitConfiguration(node)); |
| 158 node.visitChildren(this); |
| 159 return null; |
| 160 } |
| 161 |
| 162 @override |
156 T visitConstructorDeclaration(ConstructorDeclaration node) { | 163 T visitConstructorDeclaration(ConstructorDeclaration node) { |
157 _delegates | 164 _delegates |
158 .forEach((delegate) => delegate.visitConstructorDeclaration(node)); | 165 .forEach((delegate) => delegate.visitConstructorDeclaration(node)); |
159 node.visitChildren(this); | 166 node.visitChildren(this); |
160 return null; | 167 return null; |
161 } | 168 } |
162 | 169 |
163 @override | 170 @override |
164 T visitConstructorFieldInitializer(ConstructorFieldInitializer node) { | 171 T visitConstructorFieldInitializer(ConstructorFieldInitializer node) { |
165 _delegates | 172 _delegates |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 205 } |
199 | 206 |
200 @override | 207 @override |
201 T visitDoStatement(DoStatement node) { | 208 T visitDoStatement(DoStatement node) { |
202 _delegates.forEach((delegate) => delegate.visitDoStatement(node)); | 209 _delegates.forEach((delegate) => delegate.visitDoStatement(node)); |
203 node.visitChildren(this); | 210 node.visitChildren(this); |
204 return null; | 211 return null; |
205 } | 212 } |
206 | 213 |
207 @override | 214 @override |
| 215 T visitDottedName(DottedName node) { |
| 216 _delegates.forEach((delegate) => delegate.visitDottedName(node)); |
| 217 node.visitChildren(this); |
| 218 return null; |
| 219 } |
| 220 |
| 221 @override |
208 T visitDoubleLiteral(DoubleLiteral node) { | 222 T visitDoubleLiteral(DoubleLiteral node) { |
209 _delegates.forEach((delegate) => delegate.visitDoubleLiteral(node)); | 223 _delegates.forEach((delegate) => delegate.visitDoubleLiteral(node)); |
210 node.visitChildren(this); | 224 node.visitChildren(this); |
211 return null; | 225 return null; |
212 } | 226 } |
213 | 227 |
214 @override | 228 @override |
215 T visitEmptyFunctionBody(EmptyFunctionBody node) { | 229 T visitEmptyFunctionBody(EmptyFunctionBody node) { |
216 _delegates.forEach((delegate) => delegate.visitEmptyFunctionBody(node)); | 230 _delegates.forEach((delegate) => delegate.visitEmptyFunctionBody(node)); |
217 node.visitChildren(this); | 231 node.visitChildren(this); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 } | 298 } |
285 | 299 |
286 @override | 300 @override |
287 T visitForEachStatement(ForEachStatement node) { | 301 T visitForEachStatement(ForEachStatement node) { |
288 _delegates.forEach((delegate) => delegate.visitForEachStatement(node)); | 302 _delegates.forEach((delegate) => delegate.visitForEachStatement(node)); |
289 node.visitChildren(this); | 303 node.visitChildren(this); |
290 return null; | 304 return null; |
291 } | 305 } |
292 | 306 |
293 @override | 307 @override |
| 308 T visitFormalParameterList(FormalParameterList node) { |
| 309 _delegates.forEach((delegate) => delegate.visitFormalParameterList(node)); |
| 310 node.visitChildren(this); |
| 311 return null; |
| 312 } |
| 313 |
| 314 @override |
294 T visitForStatement(ForStatement node) { | 315 T visitForStatement(ForStatement node) { |
295 _delegates.forEach((delegate) => delegate.visitForStatement(node)); | 316 _delegates.forEach((delegate) => delegate.visitForStatement(node)); |
296 node.visitChildren(this); | 317 node.visitChildren(this); |
297 return null; | 318 return null; |
298 } | 319 } |
299 | |
300 @override | |
301 T visitFormalParameterList(FormalParameterList node) { | |
302 _delegates.forEach((delegate) => delegate.visitFormalParameterList(node)); | |
303 node.visitChildren(this); | |
304 return null; | |
305 } | |
306 | 320 |
307 @override | 321 @override |
308 T visitFunctionDeclaration(FunctionDeclaration node) { | 322 T visitFunctionDeclaration(FunctionDeclaration node) { |
309 _delegates.forEach((delegate) => delegate.visitFunctionDeclaration(node)); | 323 _delegates.forEach((delegate) => delegate.visitFunctionDeclaration(node)); |
310 node.visitChildren(this); | 324 node.visitChildren(this); |
311 return null; | 325 return null; |
312 } | 326 } |
313 | 327 |
314 @override | 328 @override |
315 T visitFunctionDeclarationStatement(FunctionDeclarationStatement node) { | 329 T visitFunctionDeclarationStatement(FunctionDeclarationStatement node) { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 } | 549 } |
536 | 550 |
537 @override | 551 @override |
538 T visitPostfixExpression(PostfixExpression node) { | 552 T visitPostfixExpression(PostfixExpression node) { |
539 _delegates.forEach((delegate) => delegate.visitPostfixExpression(node)); | 553 _delegates.forEach((delegate) => delegate.visitPostfixExpression(node)); |
540 node.visitChildren(this); | 554 node.visitChildren(this); |
541 return null; | 555 return null; |
542 } | 556 } |
543 | 557 |
544 @override | 558 @override |
| 559 T visitPrefixedIdentifier(PrefixedIdentifier node) { |
| 560 _delegates.forEach((delegate) => delegate.visitPrefixedIdentifier(node)); |
| 561 node.visitChildren(this); |
| 562 return null; |
| 563 } |
| 564 |
| 565 @override |
545 T visitPrefixExpression(PrefixExpression node) { | 566 T visitPrefixExpression(PrefixExpression node) { |
546 _delegates.forEach((delegate) => delegate.visitPrefixExpression(node)); | 567 _delegates.forEach((delegate) => delegate.visitPrefixExpression(node)); |
547 node.visitChildren(this); | 568 node.visitChildren(this); |
548 return null; | 569 return null; |
549 } | 570 } |
550 | |
551 @override | |
552 T visitPrefixedIdentifier(PrefixedIdentifier node) { | |
553 _delegates.forEach((delegate) => delegate.visitPrefixedIdentifier(node)); | |
554 node.visitChildren(this); | |
555 return null; | |
556 } | |
557 | 571 |
558 @override | 572 @override |
559 T visitPropertyAccess(PropertyAccess node) { | 573 T visitPropertyAccess(PropertyAccess node) { |
560 _delegates.forEach((delegate) => delegate.visitPropertyAccess(node)); | 574 _delegates.forEach((delegate) => delegate.visitPropertyAccess(node)); |
561 node.visitChildren(this); | 575 node.visitChildren(this); |
562 return null; | 576 return null; |
563 } | 577 } |
564 | 578 |
565 @override | 579 @override |
566 T visitRedirectingConstructorInvocation( | 580 T visitRedirectingConstructorInvocation( |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 return null; | 778 return null; |
765 } | 779 } |
766 | 780 |
767 @override | 781 @override |
768 T visitYieldStatement(YieldStatement node) { | 782 T visitYieldStatement(YieldStatement node) { |
769 _delegates.forEach((delegate) => delegate.visitYieldStatement(node)); | 783 _delegates.forEach((delegate) => delegate.visitYieldStatement(node)); |
770 node.visitChildren(this); | 784 node.visitChildren(this); |
771 return null; | 785 return null; |
772 } | 786 } |
773 } | 787 } |
OLD | NEW |