| 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/protocol/protocol_generated.dart' as protocol |  | 
|    9     show Element, ElementKind; |  | 
|   10 import 'package:analysis_server/src/ide_options.dart'; |    8 import 'package:analysis_server/src/ide_options.dart'; | 
|   11 import 'package:analysis_server/src/protocol_server.dart' |    9 import 'package:analysis_server/src/protocol_server.dart' | 
|   12     show CompletionSuggestion, CompletionSuggestionKind, Location; |   10     show CompletionSuggestion, CompletionSuggestionKind, Location; | 
|   13 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
     dart'; |   11 import 'package:analysis_server/src/provisional/completion/dart/completion_dart.
     dart'; | 
|   14 import 'package:analysis_server/src/services/correction/flutter_util.dart'; |   12 import 'package:analysis_server/src/services/correction/flutter_util.dart'; | 
|   15 import 'package:analyzer/dart/ast/ast.dart'; |   13 import 'package:analyzer/dart/ast/ast.dart'; | 
|   16 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; |   14 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; | 
|   17 import 'package:analyzer/dart/ast/token.dart'; |   15 import 'package:analyzer/dart/ast/token.dart'; | 
|   18 import 'package:analyzer/dart/element/element.dart'; |   16 import 'package:analyzer/dart/element/element.dart'; | 
|   19 import 'package:analyzer/dart/element/type.dart'; |   17 import 'package:analyzer/dart/element/type.dart'; | 
|   20 import 'package:analyzer/src/dart/ast/token.dart'; |   18 import 'package:analyzer/src/dart/ast/token.dart'; | 
|   21 import 'package:analyzer/src/generated/source.dart'; |   19 import 'package:analyzer/src/generated/source.dart'; | 
 |   20 import 'package:analyzer_plugin/protocol/protocol_common.dart' as protocol | 
 |   21     show Element, ElementKind; | 
|   22  |   22  | 
|   23 /** |   23 /** | 
|   24  * The name of the type `dynamic`; |   24  * The name of the type `dynamic`; | 
|   25  */ |   25  */ | 
|   26 const DYNAMIC = 'dynamic'; |   26 const DYNAMIC = 'dynamic'; | 
|   27  |   27  | 
|   28 /** |   28 /** | 
|   29  * A marker used in place of `null` when a function has no return type. |   29  * A marker used in place of `null` when a function has no return type. | 
|   30  */ |   30  */ | 
|   31 final TypeName NO_RETURN_TYPE = astFactory.typeName( |   31 final TypeName NO_RETURN_TYPE = astFactory.typeName( | 
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  250     } |  250     } | 
|  251     return name; |  251     return name; | 
|  252   } else if (type is GenericFunctionType) { |  252   } else if (type is GenericFunctionType) { | 
|  253     // TODO(brianwilkerson) Implement this. |  253     // TODO(brianwilkerson) Implement this. | 
|  254   } |  254   } | 
|  255   return DYNAMIC; |  255   return DYNAMIC; | 
|  256 } |  256 } | 
|  257  |  257  | 
|  258 //TODO(pq): fix to use getDefaultStringParameterValue() |  258 //TODO(pq): fix to use getDefaultStringParameterValue() | 
|  259 String _getDefaultValue(ParameterElement param) => 'null'; |  259 String _getDefaultValue(ParameterElement param) => 'null'; | 
| OLD | NEW |