| Index: pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart b/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| index 33dfa582edeafd2d34cab6c3e9cdd7616e9da28f..6cbfb014ee2f966fffed9d4c5bc626ccc2bb925a 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/keyword_contributor.dart
|
| @@ -355,12 +355,24 @@ class _KeywordVisitor extends GeneralizingAstVisitor {
|
| }
|
|
|
| void _addImportDirectiveKeywords(ImportDirective node) {
|
| - if (node.asKeyword == null) {
|
| + bool hasDeferredKeyword = node.deferredKeyword != null;
|
| + bool hasAsKeyword = node.asKeyword != null;
|
| + if (!hasAsKeyword) {
|
| _addSuggestion(Keyword.AS, DART_RELEVANCE_HIGH);
|
| - if (node.deferredKeyword == null) {
|
| + }
|
| + if (!hasDeferredKeyword) {
|
| + if (!hasAsKeyword) {
|
| + _addSuggestion2('deferred as', relevance: DART_RELEVANCE_HIGH);
|
| + } else if (entity == node.asKeyword) {
|
| _addSuggestion(Keyword.DEFERRED, DART_RELEVANCE_HIGH);
|
| }
|
| }
|
| + if (!hasDeferredKeyword || hasAsKeyword) {
|
| + if (node.combinators.isEmpty) {
|
| + _addSuggestion2('show', relevance: DART_RELEVANCE_HIGH);
|
| + _addSuggestion2('hide', relevance: DART_RELEVANCE_HIGH);
|
| + }
|
| + }
|
| }
|
|
|
| void _addStatementKeywords(AstNode node) {
|
|
|