Index: pkg/analysis_server/test/services/completion/keyword_contributor_test.dart |
diff --git a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart |
index fefa50c36459096b12d4e9ae918eb59e626380f7..95691418e39609e384cb6843dfd4a3b5bd2937dd 100644 |
--- a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart |
+++ b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart |
@@ -258,6 +258,25 @@ class KeywordContributorTest extends AbstractCompletionTest { |
relevance: DART_RELEVANCE_HIGH); |
} |
+ test_anonymous_function_async() { |
+ addTestSource('main() {foo(() ^ {}}}'); |
+ expect(computeFast(), isTrue); |
+ assertSuggestKeywords([], |
+ pseudoKeywords: ['async'], relevance: DART_RELEVANCE_HIGH); |
+ } |
+ |
+ test_anonymous_function_async2() { |
+ addTestSource('main() {foo(() a^ {}}}'); |
+ expect(computeFast(), isTrue); |
+ assertSuggestKeywords(STMT_START_OUTSIDE_CLASS, pseudoKeywords: ['async']); |
+ } |
+ |
+ test_anonymous_function_async3() { |
+ addTestSource('main() {foo(() async ^ {}}}'); |
+ expect(computeFast(), isTrue); |
+ assertSuggestKeywords([]); |
+ } |
+ |
test_argument() { |
addTestSource('main() {foo(^);}'); |
expect(computeFast(), isTrue); |