| Index: pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/local_computer.dart b/pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| index 19e28f46065ab54e772071813f880431e0b1fe63..e2e81af105449c49212838b4ee068f87f490c310 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/local_computer.dart
|
| @@ -139,11 +139,20 @@ class _LocalVisitor extends GeneralizingAstVisitor<dynamic> {
|
| null,
|
| null);
|
| } else if (declaration is FunctionTypeAlias) {
|
| - _addSuggestion(
|
| + CompletionSuggestion suggestion = _addSuggestion(
|
| declaration.name,
|
| CompletionSuggestionKind.FUNCTION_TYPE_ALIAS,
|
| declaration.returnType,
|
| null);
|
| + if (suggestion != null) {
|
| + suggestion.element = _createElement(
|
| + protocol.ElementKind.FUNCTION_TYPE_ALIAS,
|
| + declaration.name,
|
| + null, // TODO (danrubel) determine parameters
|
| + NO_RETURN_TYPE, // TODO (danrubel) determine return type
|
| + true,
|
| + _isDeprecated(declaration.metadata));
|
| + }
|
| }
|
| });
|
| }
|
|
|