| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 node.visitChildren(this); | 296 node.visitChildren(this); |
| 297 return null; | 297 return null; |
| 298 } | 298 } |
| 299 | 299 |
| 300 @override | 300 @override |
| 301 T visitFormalParameterList(FormalParameterList node) { | 301 T visitFormalParameterList(FormalParameterList node) { |
| 302 _delegates.forEach((delegate) => delegate.visitFormalParameterList(node)); | 302 _delegates.forEach((delegate) => delegate.visitFormalParameterList(node)); |
| 303 node.visitChildren(this); | 303 node.visitChildren(this); |
| 304 return null; | 304 return null; |
| 305 } | 305 } |
| 306 |
| 306 @override | 307 @override |
| 307 T visitFunctionDeclaration(FunctionDeclaration node) { | 308 T visitFunctionDeclaration(FunctionDeclaration node) { |
| 308 _delegates.forEach((delegate) => delegate.visitFunctionDeclaration(node)); | 309 _delegates.forEach((delegate) => delegate.visitFunctionDeclaration(node)); |
| 309 node.visitChildren(this); | 310 node.visitChildren(this); |
| 310 return null; | 311 return null; |
| 311 } | 312 } |
| 312 | 313 |
| 313 @override | 314 @override |
| 314 T visitFunctionDeclarationStatement(FunctionDeclarationStatement node) { | 315 T visitFunctionDeclarationStatement(FunctionDeclarationStatement node) { |
| 315 _delegates.forEach( | 316 _delegates.forEach( |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 node.visitChildren(this); | 469 node.visitChildren(this); |
| 469 return null; | 470 return null; |
| 470 } | 471 } |
| 471 | 472 |
| 472 @override | 473 @override |
| 473 T visitMethodDeclaration(MethodDeclaration node) { | 474 T visitMethodDeclaration(MethodDeclaration node) { |
| 474 _delegates.forEach((delegate) => delegate.visitMethodDeclaration(node)); | 475 _delegates.forEach((delegate) => delegate.visitMethodDeclaration(node)); |
| 475 node.visitChildren(this); | 476 node.visitChildren(this); |
| 476 return null; | 477 return null; |
| 477 } | 478 } |
| 479 |
| 478 @override | 480 @override |
| 479 T visitMethodInvocation(MethodInvocation node) { | 481 T visitMethodInvocation(MethodInvocation node) { |
| 480 _delegates.forEach((delegate) => delegate.visitMethodInvocation(node)); | 482 _delegates.forEach((delegate) => delegate.visitMethodInvocation(node)); |
| 481 node.visitChildren(this); | 483 node.visitChildren(this); |
| 482 return null; | 484 return null; |
| 483 } | 485 } |
| 484 | 486 |
| 485 @override | 487 @override |
| 486 T visitNamedExpression(NamedExpression node) { | 488 T visitNamedExpression(NamedExpression node) { |
| 487 _delegates.forEach((delegate) => delegate.visitNamedExpression(node)); | 489 _delegates.forEach((delegate) => delegate.visitNamedExpression(node)); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 node.visitChildren(this); | 540 node.visitChildren(this); |
| 539 return null; | 541 return null; |
| 540 } | 542 } |
| 541 | 543 |
| 542 @override | 544 @override |
| 543 T visitPrefixExpression(PrefixExpression node) { | 545 T visitPrefixExpression(PrefixExpression node) { |
| 544 _delegates.forEach((delegate) => delegate.visitPrefixExpression(node)); | 546 _delegates.forEach((delegate) => delegate.visitPrefixExpression(node)); |
| 545 node.visitChildren(this); | 547 node.visitChildren(this); |
| 546 return null; | 548 return null; |
| 547 } | 549 } |
| 550 |
| 548 @override | 551 @override |
| 549 T visitPrefixedIdentifier(PrefixedIdentifier node) { | 552 T visitPrefixedIdentifier(PrefixedIdentifier node) { |
| 550 _delegates.forEach((delegate) => delegate.visitPrefixedIdentifier(node)); | 553 _delegates.forEach((delegate) => delegate.visitPrefixedIdentifier(node)); |
| 551 node.visitChildren(this); | 554 node.visitChildren(this); |
| 552 return null; | 555 return null; |
| 553 } | 556 } |
| 554 | 557 |
| 555 @override | 558 @override |
| 556 T visitPropertyAccess(PropertyAccess node) { | 559 T visitPropertyAccess(PropertyAccess node) { |
| 557 _delegates.forEach((delegate) => delegate.visitPropertyAccess(node)); | 560 _delegates.forEach((delegate) => delegate.visitPropertyAccess(node)); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 return null; | 764 return null; |
| 762 } | 765 } |
| 763 | 766 |
| 764 @override | 767 @override |
| 765 T visitYieldStatement(YieldStatement node) { | 768 T visitYieldStatement(YieldStatement node) { |
| 766 _delegates.forEach((delegate) => delegate.visitYieldStatement(node)); | 769 _delegates.forEach((delegate) => delegate.visitYieldStatement(node)); |
| 767 node.visitChildren(this); | 770 node.visitChildren(this); |
| 768 return null; | 771 return null; |
| 769 } | 772 } |
| 770 } | 773 } |
| OLD | NEW |