| Index: pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/completion_test_util.dart b/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| index 249e1c03a36d3828edb6c6ace4ef987a1fcc76f4..ef721e0a0561e368b3444de3bbed562c23180e42 100644
|
| --- a/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| +++ b/pkg/analysis_server/test/services/completion/completion_test_util.dart
|
| @@ -3986,6 +3986,35 @@ abstract class AbstractSelectorSuggestionTest extends AbstractCompletionTest {
|
| });
|
| }
|
|
|
| + test_SwitchStatement_c() {
|
| + // SwitchStatement Block BlockFunctionBody MethodDeclaration
|
| + addTestSource('class A {String g(int x) {switch(x) {c^}}}');
|
| + computeFast();
|
| + return computeFull((bool result) {
|
| + assertNoSuggestions();
|
| + });
|
| + }
|
| +
|
| + test_SwitchStatement_case() {
|
| + // SwitchStatement Block BlockFunctionBody MethodDeclaration
|
| + addTestSource('class A {String g(int x) {switch(x) {case 0: ^}}}');
|
| + computeFast();
|
| + return computeFull((bool result) {
|
| + assertSuggestLocalClass('A');
|
| + assertSuggestLocalMethod('g', 'A', 'String');
|
| + assertSuggestImportedClass('String');
|
| + });
|
| + }
|
| +
|
| + test_SwitchStatement_empty() {
|
| + // SwitchStatement Block BlockFunctionBody MethodDeclaration
|
| + addTestSource('class A {String g(int x) {switch(x) {^}}}');
|
| + computeFast();
|
| + return computeFull((bool result) {
|
| + assertNoSuggestions();
|
| + });
|
| + }
|
| +
|
| test_ThisExpression_block() {
|
| // MethodInvocation ExpressionStatement Block
|
| addTestSource('''
|
|
|