| Index: pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/local_computer_test.dart b/pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| index 05182d300b4e03b50989c835f110e2fd714adbdd..d6f49b34d8f7e168fa1d4af7a914c3a25bc9b353 100644
|
| --- a/pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/local_computer_test.dart
|
| @@ -225,6 +225,41 @@ void main() {
|
| assertSuggestLabel('bar');
|
| }
|
|
|
| + test_constructor_parameters_mixed_required_and_named() {
|
| + addTestSource('class A {A(x, {int y}) {^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestParameter('x', null);
|
| + assertSuggestParameter('y', 'int');
|
| + }
|
| +
|
| + test_constructor_parameters_mixed_required_and_positional() {
|
| + addTestSource('class A {A(x, [int y]) {^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestParameter('x', null);
|
| + assertSuggestParameter('y', 'int');
|
| + }
|
| +
|
| + test_constructor_parameters_named() {
|
| + addTestSource('class A {A({x, int y}) {^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestParameter('x', null);
|
| + assertSuggestParameter('y', 'int');
|
| + }
|
| +
|
| + test_constructor_parameters_positional() {
|
| + addTestSource('class A {A([x, int y]) {^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestParameter('x', null);
|
| + assertSuggestParameter('y', 'int');
|
| + }
|
| +
|
| + test_constructor_parameters_required() {
|
| + addTestSource('class A {A(x, int y) {^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestParameter('x', null);
|
| + assertSuggestParameter('y', 'int');
|
| + }
|
| +
|
| test_continue_from_loop_to_switch() {
|
| addTestSource('''
|
| void main() {
|
|
|