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 e2e81af105449c49212838b4ee068f87f490c310..8e0ba88f15180cba18976b9dafbb6cb74949ec25 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/local_computer.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/local_computer.dart |
@@ -133,11 +133,20 @@ class _LocalVisitor extends GeneralizingAstVisitor<dynamic> { |
} else if (declaration is TopLevelVariableDeclaration) { |
_addTopLevelVarSuggestions(declaration.variables); |
} else if (declaration is ClassTypeAlias) { |
- _addSuggestion( |
+ CompletionSuggestion suggestion = _addSuggestion( |
declaration.name, |
CompletionSuggestionKind.CLASS_ALIAS, |
null, |
null); |
+ if (suggestion != null) { |
+ suggestion.element = _createElement( |
+ protocol.ElementKind.CLASS_TYPE_ALIAS, |
+ declaration.name, |
+ null, |
+ NO_RETURN_TYPE, |
+ true, |
+ _isDeprecated(declaration.metadata)); |
+ } |
} else if (declaration is FunctionTypeAlias) { |
CompletionSuggestion suggestion = _addSuggestion( |
declaration.name, |