| 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 46940bf2c9ebab489990cb0926d07079d237fcef..fefa50c36459096b12d4e9ae918eb59e626380f7 100644
|
| --- a/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/keyword_contributor_test.dart
|
| @@ -880,6 +880,24 @@ class A {
|
| assertSuggestKeywords(EXPRESSION_START_INSTANCE, pseudoKeywords: ['await']);
|
| }
|
|
|
| + test_method_body_expression1() {
|
| + addTestSource('class A { foo() {return b == true ? ^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestKeywords(EXPRESSION_START_INSTANCE);
|
| + }
|
| +
|
| + test_method_body_expression2() {
|
| + addTestSource('class A { foo() {return b == true ? 1 : ^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestKeywords(EXPRESSION_START_INSTANCE);
|
| + }
|
| +
|
| + test_method_body_return() {
|
| + addTestSource('class A { foo() {return ^}}');
|
| + expect(computeFast(), isTrue);
|
| + assertSuggestKeywords(EXPRESSION_START_INSTANCE);
|
| + }
|
| +
|
| test_method_param() {
|
| addTestSource('class A { foo(^) {});}');
|
| expect(computeFast(), isTrue);
|
|
|