Skip to content

Commit eb9cc6f

Browse files
keertipCommit Queue
authored and
Commit Queue
committed
Remove duplicate logic in KeywordHelper
Change-Id: I32e7643f785228b99961e50bc2380bdcdffca1d2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430881 Commit-Queue: Keerti Parthasarathy <keertip@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
1 parent c9ba43d commit eb9cc6f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pkg/analysis_server/lib/src/services/completion/dart/keyword_helper.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -585,13 +585,6 @@ class KeywordHelper {
585585
/// beginning of a statement. The [node] provides context to determine which
586586
/// keywords to include.
587587
void addStatementKeywords(AstNode node) {
588-
if (node.inAsyncMethodOrFunction) {
589-
addKeyword(Keyword.AWAIT);
590-
} else if (node.inAsyncStarOrSyncStarMethodOrFunction) {
591-
addKeyword(Keyword.AWAIT);
592-
addKeyword(Keyword.YIELD);
593-
addKeywordAndText(Keyword.YIELD, '*');
594-
}
595588
if (node.inLoop) {
596589
addKeyword(Keyword.BREAK);
597590
addKeyword(Keyword.CONTINUE);

0 commit comments

Comments
 (0)