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.invocation; | 5 library services.completion.contributor.dart.invocation; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; | 9 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
10 import 'package:analysis_server/src/services/completion/local_declaration_visito
r.dart'; | 10 import 'package:analysis_server/src/services/completion/local_declaration_visito
r.dart'; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 } | 294 } |
295 } | 295 } |
296 return new Future.value(false); | 296 return new Future.value(false); |
297 } | 297 } |
298 | 298 |
299 @override | 299 @override |
300 Future<bool> visitClassElement(ClassElement element) { | 300 Future<bool> visitClassElement(ClassElement element) { |
301 if (element != null) { | 301 if (element != null) { |
302 InterfaceType type = element.type; | 302 InterfaceType type = element.type; |
303 if (type != null) { | 303 if (type != null) { |
304 StaticClassElementSuggestionBuilder.suggestionsFor( | 304 // Suggested by StaticMemberContributor |
305 request, type.element); | 305 // StaticClassElementSuggestionBuilder.suggestionsFor( |
| 306 // request, type.element); |
306 } | 307 } |
307 } | 308 } |
308 return new Future.value(false); | 309 return new Future.value(false); |
309 } | 310 } |
310 | 311 |
311 @override | 312 @override |
312 Future<bool> visitElement(Element element) { | 313 Future<bool> visitElement(Element element) { |
313 return new Future.value(false); | 314 return new Future.value(false); |
314 } | 315 } |
315 | 316 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 } | 357 } |
357 return new Future.value(false); | 358 return new Future.value(false); |
358 } | 359 } |
359 | 360 |
360 @override | 361 @override |
361 Future<bool> visitVariableElement(VariableElement element) { | 362 Future<bool> visitVariableElement(VariableElement element) { |
362 InterfaceTypeSuggestionBuilder.suggestionsFor(request, element.type); | 363 InterfaceTypeSuggestionBuilder.suggestionsFor(request, element.type); |
363 return new Future.value(true); | 364 return new Future.value(true); |
364 } | 365 } |
365 } | 366 } |
OLD | NEW |