| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 services.completion.dart.local.declaration.visitor; | |
| 6 | |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 5 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; | 6 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; |
| 9 import 'package:analyzer/dart/ast/token.dart'; | 7 import 'package:analyzer/dart/ast/token.dart'; |
| 10 import 'package:analyzer/dart/ast/visitor.dart'; | 8 import 'package:analyzer/dart/ast/visitor.dart'; |
| 11 import 'package:analyzer/src/dart/ast/token.dart'; | 9 import 'package:analyzer/src/dart/ast/token.dart'; |
| 12 | 10 |
| 13 /** | 11 /** |
| 14 * `LocalDeclarationCollector` visits an [AstNode] and its parent recursively | 12 * `LocalDeclarationCollector` visits an [AstNode] and its parent recursively |
| 15 * along with any declarations in those nodes. Consumers typically call [visit] | 13 * along with any declarations in those nodes. Consumers typically call [visit] |
| 16 * which catches the exception thrown by [finished()]. | 14 * which catches the exception thrown by [finished()]. |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 } | 272 } |
| 275 } | 273 } |
| 276 } | 274 } |
| 277 } | 275 } |
| 278 | 276 |
| 279 /** | 277 /** |
| 280 * Internal exception used to indicate that [LocalDeclarationVisitor] | 278 * Internal exception used to indicate that [LocalDeclarationVisitor] |
| 281 * should stop visiting. | 279 * should stop visiting. |
| 282 */ | 280 */ |
| 283 class _LocalDeclarationVisitorFinished {} | 281 class _LocalDeclarationVisitorFinished {} |
| OLD | NEW |