| 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.computer.dart.local.Declaration.visitor; | 5 library services.completion.dart.local.declaration.visitor; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/services/completion/suggestion_builder.dart'
; | 7 import 'package:analysis_server/src/services/completion/suggestion_builder.dart'
; |
| 8 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.dart'; |
| 9 import 'package:analyzer/src/generated/scanner.dart'; | 9 import 'package:analyzer/src/generated/scanner.dart'; |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * `LocalDeclarationCollector` visits an [AstNode] and its parent recursively | 12 * `LocalDeclarationCollector` visits an [AstNode] and its parent recursively |
| 13 * along with any declarations in those nodes. Consumers typically call [visit] | 13 * along with any declarations in those nodes. Consumers typically call [visit] |
| 14 * which catches the exception thrown by [finished()]. | 14 * which catches the exception thrown by [finished()]. |
| 15 */ | 15 */ |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 }); | 261 }); |
| 262 } | 262 } |
| 263 } | 263 } |
| 264 } | 264 } |
| 265 | 265 |
| 266 /** | 266 /** |
| 267 * Internal exception used to indicate that [LocalDeclarationVisitor] | 267 * Internal exception used to indicate that [LocalDeclarationVisitor] |
| 268 * should stop visiting. | 268 * should stop visiting. |
| 269 */ | 269 */ |
| 270 class _LocalDeclarationVisitorFinished {} | 270 class _LocalDeclarationVisitorFinished {} |
| OLD | NEW |