Index: pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart |
diff --git a/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart |
index 273509c375642af0408b609fee5c857e9536b488..1b2ca1c67101e6e78b76b4b6e05bfecd9b0d8fcd 100644 |
--- a/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart |
+++ b/pkg/analysis_server/test/services/completion/dart/arglist_contributor_test.dart |
@@ -302,6 +302,27 @@ library libA; class A { A({int one, String two: 'defaultValue'}) { } }'''); |
assertNoSuggestions(); |
} |
+ test_ArgumentList_imported_function_named_param_label1() async { |
+ // |
+ addTestSource('main() { int.parse("16", r^: 16);}'); |
+ await computeSuggestions(); |
+ assertSuggestArguments(namedArguments: ['radix', 'onError']); |
+ } |
+ |
+ test_ArgumentList_imported_function_named_param_label2() async { |
+ // |
+ addTestSource('main() { int.parse("16", ^r: 16);}'); |
+ await computeSuggestions(); |
+ assertSuggestArguments(namedArguments: ['radix', 'onError']); |
+ } |
+ |
+ test_ArgumentList_imported_function_named_param_label3() async { |
+ // |
+ addTestSource('main() { int.parse("16", ^: 16);}'); |
+ await computeSuggestions(); |
+ assertSuggestArguments(namedArguments: ['radix', 'onError']); |
+ } |
+ |
test_ArgumentList_local_constructor_named_param() async { |
// |
addTestSource(''' |