| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library engine.ast.visitors; | |
| 6 | |
| 7 import 'package:analyzer/src/generated/ast.dart'; | |
| 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 @override | |
| 307 T visitFunctionDeclaration(FunctionDeclaration node) { | |
| 308 _delegates.forEach((delegate) => delegate.visitFunctionDeclaration(node)); | |
| 309 node.visitChildren(this); | |
| 310 return null; | |
| 311 } | |
| 312 | |
| 313 @override | |
| 314 T visitFunctionDeclarationStatement(FunctionDeclarationStatement node) { | |
| 315 _delegates.forEach( | |
| 316 (delegate) => delegate.visitFunctionDeclarationStatement(node)); | |
| 317 node.visitChildren(this); | |
| 318 return null; | |
| 319 } | |
| 320 | |
| 321 @override | |
| 322 T visitFunctionExpression(FunctionExpression node) { | |
| 323 _delegates.forEach((delegate) => delegate.visitFunctionExpression(node)); | |
| 324 node.visitChildren(this); | |
| 325 return null; | |
| 326 } | |
| 327 | |
| 328 @override | |
| 329 T visitFunctionExpressionInvocation(FunctionExpressionInvocation node) { | |
| 330 _delegates.forEach( | |
| 331 (delegate) => delegate.visitFunctionExpressionInvocation(node)); | |
| 332 node.visitChildren(this); | |
| 333 return null; | |
| 334 } | |
| 335 | |
| 336 @override | |
| 337 T visitFunctionTypeAlias(FunctionTypeAlias node) { | |
| 338 _delegates.forEach((delegate) => delegate.visitFunctionTypeAlias(node)); | |
| 339 node.visitChildren(this); | |
| 340 return null; | |
| 341 } | |
| 342 | |
| 343 @override | |
| 344 T visitFunctionTypedFormalParameter(FunctionTypedFormalParameter node) { | |
| 345 _delegates.forEach( | |
| 346 (delegate) => delegate.visitFunctionTypedFormalParameter(node)); | |
| 347 node.visitChildren(this); | |
| 348 return null; | |
| 349 } | |
| 350 | |
| 351 @override | |
| 352 T visitHideCombinator(HideCombinator node) { | |
| 353 _delegates.forEach((delegate) => delegate.visitHideCombinator(node)); | |
| 354 node.visitChildren(this); | |
| 355 return null; | |
| 356 } | |
| 357 | |
| 358 @override | |
| 359 T visitIfStatement(IfStatement node) { | |
| 360 _delegates.forEach((delegate) => delegate.visitIfStatement(node)); | |
| 361 node.visitChildren(this); | |
| 362 return null; | |
| 363 } | |
| 364 | |
| 365 @override | |
| 366 T visitImplementsClause(ImplementsClause node) { | |
| 367 _delegates.forEach((delegate) => delegate.visitImplementsClause(node)); | |
| 368 node.visitChildren(this); | |
| 369 return null; | |
| 370 } | |
| 371 | |
| 372 @override | |
| 373 T visitImportDirective(ImportDirective node) { | |
| 374 _delegates.forEach((delegate) => delegate.visitImportDirective(node)); | |
| 375 node.visitChildren(this); | |
| 376 return null; | |
| 377 } | |
| 378 | |
| 379 @override | |
| 380 T visitIndexExpression(IndexExpression node) { | |
| 381 _delegates.forEach((delegate) => delegate.visitIndexExpression(node)); | |
| 382 node.visitChildren(this); | |
| 383 return null; | |
| 384 } | |
| 385 | |
| 386 @override | |
| 387 T visitInstanceCreationExpression(InstanceCreationExpression node) { | |
| 388 _delegates | |
| 389 .forEach((delegate) => delegate.visitInstanceCreationExpression(node)); | |
| 390 node.visitChildren(this); | |
| 391 return null; | |
| 392 } | |
| 393 | |
| 394 @override | |
| 395 T visitIntegerLiteral(IntegerLiteral node) { | |
| 396 _delegates.forEach((delegate) => delegate.visitIntegerLiteral(node)); | |
| 397 node.visitChildren(this); | |
| 398 return null; | |
| 399 } | |
| 400 | |
| 401 @override | |
| 402 T visitInterpolationExpression(InterpolationExpression node) { | |
| 403 _delegates | |
| 404 .forEach((delegate) => delegate.visitInterpolationExpression(node)); | |
| 405 node.visitChildren(this); | |
| 406 return null; | |
| 407 } | |
| 408 | |
| 409 @override | |
| 410 T visitInterpolationString(InterpolationString node) { | |
| 411 _delegates.forEach((delegate) => delegate.visitInterpolationString(node)); | |
| 412 node.visitChildren(this); | |
| 413 return null; | |
| 414 } | |
| 415 | |
| 416 @override | |
| 417 T visitIsExpression(IsExpression node) { | |
| 418 _delegates.forEach((delegate) => delegate.visitIsExpression(node)); | |
| 419 node.visitChildren(this); | |
| 420 return null; | |
| 421 } | |
| 422 | |
| 423 @override | |
| 424 T visitLabel(Label node) { | |
| 425 _delegates.forEach((delegate) => delegate.visitLabel(node)); | |
| 426 node.visitChildren(this); | |
| 427 return null; | |
| 428 } | |
| 429 | |
| 430 @override | |
| 431 T visitLabeledStatement(LabeledStatement node) { | |
| 432 _delegates.forEach((delegate) => delegate.visitLabeledStatement(node)); | |
| 433 node.visitChildren(this); | |
| 434 return null; | |
| 435 } | |
| 436 | |
| 437 @override | |
| 438 T visitLibraryDirective(LibraryDirective node) { | |
| 439 _delegates.forEach((delegate) => delegate.visitLibraryDirective(node)); | |
| 440 node.visitChildren(this); | |
| 441 return null; | |
| 442 } | |
| 443 | |
| 444 @override | |
| 445 T visitLibraryIdentifier(LibraryIdentifier node) { | |
| 446 _delegates.forEach((delegate) => delegate.visitLibraryIdentifier(node)); | |
| 447 node.visitChildren(this); | |
| 448 return null; | |
| 449 } | |
| 450 | |
| 451 @override | |
| 452 T visitListLiteral(ListLiteral node) { | |
| 453 _delegates.forEach((delegate) => delegate.visitListLiteral(node)); | |
| 454 node.visitChildren(this); | |
| 455 return null; | |
| 456 } | |
| 457 | |
| 458 @override | |
| 459 T visitMapLiteral(MapLiteral node) { | |
| 460 _delegates.forEach((delegate) => delegate.visitMapLiteral(node)); | |
| 461 node.visitChildren(this); | |
| 462 return null; | |
| 463 } | |
| 464 | |
| 465 @override | |
| 466 T visitMapLiteralEntry(MapLiteralEntry node) { | |
| 467 _delegates.forEach((delegate) => delegate.visitMapLiteralEntry(node)); | |
| 468 node.visitChildren(this); | |
| 469 return null; | |
| 470 } | |
| 471 | |
| 472 @override | |
| 473 T visitMethodDeclaration(MethodDeclaration node) { | |
| 474 _delegates.forEach((delegate) => delegate.visitMethodDeclaration(node)); | |
| 475 node.visitChildren(this); | |
| 476 return null; | |
| 477 } | |
| 478 @override | |
| 479 T visitMethodInvocation(MethodInvocation node) { | |
| 480 _delegates.forEach((delegate) => delegate.visitMethodInvocation(node)); | |
| 481 node.visitChildren(this); | |
| 482 return null; | |
| 483 } | |
| 484 | |
| 485 @override | |
| 486 T visitNamedExpression(NamedExpression node) { | |
| 487 _delegates.forEach((delegate) => delegate.visitNamedExpression(node)); | |
| 488 node.visitChildren(this); | |
| 489 return null; | |
| 490 } | |
| 491 | |
| 492 @override | |
| 493 T visitNativeClause(NativeClause node) { | |
| 494 _delegates.forEach((delegate) => delegate.visitNativeClause(node)); | |
| 495 node.visitChildren(this); | |
| 496 return null; | |
| 497 } | |
| 498 | |
| 499 @override | |
| 500 T visitNativeFunctionBody(NativeFunctionBody node) { | |
| 501 _delegates.forEach((delegate) => delegate.visitNativeFunctionBody(node)); | |
| 502 node.visitChildren(this); | |
| 503 return null; | |
| 504 } | |
| 505 | |
| 506 @override | |
| 507 T visitNullLiteral(NullLiteral node) { | |
| 508 _delegates.forEach((delegate) => delegate.visitNullLiteral(node)); | |
| 509 node.visitChildren(this); | |
| 510 return null; | |
| 511 } | |
| 512 | |
| 513 @override | |
| 514 T visitParenthesizedExpression(ParenthesizedExpression node) { | |
| 515 _delegates | |
| 516 .forEach((delegate) => delegate.visitParenthesizedExpression(node)); | |
| 517 node.visitChildren(this); | |
| 518 return null; | |
| 519 } | |
| 520 | |
| 521 @override | |
| 522 T visitPartDirective(PartDirective node) { | |
| 523 _delegates.forEach((delegate) => delegate.visitPartDirective(node)); | |
| 524 node.visitChildren(this); | |
| 525 return null; | |
| 526 } | |
| 527 | |
| 528 @override | |
| 529 T visitPartOfDirective(PartOfDirective node) { | |
| 530 _delegates.forEach((delegate) => delegate.visitPartOfDirective(node)); | |
| 531 node.visitChildren(this); | |
| 532 return null; | |
| 533 } | |
| 534 | |
| 535 @override | |
| 536 T visitPostfixExpression(PostfixExpression node) { | |
| 537 _delegates.forEach((delegate) => delegate.visitPostfixExpression(node)); | |
| 538 node.visitChildren(this); | |
| 539 return null; | |
| 540 } | |
| 541 | |
| 542 @override | |
| 543 T visitPrefixExpression(PrefixExpression node) { | |
| 544 _delegates.forEach((delegate) => delegate.visitPrefixExpression(node)); | |
| 545 node.visitChildren(this); | |
| 546 return null; | |
| 547 } | |
| 548 @override | |
| 549 T visitPrefixedIdentifier(PrefixedIdentifier node) { | |
| 550 _delegates.forEach((delegate) => delegate.visitPrefixedIdentifier(node)); | |
| 551 node.visitChildren(this); | |
| 552 return null; | |
| 553 } | |
| 554 | |
| 555 @override | |
| 556 T visitPropertyAccess(PropertyAccess node) { | |
| 557 _delegates.forEach((delegate) => delegate.visitPropertyAccess(node)); | |
| 558 node.visitChildren(this); | |
| 559 return null; | |
| 560 } | |
| 561 | |
| 562 @override | |
| 563 T visitRedirectingConstructorInvocation( | |
| 564 RedirectingConstructorInvocation node) { | |
| 565 _delegates.forEach( | |
| 566 (delegate) => delegate.visitRedirectingConstructorInvocation(node)); | |
| 567 node.visitChildren(this); | |
| 568 return null; | |
| 569 } | |
| 570 | |
| 571 @override | |
| 572 T visitRethrowExpression(RethrowExpression node) { | |
| 573 _delegates.forEach((delegate) => delegate.visitRethrowExpression(node)); | |
| 574 node.visitChildren(this); | |
| 575 return null; | |
| 576 } | |
| 577 | |
| 578 @override | |
| 579 T visitReturnStatement(ReturnStatement node) { | |
| 580 _delegates.forEach((delegate) => delegate.visitReturnStatement(node)); | |
| 581 node.visitChildren(this); | |
| 582 return null; | |
| 583 } | |
| 584 | |
| 585 @override | |
| 586 T visitScriptTag(ScriptTag node) { | |
| 587 _delegates.forEach((delegate) => delegate.visitScriptTag(node)); | |
| 588 node.visitChildren(this); | |
| 589 return null; | |
| 590 } | |
| 591 | |
| 592 @override | |
| 593 T visitShowCombinator(ShowCombinator node) { | |
| 594 _delegates.forEach((delegate) => delegate.visitShowCombinator(node)); | |
| 595 node.visitChildren(this); | |
| 596 return null; | |
| 597 } | |
| 598 | |
| 599 @override | |
| 600 T visitSimpleFormalParameter(SimpleFormalParameter node) { | |
| 601 _delegates.forEach((delegate) => delegate.visitSimpleFormalParameter(node)); | |
| 602 node.visitChildren(this); | |
| 603 return null; | |
| 604 } | |
| 605 | |
| 606 @override | |
| 607 T visitSimpleIdentifier(SimpleIdentifier node) { | |
| 608 _delegates.forEach((delegate) => delegate.visitSimpleIdentifier(node)); | |
| 609 node.visitChildren(this); | |
| 610 return null; | |
| 611 } | |
| 612 | |
| 613 @override | |
| 614 T visitSimpleStringLiteral(SimpleStringLiteral node) { | |
| 615 _delegates.forEach((delegate) => delegate.visitSimpleStringLiteral(node)); | |
| 616 node.visitChildren(this); | |
| 617 return null; | |
| 618 } | |
| 619 | |
| 620 @override | |
| 621 T visitStringInterpolation(StringInterpolation node) { | |
| 622 _delegates.forEach((delegate) => delegate.visitStringInterpolation(node)); | |
| 623 node.visitChildren(this); | |
| 624 return null; | |
| 625 } | |
| 626 | |
| 627 @override | |
| 628 T visitSuperConstructorInvocation(SuperConstructorInvocation node) { | |
| 629 _delegates | |
| 630 .forEach((delegate) => delegate.visitSuperConstructorInvocation(node)); | |
| 631 node.visitChildren(this); | |
| 632 return null; | |
| 633 } | |
| 634 | |
| 635 @override | |
| 636 T visitSuperExpression(SuperExpression node) { | |
| 637 _delegates.forEach((delegate) => delegate.visitSuperExpression(node)); | |
| 638 node.visitChildren(this); | |
| 639 return null; | |
| 640 } | |
| 641 | |
| 642 @override | |
| 643 T visitSwitchCase(SwitchCase node) { | |
| 644 _delegates.forEach((delegate) => delegate.visitSwitchCase(node)); | |
| 645 node.visitChildren(this); | |
| 646 return null; | |
| 647 } | |
| 648 | |
| 649 @override | |
| 650 T visitSwitchDefault(SwitchDefault node) { | |
| 651 _delegates.forEach((delegate) => delegate.visitSwitchDefault(node)); | |
| 652 node.visitChildren(this); | |
| 653 return null; | |
| 654 } | |
| 655 | |
| 656 @override | |
| 657 T visitSwitchStatement(SwitchStatement node) { | |
| 658 _delegates.forEach((delegate) => delegate.visitSwitchStatement(node)); | |
| 659 node.visitChildren(this); | |
| 660 return null; | |
| 661 } | |
| 662 | |
| 663 @override | |
| 664 T visitSymbolLiteral(SymbolLiteral node) { | |
| 665 _delegates.forEach((delegate) => delegate.visitSymbolLiteral(node)); | |
| 666 node.visitChildren(this); | |
| 667 return null; | |
| 668 } | |
| 669 | |
| 670 @override | |
| 671 T visitThisExpression(ThisExpression node) { | |
| 672 _delegates.forEach((delegate) => delegate.visitThisExpression(node)); | |
| 673 node.visitChildren(this); | |
| 674 return null; | |
| 675 } | |
| 676 | |
| 677 @override | |
| 678 T visitThrowExpression(ThrowExpression node) { | |
| 679 _delegates.forEach((delegate) => delegate.visitThrowExpression(node)); | |
| 680 node.visitChildren(this); | |
| 681 return null; | |
| 682 } | |
| 683 | |
| 684 @override | |
| 685 T visitTopLevelVariableDeclaration(TopLevelVariableDeclaration node) { | |
| 686 _delegates | |
| 687 .forEach((delegate) => delegate.visitTopLevelVariableDeclaration(node)); | |
| 688 node.visitChildren(this); | |
| 689 return null; | |
| 690 } | |
| 691 | |
| 692 @override | |
| 693 T visitTryStatement(TryStatement node) { | |
| 694 _delegates.forEach((delegate) => delegate.visitTryStatement(node)); | |
| 695 node.visitChildren(this); | |
| 696 return null; | |
| 697 } | |
| 698 | |
| 699 @override | |
| 700 T visitTypeArgumentList(TypeArgumentList node) { | |
| 701 _delegates.forEach((delegate) => delegate.visitTypeArgumentList(node)); | |
| 702 node.visitChildren(this); | |
| 703 return null; | |
| 704 } | |
| 705 | |
| 706 @override | |
| 707 T visitTypeName(TypeName node) { | |
| 708 _delegates.forEach((delegate) => delegate.visitTypeName(node)); | |
| 709 node.visitChildren(this); | |
| 710 return null; | |
| 711 } | |
| 712 | |
| 713 @override | |
| 714 T visitTypeParameter(TypeParameter node) { | |
| 715 _delegates.forEach((delegate) => delegate.visitTypeParameter(node)); | |
| 716 node.visitChildren(this); | |
| 717 return null; | |
| 718 } | |
| 719 | |
| 720 @override | |
| 721 T visitTypeParameterList(TypeParameterList node) { | |
| 722 _delegates.forEach((delegate) => delegate.visitTypeParameterList(node)); | |
| 723 node.visitChildren(this); | |
| 724 return null; | |
| 725 } | |
| 726 | |
| 727 @override | |
| 728 T visitVariableDeclaration(VariableDeclaration node) { | |
| 729 _delegates.forEach((delegate) => delegate.visitVariableDeclaration(node)); | |
| 730 node.visitChildren(this); | |
| 731 return null; | |
| 732 } | |
| 733 | |
| 734 @override | |
| 735 T visitVariableDeclarationList(VariableDeclarationList node) { | |
| 736 _delegates | |
| 737 .forEach((delegate) => delegate.visitVariableDeclarationList(node)); | |
| 738 node.visitChildren(this); | |
| 739 return null; | |
| 740 } | |
| 741 | |
| 742 @override | |
| 743 T visitVariableDeclarationStatement(VariableDeclarationStatement node) { | |
| 744 _delegates.forEach( | |
| 745 (delegate) => delegate.visitVariableDeclarationStatement(node)); | |
| 746 node.visitChildren(this); | |
| 747 return null; | |
| 748 } | |
| 749 | |
| 750 @override | |
| 751 T visitWhileStatement(WhileStatement node) { | |
| 752 _delegates.forEach((delegate) => delegate.visitWhileStatement(node)); | |
| 753 node.visitChildren(this); | |
| 754 return null; | |
| 755 } | |
| 756 | |
| 757 @override | |
| 758 T visitWithClause(WithClause node) { | |
| 759 _delegates.forEach((delegate) => delegate.visitWithClause(node)); | |
| 760 node.visitChildren(this); | |
| 761 return null; | |
| 762 } | |
| 763 | |
| 764 @override | |
| 765 T visitYieldStatement(YieldStatement node) { | |
| 766 _delegates.forEach((delegate) => delegate.visitYieldStatement(node)); | |
| 767 node.visitChildren(this); | |
| 768 return null; | |
| 769 } | |
| 770 } | |
| OLD | NEW |