| 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 @deprecated |
| 6 library analyzer.src.generated.visitors; |
| 6 | 7 |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 8 export 'package:analyzer/dart/ast/visitor.dart' show DelegatingAstVisitor; |
| 8 | |
| 9 /// An [AstVisitor] that delegates calls to visit methods to all [delegates] | |
| 10 /// before calling [visitChildren]. | |
| 11 class DelegatingAstVisitor<T> implements AstVisitor<T> { | |
| 12 Iterable<AstVisitor<T>> _delegates; | |
| 13 DelegatingAstVisitor(this._delegates); | |
| 14 | |
| 15 @override | |
| 16 T visitAdjacentStrings(AdjacentStrings node) { | |
| 17 _delegates.forEach((delegate) => delegate.visitAdjacentStrings(node)); | |
| 18 node.visitChildren(this); | |
| 19 return null; | |
| 20 } | |
| 21 | |
| 22 @override | |
| 23 T visitAnnotation(Annotation node) { | |
| 24 _delegates.forEach((delegate) => delegate.visitAnnotation(node)); | |
| 25 node.visitChildren(this); | |
| 26 return null; | |
| 27 } | |
| 28 | |
| 29 @override | |
| 30 T visitArgumentList(ArgumentList node) { | |
| 31 _delegates.forEach((delegate) => delegate.visitArgumentList(node)); | |
| 32 node.visitChildren(this); | |
| 33 return null; | |
| 34 } | |
| 35 | |
| 36 @override | |
| 37 T visitAsExpression(AsExpression node) { | |
| 38 _delegates.forEach((delegate) => delegate.visitAsExpression(node)); | |
| 39 node.visitChildren(this); | |
| 40 return null; | |
| 41 } | |
| 42 | |
| 43 @override | |
| 44 T visitAssertStatement(AssertStatement node) { | |
| 45 _delegates.forEach((delegate) => delegate.visitAssertStatement(node)); | |
| 46 node.visitChildren(this); | |
| 47 return null; | |
| 48 } | |
| 49 | |
| 50 @override | |
| 51 T visitAssignmentExpression(AssignmentExpression node) { | |
| 52 _delegates.forEach((delegate) => delegate.visitAssignmentExpression(node)); | |
| 53 node.visitChildren(this); | |
| 54 return null; | |
| 55 } | |
| 56 | |
| 57 @override | |
| 58 T visitAwaitExpression(AwaitExpression node) { | |
| 59 _delegates.forEach((delegate) => delegate.visitAwaitExpression(node)); | |
| 60 node.visitChildren(this); | |
| 61 return null; | |
| 62 } | |
| 63 | |
| 64 @override | |
| 65 T visitBinaryExpression(BinaryExpression node) { | |
| 66 _delegates.forEach((delegate) => delegate.visitBinaryExpression(node)); | |
| 67 node.visitChildren(this); | |
| 68 return null; | |
| 69 } | |
| 70 | |
| 71 @override | |
| 72 T visitBlock(Block node) { | |
| 73 _delegates.forEach((delegate) => delegate.visitBlock(node)); | |
| 74 node.visitChildren(this); | |
| 75 return null; | |
| 76 } | |
| 77 | |
| 78 @override | |
| 79 T visitBlockFunctionBody(BlockFunctionBody node) { | |
| 80 _delegates.forEach((delegate) => delegate.visitBlockFunctionBody(node)); | |
| 81 node.visitChildren(this); | |
| 82 return null; | |
| 83 } | |
| 84 | |
| 85 @override | |
| 86 T visitBooleanLiteral(BooleanLiteral node) { | |
| 87 _delegates.forEach((delegate) => delegate.visitBooleanLiteral(node)); | |
| 88 node.visitChildren(this); | |
| 89 return null; | |
| 90 } | |
| 91 | |
| 92 @override | |
| 93 T visitBreakStatement(BreakStatement node) { | |
| 94 _delegates.forEach((delegate) => delegate.visitBreakStatement(node)); | |
| 95 node.visitChildren(this); | |
| 96 return null; | |
| 97 } | |
| 98 | |
| 99 @override | |
| 100 T visitCascadeExpression(CascadeExpression node) { | |
| 101 _delegates.forEach((delegate) => delegate.visitCascadeExpression(node)); | |
| 102 node.visitChildren(this); | |
| 103 return null; | |
| 104 } | |
| 105 | |
| 106 @override | |
| 107 T visitCatchClause(CatchClause node) { | |
| 108 _delegates.forEach((delegate) => delegate.visitCatchClause(node)); | |
| 109 node.visitChildren(this); | |
| 110 return null; | |
| 111 } | |
| 112 | |
| 113 @override | |
| 114 T visitClassDeclaration(ClassDeclaration node) { | |
| 115 _delegates.forEach((delegate) => delegate.visitClassDeclaration(node)); | |
| 116 node.visitChildren(this); | |
| 117 return null; | |
| 118 } | |
| 119 | |
| 120 @override | |
| 121 T visitClassTypeAlias(ClassTypeAlias node) { | |
| 122 _delegates.forEach((delegate) => delegate.visitClassTypeAlias(node)); | |
| 123 node.visitChildren(this); | |
| 124 return null; | |
| 125 } | |
| 126 | |
| 127 @override | |
| 128 T visitComment(Comment node) { | |
| 129 _delegates.forEach((delegate) => delegate.visitComment(node)); | |
| 130 node.visitChildren(this); | |
| 131 return null; | |
| 132 } | |
| 133 | |
| 134 @override | |
| 135 T visitCommentReference(CommentReference node) { | |
| 136 _delegates.forEach((delegate) => delegate.visitCommentReference(node)); | |
| 137 node.visitChildren(this); | |
| 138 return null; | |
| 139 } | |
| 140 | |
| 141 @override | |
| 142 T visitCompilationUnit(CompilationUnit node) { | |
| 143 _delegates.forEach((delegate) => delegate.visitCompilationUnit(node)); | |
| 144 node.visitChildren(this); | |
| 145 return null; | |
| 146 } | |
| 147 | |
| 148 @override | |
| 149 T visitConditionalExpression(ConditionalExpression node) { | |
| 150 _delegates.forEach((delegate) => delegate.visitConditionalExpression(node)); | |
| 151 node.visitChildren(this); | |
| 152 return null; | |
| 153 } | |
| 154 | |
| 155 @override | |
| 156 T visitConstructorDeclaration(ConstructorDeclaration node) { | |
| 157 _delegates | |
| 158 .forEach((delegate) => delegate.visitConstructorDeclaration(node)); | |
| 159 node.visitChildren(this); | |
| 160 return null; | |
| 161 } | |
| 162 | |
| 163 @override | |
| 164 T visitConstructorFieldInitializer(ConstructorFieldInitializer node) { | |
| 165 _delegates | |
| 166 .forEach((delegate) => delegate.visitConstructorFieldInitializer(node)); | |
| 167 node.visitChildren(this); | |
| 168 return null; | |
| 169 } | |
| 170 | |
| 171 @override | |
| 172 T visitConstructorName(ConstructorName node) { | |
| 173 _delegates.forEach((delegate) => delegate.visitConstructorName(node)); | |
| 174 node.visitChildren(this); | |
| 175 return null; | |
| 176 } | |
| 177 | |
| 178 @override | |
| 179 T visitContinueStatement(ContinueStatement node) { | |
| 180 _delegates.forEach((delegate) => delegate.visitContinueStatement(node)); | |
| 181 node.visitChildren(this); | |
| 182 return null; | |
| 183 } | |
| 184 | |
| 185 @override | |
| 186 T visitDeclaredIdentifier(DeclaredIdentifier node) { | |
| 187 _delegates.forEach((delegate) => delegate.visitDeclaredIdentifier(node)); | |
| 188 node.visitChildren(this); | |
| 189 return null; | |
| 190 } | |
| 191 | |
| 192 @override | |
| 193 T visitDefaultFormalParameter(DefaultFormalParameter node) { | |
| 194 _delegates | |
| 195 .forEach((delegate) => delegate.visitDefaultFormalParameter(node)); | |
| 196 node.visitChildren(this); | |
| 197 return null; | |
| 198 } | |
| 199 | |
| 200 @override | |
| 201 T visitDoStatement(DoStatement node) { | |
| 202 _delegates.forEach((delegate) => delegate.visitDoStatement(node)); | |
| 203 node.visitChildren(this); | |
| 204 return null; | |
| 205 } | |
| 206 | |
| 207 @override | |
| 208 T visitDoubleLiteral(DoubleLiteral node) { | |
| 209 _delegates.forEach((delegate) => delegate.visitDoubleLiteral(node)); | |
| 210 node.visitChildren(this); | |
| 211 return null; | |
| 212 } | |
| 213 | |
| 214 @override | |
| 215 T visitEmptyFunctionBody(EmptyFunctionBody node) { | |
| 216 _delegates.forEach((delegate) => delegate.visitEmptyFunctionBody(node)); | |
| 217 node.visitChildren(this); | |
| 218 return null; | |
| 219 } | |
| 220 | |
| 221 @override | |
| 222 T visitEmptyStatement(EmptyStatement node) { | |
| 223 _delegates.forEach((delegate) => delegate.visitEmptyStatement(node)); | |
| 224 node.visitChildren(this); | |
| 225 return null; | |
| 226 } | |
| 227 | |
| 228 @override | |
| 229 T visitEnumConstantDeclaration(EnumConstantDeclaration node) { | |
| 230 _delegates | |
| 231 .forEach((delegate) => delegate.visitEnumConstantDeclaration(node)); | |
| 232 node.visitChildren(this); | |
| 233 return null; | |
| 234 } | |
| 235 | |
| 236 @override | |
| 237 T visitEnumDeclaration(EnumDeclaration node) { | |
| 238 _delegates.forEach((delegate) => delegate.visitEnumDeclaration(node)); | |
| 239 node.visitChildren(this); | |
| 240 return null; | |
| 241 } | |
| 242 | |
| 243 @override | |
| 244 T visitExportDirective(ExportDirective node) { | |
| 245 _delegates.forEach((delegate) => delegate.visitExportDirective(node)); | |
| 246 node.visitChildren(this); | |
| 247 return null; | |
| 248 } | |
| 249 | |
| 250 @override | |
| 251 T visitExpressionFunctionBody(ExpressionFunctionBody node) { | |
| 252 _delegates | |
| 253 .forEach((delegate) => delegate.visitExpressionFunctionBody(node)); | |
| 254 node.visitChildren(this); | |
| 255 return null; | |
| 256 } | |
| 257 | |
| 258 @override | |
| 259 T visitExpressionStatement(ExpressionStatement node) { | |
| 260 _delegates.forEach((delegate) => delegate.visitExpressionStatement(node)); | |
| 261 node.visitChildren(this); | |
| 262 return null; | |
| 263 } | |
| 264 | |
| 265 @override | |
| 266 T visitExtendsClause(ExtendsClause node) { | |
| 267 _delegates.forEach((delegate) => delegate.visitExtendsClause(node)); | |
| 268 node.visitChildren(this); | |
| 269 return null; | |
| 270 } | |
| 271 | |
| 272 @override | |
| 273 T visitFieldDeclaration(FieldDeclaration node) { | |
| 274 _delegates.forEach((delegate) => delegate.visitFieldDeclaration(node)); | |
| 275 node.visitChildren(this); | |
| 276 return null; | |
| 277 } | |
| 278 | |
| 279 @override | |
| 280 T visitFieldFormalParameter(FieldFormalParameter node) { | |
| 281 _delegates.forEach((delegate) => delegate.visitFieldFormalParameter(node)); | |
| 282 node.visitChildren(this); | |
| 283 return null; | |
| 284 } | |
| 285 | |
| 286 @override | |
| 287 T visitForEachStatement(ForEachStatement node) { | |
| 288 _delegates.forEach((delegate) => delegate.visitForEachStatement(node)); | |
| 289 node.visitChildren(this); | |
| 290 return null; | |
| 291 } | |
| 292 | |
| 293 @override | |
| 294 T visitForStatement(ForStatement node) { | |
| 295 _delegates.forEach((delegate) => delegate.visitForStatement(node)); | |
| 296 node.visitChildren(this); | |
| 297 return null; | |
| 298 } | |
| 299 | |
| 300 @override | |
| 301 T visitFormalParameterList(FormalParameterList node) { | |
| 302 _delegates.forEach((delegate) => delegate.visitFormalParameterList(node)); | |
| 303 node.visitChildren(this); | |
| 304 return null; | |
| 305 } | |
| 306 | |
| 307 @override | |
| 308 T visitFunctionDeclaration(FunctionDeclaration node) { | |
| 309 _delegates.forEach((delegate) => delegate.visitFunctionDeclaration(node)); | |
| 310 node.visitChildren(this); | |
| 311 return null; | |
| 312 } | |
| 313 | |
| 314 @override | |
| 315 T visitFunctionDeclarationStatement(FunctionDeclarationStatement node) { | |
| 316 _delegates.forEach( | |
| 317 (delegate) => delegate.visitFunctionDeclarationStatement(node)); | |
| 318 node.visitChildren(this); | |
| 319 return null; | |
| 320 } | |
| 321 | |
| 322 @override | |
| 323 T visitFunctionExpression(FunctionExpression node) { | |
| 324 _delegates.forEach((delegate) => delegate.visitFunctionExpression(node)); | |
| 325 node.visitChildren(this); | |
| 326 return null; | |
| 327 } | |
| 328 | |
| 329 @override | |
| 330 T visitFunctionExpressionInvocation(FunctionExpressionInvocation node) { | |
| 331 _delegates.forEach( | |
| 332 (delegate) => delegate.visitFunctionExpressionInvocation(node)); | |
| 333 node.visitChildren(this); | |
| 334 return null; | |
| 335 } | |
| 336 | |
| 337 @override | |
| 338 T visitFunctionTypeAlias(FunctionTypeAlias node) { | |
| 339 _delegates.forEach((delegate) => delegate.visitFunctionTypeAlias(node)); | |
| 340 node.visitChildren(this); | |
| 341 return null; | |
| 342 } | |
| 343 | |
| 344 @override | |
| 345 T visitFunctionTypedFormalParameter(FunctionTypedFormalParameter node) { | |
| 346 _delegates.forEach( | |
| 347 (delegate) => delegate.visitFunctionTypedFormalParameter(node)); | |
| 348 node.visitChildren(this); | |
| 349 return null; | |
| 350 } | |
| 351 | |
| 352 @override | |
| 353 T visitHideCombinator(HideCombinator node) { | |
| 354 _delegates.forEach((delegate) => delegate.visitHideCombinator(node)); | |
| 355 node.visitChildren(this); | |
| 356 return null; | |
| 357 } | |
| 358 | |
| 359 @override | |
| 360 T visitIfStatement(IfStatement node) { | |
| 361 _delegates.forEach((delegate) => delegate.visitIfStatement(node)); | |
| 362 node.visitChildren(this); | |
| 363 return null; | |
| 364 } | |
| 365 | |
| 366 @override | |
| 367 T visitImplementsClause(ImplementsClause node) { | |
| 368 _delegates.forEach((delegate) => delegate.visitImplementsClause(node)); | |
| 369 node.visitChildren(this); | |
| 370 return null; | |
| 371 } | |
| 372 | |
| 373 @override | |
| 374 T visitImportDirective(ImportDirective node) { | |
| 375 _delegates.forEach((delegate) => delegate.visitImportDirective(node)); | |
| 376 node.visitChildren(this); | |
| 377 return null; | |
| 378 } | |
| 379 | |
| 380 @override | |
| 381 T visitIndexExpression(IndexExpression node) { | |
| 382 _delegates.forEach((delegate) => delegate.visitIndexExpression(node)); | |
| 383 node.visitChildren(this); | |
| 384 return null; | |
| 385 } | |
| 386 | |
| 387 @override | |
| 388 T visitInstanceCreationExpression(InstanceCreationExpression node) { | |
| 389 _delegates | |
| 390 .forEach((delegate) => delegate.visitInstanceCreationExpression(node)); | |
| 391 node.visitChildren(this); | |
| 392 return null; | |
| 393 } | |
| 394 | |
| 395 @override | |
| 396 T visitIntegerLiteral(IntegerLiteral node) { | |
| 397 _delegates.forEach((delegate) => delegate.visitIntegerLiteral(node)); | |
| 398 node.visitChildren(this); | |
| 399 return null; | |
| 400 } | |
| 401 | |
| 402 @override | |
| 403 T visitInterpolationExpression(InterpolationExpression node) { | |
| 404 _delegates | |
| 405 .forEach((delegate) => delegate.visitInterpolationExpression(node)); | |
| 406 node.visitChildren(this); | |
| 407 return null; | |
| 408 } | |
| 409 | |
| 410 @override | |
| 411 T visitInterpolationString(InterpolationString node) { | |
| 412 _delegates.forEach((delegate) => delegate.visitInterpolationString(node)); | |
| 413 node.visitChildren(this); | |
| 414 return null; | |
| 415 } | |
| 416 | |
| 417 @override | |
| 418 T visitIsExpression(IsExpression node) { | |
| 419 _delegates.forEach((delegate) => delegate.visitIsExpression(node)); | |
| 420 node.visitChildren(this); | |
| 421 return null; | |
| 422 } | |
| 423 | |
| 424 @override | |
| 425 T visitLabel(Label node) { | |
| 426 _delegates.forEach((delegate) => delegate.visitLabel(node)); | |
| 427 node.visitChildren(this); | |
| 428 return null; | |
| 429 } | |
| 430 | |
| 431 @override | |
| 432 T visitLabeledStatement(LabeledStatement node) { | |
| 433 _delegates.forEach((delegate) => delegate.visitLabeledStatement(node)); | |
| 434 node.visitChildren(this); | |
| 435 return null; | |
| 436 } | |
| 437 | |
| 438 @override | |
| 439 T visitLibraryDirective(LibraryDirective node) { | |
| 440 _delegates.forEach((delegate) => delegate.visitLibraryDirective(node)); | |
| 441 node.visitChildren(this); | |
| 442 return null; | |
| 443 } | |
| 444 | |
| 445 @override | |
| 446 T visitLibraryIdentifier(LibraryIdentifier node) { | |
| 447 _delegates.forEach((delegate) => delegate.visitLibraryIdentifier(node)); | |
| 448 node.visitChildren(this); | |
| 449 return null; | |
| 450 } | |
| 451 | |
| 452 @override | |
| 453 T visitListLiteral(ListLiteral node) { | |
| 454 _delegates.forEach((delegate) => delegate.visitListLiteral(node)); | |
| 455 node.visitChildren(this); | |
| 456 return null; | |
| 457 } | |
| 458 | |
| 459 @override | |
| 460 T visitMapLiteral(MapLiteral node) { | |
| 461 _delegates.forEach((delegate) => delegate.visitMapLiteral(node)); | |
| 462 node.visitChildren(this); | |
| 463 return null; | |
| 464 } | |
| 465 | |
| 466 @override | |
| 467 T visitMapLiteralEntry(MapLiteralEntry node) { | |
| 468 _delegates.forEach((delegate) => delegate.visitMapLiteralEntry(node)); | |
| 469 node.visitChildren(this); | |
| 470 return null; | |
| 471 } | |
| 472 | |
| 473 @override | |
| 474 T visitMethodDeclaration(MethodDeclaration node) { | |
| 475 _delegates.forEach((delegate) => delegate.visitMethodDeclaration(node)); | |
| 476 node.visitChildren(this); | |
| 477 return null; | |
| 478 } | |
| 479 | |
| 480 @override | |
| 481 T visitMethodInvocation(MethodInvocation node) { | |
| 482 _delegates.forEach((delegate) => delegate.visitMethodInvocation(node)); | |
| 483 node.visitChildren(this); | |
| 484 return null; | |
| 485 } | |
| 486 | |
| 487 @override | |
| 488 T visitNamedExpression(NamedExpression node) { | |
| 489 _delegates.forEach((delegate) => delegate.visitNamedExpression(node)); | |
| 490 node.visitChildren(this); | |
| 491 return null; | |
| 492 } | |
| 493 | |
| 494 @override | |
| 495 T visitNativeClause(NativeClause node) { | |
| 496 _delegates.forEach((delegate) => delegate.visitNativeClause(node)); | |
| 497 node.visitChildren(this); | |
| 498 return null; | |
| 499 } | |
| 500 | |
| 501 @override | |
| 502 T visitNativeFunctionBody(NativeFunctionBody node) { | |
| 503 _delegates.forEach((delegate) => delegate.visitNativeFunctionBody(node)); | |
| 504 node.visitChildren(this); | |
| 505 return null; | |
| 506 } | |
| 507 | |
| 508 @override | |
| 509 T visitNullLiteral(NullLiteral node) { | |
| 510 _delegates.forEach((delegate) => delegate.visitNullLiteral(node)); | |
| 511 node.visitChildren(this); | |
| 512 return null; | |
| 513 } | |
| 514 | |
| 515 @override | |
| 516 T visitParenthesizedExpression(ParenthesizedExpression node) { | |
| 517 _delegates | |
| 518 .forEach((delegate) => delegate.visitParenthesizedExpression(node)); | |
| 519 node.visitChildren(this); | |
| 520 return null; | |
| 521 } | |
| 522 | |
| 523 @override | |
| 524 T visitPartDirective(PartDirective node) { | |
| 525 _delegates.forEach((delegate) => delegate.visitPartDirective(node)); | |
| 526 node.visitChildren(this); | |
| 527 return null; | |
| 528 } | |
| 529 | |
| 530 @override | |
| 531 T visitPartOfDirective(PartOfDirective node) { | |
| 532 _delegates.forEach((delegate) => delegate.visitPartOfDirective(node)); | |
| 533 node.visitChildren(this); | |
| 534 return null; | |
| 535 } | |
| 536 | |
| 537 @override | |
| 538 T visitPostfixExpression(PostfixExpression node) { | |
| 539 _delegates.forEach((delegate) => delegate.visitPostfixExpression(node)); | |
| 540 node.visitChildren(this); | |
| 541 return null; | |
| 542 } | |
| 543 | |
| 544 @override | |
| 545 T visitPrefixExpression(PrefixExpression node) { | |
| 546 _delegates.forEach((delegate) => delegate.visitPrefixExpression(node)); | |
| 547 node.visitChildren(this); | |
| 548 return null; | |
| 549 } | |
| 550 | |
| 551 @override | |
| 552 T visitPrefixedIdentifier(PrefixedIdentifier node) { | |
| 553 _delegates.forEach((delegate) => delegate.visitPrefixedIdentifier(node)); | |
| 554 node.visitChildren(this); | |
| 555 return null; | |
| 556 } | |
| 557 | |
| 558 @override | |
| 559 T visitPropertyAccess(PropertyAccess node) { | |
| 560 _delegates.forEach((delegate) => delegate.visitPropertyAccess(node)); | |
| 561 node.visitChildren(this); | |
| 562 return null; | |
| 563 } | |
| 564 | |
| 565 @override | |
| 566 T visitRedirectingConstructorInvocation( | |
| 567 RedirectingConstructorInvocation node) { | |
| 568 _delegates.forEach( | |
| 569 (delegate) => delegate.visitRedirectingConstructorInvocation(node)); | |
| 570 node.visitChildren(this); | |
| 571 return null; | |
| 572 } | |
| 573 | |
| 574 @override | |
| 575 T visitRethrowExpression(RethrowExpression node) { | |
| 576 _delegates.forEach((delegate) => delegate.visitRethrowExpression(node)); | |
| 577 node.visitChildren(this); | |
| 578 return null; | |
| 579 } | |
| 580 | |
| 581 @override | |
| 582 T visitReturnStatement(ReturnStatement node) { | |
| 583 _delegates.forEach((delegate) => delegate.visitReturnStatement(node)); | |
| 584 node.visitChildren(this); | |
| 585 return null; | |
| 586 } | |
| 587 | |
| 588 @override | |
| 589 T visitScriptTag(ScriptTag node) { | |
| 590 _delegates.forEach((delegate) => delegate.visitScriptTag(node)); | |
| 591 node.visitChildren(this); | |
| 592 return null; | |
| 593 } | |
| 594 | |
| 595 @override | |
| 596 T visitShowCombinator(ShowCombinator node) { | |
| 597 _delegates.forEach((delegate) => delegate.visitShowCombinator(node)); | |
| 598 node.visitChildren(this); | |
| 599 return null; | |
| 600 } | |
| 601 | |
| 602 @override | |
| 603 T visitSimpleFormalParameter(SimpleFormalParameter node) { | |
| 604 _delegates.forEach((delegate) => delegate.visitSimpleFormalParameter(node)); | |
| 605 node.visitChildren(this); | |
| 606 return null; | |
| 607 } | |
| 608 | |
| 609 @override | |
| 610 T visitSimpleIdentifier(SimpleIdentifier node) { | |
| 611 _delegates.forEach((delegate) => delegate.visitSimpleIdentifier(node)); | |
| 612 node.visitChildren(this); | |
| 613 return null; | |
| 614 } | |
| 615 | |
| 616 @override | |
| 617 T visitSimpleStringLiteral(SimpleStringLiteral node) { | |
| 618 _delegates.forEach((delegate) => delegate.visitSimpleStringLiteral(node)); | |
| 619 node.visitChildren(this); | |
| 620 return null; | |
| 621 } | |
| 622 | |
| 623 @override | |
| 624 T visitStringInterpolation(StringInterpolation node) { | |
| 625 _delegates.forEach((delegate) => delegate.visitStringInterpolation(node)); | |
| 626 node.visitChildren(this); | |
| 627 return null; | |
| 628 } | |
| 629 | |
| 630 @override | |
| 631 T visitSuperConstructorInvocation(SuperConstructorInvocation node) { | |
| 632 _delegates | |
| 633 .forEach((delegate) => delegate.visitSuperConstructorInvocation(node)); | |
| 634 node.visitChildren(this); | |
| 635 return null; | |
| 636 } | |
| 637 | |
| 638 @override | |
| 639 T visitSuperExpression(SuperExpression node) { | |
| 640 _delegates.forEach((delegate) => delegate.visitSuperExpression(node)); | |
| 641 node.visitChildren(this); | |
| 642 return null; | |
| 643 } | |
| 644 | |
| 645 @override | |
| 646 T visitSwitchCase(SwitchCase node) { | |
| 647 _delegates.forEach((delegate) => delegate.visitSwitchCase(node)); | |
| 648 node.visitChildren(this); | |
| 649 return null; | |
| 650 } | |
| 651 | |
| 652 @override | |
| 653 T visitSwitchDefault(SwitchDefault node) { | |
| 654 _delegates.forEach((delegate) => delegate.visitSwitchDefault(node)); | |
| 655 node.visitChildren(this); | |
| 656 return null; | |
| 657 } | |
| 658 | |
| 659 @override | |
| 660 T visitSwitchStatement(SwitchStatement node) { | |
| 661 _delegates.forEach((delegate) => delegate.visitSwitchStatement(node)); | |
| 662 node.visitChildren(this); | |
| 663 return null; | |
| 664 } | |
| 665 | |
| 666 @override | |
| 667 T visitSymbolLiteral(SymbolLiteral node) { | |
| 668 _delegates.forEach((delegate) => delegate.visitSymbolLiteral(node)); | |
| 669 node.visitChildren(this); | |
| 670 return null; | |
| 671 } | |
| 672 | |
| 673 @override | |
| 674 T visitThisExpression(ThisExpression node) { | |
| 675 _delegates.forEach((delegate) => delegate.visitThisExpression(node)); | |
| 676 node.visitChildren(this); | |
| 677 return null; | |
| 678 } | |
| 679 | |
| 680 @override | |
| 681 T visitThrowExpression(ThrowExpression node) { | |
| 682 _delegates.forEach((delegate) => delegate.visitThrowExpression(node)); | |
| 683 node.visitChildren(this); | |
| 684 return null; | |
| 685 } | |
| 686 | |
| 687 @override | |
| 688 T visitTopLevelVariableDeclaration(TopLevelVariableDeclaration node) { | |
| 689 _delegates | |
| 690 .forEach((delegate) => delegate.visitTopLevelVariableDeclaration(node)); | |
| 691 node.visitChildren(this); | |
| 692 return null; | |
| 693 } | |
| 694 | |
| 695 @override | |
| 696 T visitTryStatement(TryStatement node) { | |
| 697 _delegates.forEach((delegate) => delegate.visitTryStatement(node)); | |
| 698 node.visitChildren(this); | |
| 699 return null; | |
| 700 } | |
| 701 | |
| 702 @override | |
| 703 T visitTypeArgumentList(TypeArgumentList node) { | |
| 704 _delegates.forEach((delegate) => delegate.visitTypeArgumentList(node)); | |
| 705 node.visitChildren(this); | |
| 706 return null; | |
| 707 } | |
| 708 | |
| 709 @override | |
| 710 T visitTypeName(TypeName node) { | |
| 711 _delegates.forEach((delegate) => delegate.visitTypeName(node)); | |
| 712 node.visitChildren(this); | |
| 713 return null; | |
| 714 } | |
| 715 | |
| 716 @override | |
| 717 T visitTypeParameter(TypeParameter node) { | |
| 718 _delegates.forEach((delegate) => delegate.visitTypeParameter(node)); | |
| 719 node.visitChildren(this); | |
| 720 return null; | |
| 721 } | |
| 722 | |
| 723 @override | |
| 724 T visitTypeParameterList(TypeParameterList node) { | |
| 725 _delegates.forEach((delegate) => delegate.visitTypeParameterList(node)); | |
| 726 node.visitChildren(this); | |
| 727 return null; | |
| 728 } | |
| 729 | |
| 730 @override | |
| 731 T visitVariableDeclaration(VariableDeclaration node) { | |
| 732 _delegates.forEach((delegate) => delegate.visitVariableDeclaration(node)); | |
| 733 node.visitChildren(this); | |
| 734 return null; | |
| 735 } | |
| 736 | |
| 737 @override | |
| 738 T visitVariableDeclarationList(VariableDeclarationList node) { | |
| 739 _delegates | |
| 740 .forEach((delegate) => delegate.visitVariableDeclarationList(node)); | |
| 741 node.visitChildren(this); | |
| 742 return null; | |
| 743 } | |
| 744 | |
| 745 @override | |
| 746 T visitVariableDeclarationStatement(VariableDeclarationStatement node) { | |
| 747 _delegates.forEach( | |
| 748 (delegate) => delegate.visitVariableDeclarationStatement(node)); | |
| 749 node.visitChildren(this); | |
| 750 return null; | |
| 751 } | |
| 752 | |
| 753 @override | |
| 754 T visitWhileStatement(WhileStatement node) { | |
| 755 _delegates.forEach((delegate) => delegate.visitWhileStatement(node)); | |
| 756 node.visitChildren(this); | |
| 757 return null; | |
| 758 } | |
| 759 | |
| 760 @override | |
| 761 T visitWithClause(WithClause node) { | |
| 762 _delegates.forEach((delegate) => delegate.visitWithClause(node)); | |
| 763 node.visitChildren(this); | |
| 764 return null; | |
| 765 } | |
| 766 | |
| 767 @override | |
| 768 T visitYieldStatement(YieldStatement node) { | |
| 769 _delegates.forEach((delegate) => delegate.visitYieldStatement(node)); | |
| 770 node.visitChildren(this); | |
| 771 return null; | |
| 772 } | |
| 773 } | |
| OLD | NEW |