| Index: pkg/analysis_server/test/search/member_declarations_test.dart
|
| diff --git a/pkg/analysis_server/test/search/member_declarations_test.dart b/pkg/analysis_server/test/search/member_declarations_test.dart
|
| index cb4af305351a670a5df53f9f5a01facbcaea4572..bad6bc54179eafb1749b007c59b7f78d426018a3 100644
|
| --- a/pkg/analysis_server/test/search/member_declarations_test.dart
|
| +++ b/pkg/analysis_server/test/search/member_declarations_test.dart
|
| @@ -62,6 +62,33 @@ class MemberDeclarationsTest extends AbstractSearchDomainTest {
|
| return null;
|
| }
|
|
|
| + test_localVariable() {
|
| + addTestFile('''
|
| +class A {
|
| + main() {
|
| + var foo = 42;
|
| + }
|
| +}
|
| +''');
|
| + return findMemberDeclarations('foo').then((_) {
|
| + expect(results, isEmpty);
|
| + });
|
| + }
|
| +
|
| + test_localVariable_forIn() {
|
| + addTestFile('''
|
| +class A {
|
| + main() {
|
| + for (int foo in []) {
|
| + }
|
| + }
|
| +}
|
| +''');
|
| + return findMemberDeclarations('foo').then((_) {
|
| + expect(results, isEmpty);
|
| + });
|
| + }
|
| +
|
| test_methodField() {
|
| addTestFile('''
|
| class A {
|
|
|