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.contributor.dart.local_lib; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 7 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
10 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; | 8 import 'package:analysis_server/src/services/completion/dart/completion_manager.
dart'; |
11 import 'package:analysis_server/src/services/completion/dart/optype.dart'; | 9 import 'package:analysis_server/src/services/completion/dart/optype.dart'; |
12 import 'package:analysis_server/src/services/completion/dart/suggestion_builder.
dart' | 10 import 'package:analysis_server/src/services/completion/dart/suggestion_builder.
dart' |
13 show createSuggestion, ElementSuggestionBuilder; | 11 show createSuggestion, ElementSuggestionBuilder; |
14 import 'package:analyzer/dart/element/element.dart'; | 12 import 'package:analyzer/dart/element/element.dart'; |
15 import 'package:analyzer/dart/element/type.dart'; | 13 import 'package:analyzer/dart/element/type.dart'; |
16 import 'package:analyzer/dart/element/visitor.dart'; | 14 import 'package:analyzer/dart/element/visitor.dart'; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 LibraryElementSuggestionBuilder visitor = | 188 LibraryElementSuggestionBuilder visitor = |
191 new LibraryElementSuggestionBuilder(request, optype); | 189 new LibraryElementSuggestionBuilder(request, optype); |
192 for (CompilationUnitElement unit in libraryUnits) { | 190 for (CompilationUnitElement unit in libraryUnits) { |
193 if (unit != null && unit.source != request.source) { | 191 if (unit != null && unit.source != request.source) { |
194 unit.accept(visitor); | 192 unit.accept(visitor); |
195 } | 193 } |
196 } | 194 } |
197 return visitor.suggestions; | 195 return visitor.suggestions; |
198 } | 196 } |
199 } | 197 } |
OLD | NEW |