Index: pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart |
diff --git a/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart |
index a3c9ac65ee201d38b93d2adc1eac8d181a334122..2adcb384a0bc87b8d13b8b7d0b114c5547d72344 100644 |
--- a/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart |
+++ b/pkg/analysis_server/test/services/completion/dart/keyword_contributor_test.dart |
@@ -1573,6 +1573,34 @@ class A { |
expect(suggestions, isEmpty); |
} |
+ test_method_param_named_init() async { |
+ addTestSource('class A { foo({bool bar: ^}) {}}'); |
+ await computeSuggestions(); |
+ expect(suggestions, isNotEmpty); |
+ assertSuggestKeywords(EXPRESSION_START_NO_INSTANCE); |
+ } |
+ |
+ test_method_param_named_init2() async { |
+ addTestSource('class A { foo({bool bar: f^}) {}}'); |
+ await computeSuggestions(); |
+ expect(suggestions, isNotEmpty); |
+ assertSuggestKeywords(EXPRESSION_START_NO_INSTANCE); |
+ } |
+ |
+ test_method_param_positional_init() async { |
+ addTestSource('class A { foo([bool bar = ^]) {}}'); |
+ await computeSuggestions(); |
+ expect(suggestions, isNotEmpty); |
+ assertSuggestKeywords(EXPRESSION_START_NO_INSTANCE); |
+ } |
+ |
+ test_method_param_positional_init2() async { |
+ addTestSource('class A { foo([bool bar = f^]) {}}'); |
+ await computeSuggestions(); |
+ expect(suggestions, isNotEmpty); |
+ assertSuggestKeywords(EXPRESSION_START_NO_INSTANCE); |
+ } |
+ |
test_named_constructor_invocation() async { |
addTestSource('void main() {new Future.^}'); |
await computeSuggestions(); |