| 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 807a02eb433de87730d56be106f4f38945bae1e5..2867bebee48ea9e6ed91eeb1eff999a18259815a 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
|
| @@ -81,7 +81,8 @@ class _KeywordVisitor extends GeneralizingAstVisitor {
|
| if (next.isSynthetic) {
|
| next = next.next;
|
| }
|
| - if (previous.lexeme == ')' && next.lexeme == '{') {
|
| + if (previous.type == TokenType.CLOSE_PAREN &&
|
| + next.type == TokenType.OPEN_CURLY_BRACKET) {
|
| _addSuggestion2(ASYNC);
|
| _addSuggestion2(ASYNC_STAR);
|
| _addSuggestion2(SYNC_STAR);
|
|
|