Index: pkg/analysis_server/lib/src/services/completion/dart/keyword_contributor.dart |
diff --git a/pkg/analysis_server/lib/src/services/completion/dart/keyword_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/keyword_contributor.dart |
index 6b328b2a8f302203e893fe3adb8d1fd55d67ae10..5a8d8cbacf4ca3c93dde5a0f41d88f2da699b76c 100644 |
--- a/pkg/analysis_server/lib/src/services/completion/dart/keyword_contributor.dart |
+++ b/pkg/analysis_server/lib/src/services/completion/dart/keyword_contributor.dart |
@@ -77,6 +77,16 @@ class _KeywordVisitor extends GeneralizingAstVisitor { |
} |
@override |
+ visitAsExpression(AsExpression node) { |
+ if (identical(entity, node.asOperator) && |
+ node.expression is ParenthesizedExpression) { |
+ _addSuggestion2(ASYNC, relevance: DART_RELEVANCE_HIGH); |
+ _addSuggestion2(ASYNC_STAR, relevance: DART_RELEVANCE_HIGH); |
+ _addSuggestion2(SYNC_STAR, relevance: DART_RELEVANCE_HIGH); |
+ } |
+ } |
+ |
+ @override |
visitBlock(Block node) { |
if (entity is ExpressionStatement) { |
Expression expression = (entity as ExpressionStatement).expression; |