| 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 0a14ef1c21ffb0e6f1555c11bc2432fb0d477e72..679a8791a6ef01168cd71b997fc3e43b3bf04176 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
|
| @@ -96,7 +96,7 @@ class ArgListContributorTest extends DartCompletionContributorTest {
|
|
|
| test_Annotation_local_constructor_named_param() async {
|
| addTestSource('''
|
| -class A { A({int one, String two: 'defaultValue'}) { } }
|
| +class A { const A({int one, String two: 'defaultValue'}); }
|
| @A(^) main() { }''');
|
| await computeSuggestions();
|
| assertSuggestArguments(namedArguments: ['one', 'two']);
|
| @@ -106,7 +106,7 @@ class A { A({int one, String two: 'defaultValue'}) { } }
|
| addSource(
|
| '/libA.dart',
|
| '''
|
| -library libA; class A { A({int one, String two: 'defaultValue'}) { } }''');
|
| +library libA; class A { const A({int one, String two: 'defaultValue'}); }''');
|
| addTestSource('import "/libA.dart"; @A(^) main() { }');
|
| await computeSuggestions();
|
| assertSuggestArguments(namedArguments: ['one', 'two']);
|
| @@ -120,7 +120,7 @@ library libA; class A { A({int one, String two: 'defaultValue'}) { } }''');
|
|
|
| test_ArgumentList_imported_constructor_named_param() async {
|
| //
|
| - addSource('/libA.dart', 'library libA; class A{A({int one}){}}');
|
| + addSource('/libA.dart', 'library libA; class A{A({int one}); }');
|
| addTestSource('import "/libA.dart"; main() { new A(^);}');
|
| await computeSuggestions();
|
| assertSuggestArguments(namedArguments: ['one']);
|
| @@ -128,7 +128,7 @@ library libA; class A { A({int one, String two: 'defaultValue'}) { } }''');
|
|
|
| test_ArgumentList_imported_constructor_named_param2() async {
|
| //
|
| - addSource('/libA.dart', 'library libA; class A{A.foo({int one}){}}');
|
| + addSource('/libA.dart', 'library libA; class A{A.foo({int one}); }');
|
| addTestSource('import "/libA.dart"; main() { new A.foo(^);}');
|
| await computeSuggestions();
|
| assertSuggestArguments(namedArguments: ['one']);
|
|
|