OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /** | 5 /** |
6 * A collection of utility methods used by completion contributors. | 6 * A collection of utility methods used by completion contributors. |
7 */ | 7 */ |
8 import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol | 8 import 'package:analysis_server/protocol/protocol_generated.dart' as protocol |
9 show Element, ElementKind; | 9 show Element, ElementKind; |
10 import 'package:analysis_server/src/ide_options.dart'; | 10 import 'package:analysis_server/src/ide_options.dart'; |
11 import 'package:analysis_server/src/protocol_server.dart' | 11 import 'package:analysis_server/src/protocol_server.dart' |
12 show CompletionSuggestion, CompletionSuggestionKind, Location; | 12 show CompletionSuggestion, CompletionSuggestionKind, Location; |
13 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; | 13 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
dart'; |
14 import 'package:analysis_server/src/services/correction/flutter_util.dart'; | 14 import 'package:analysis_server/src/services/correction/flutter_util.dart'; |
15 import 'package:analyzer/dart/ast/ast.dart'; | 15 import 'package:analyzer/dart/ast/ast.dart'; |
16 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; | 16 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; |
17 import 'package:analyzer/dart/ast/token.dart'; | 17 import 'package:analyzer/dart/ast/token.dart'; |
18 import 'package:analyzer/dart/element/element.dart'; | 18 import 'package:analyzer/dart/element/element.dart'; |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 //TODO (danrubel) include type arguments | 241 //TODO (danrubel) include type arguments |
242 } | 242 } |
243 return name; | 243 return name; |
244 } else if (type is GenericFunctionType) { | 244 } else if (type is GenericFunctionType) { |
245 // TODO(brianwilkerson) Implement this. | 245 // TODO(brianwilkerson) Implement this. |
246 } | 246 } |
247 return DYNAMIC; | 247 return DYNAMIC; |
248 } | 248 } |
249 | 249 |
250 String _getDefaultValue(ParameterElement param) => 'null'; | 250 String _getDefaultValue(ParameterElement param) => 'null'; |
OLD | NEW |