| Index: pkg/analysis_services/test/index/dart_index_contributor_test.dart
|
| diff --git a/pkg/analysis_services/test/index/dart_index_contributor_test.dart b/pkg/analysis_services/test/index/dart_index_contributor_test.dart
|
| index 423db1ef4f9c51bf0d1551367e3d925c23e1088a..991245978e097c4caaf1b7c296c916f07b36b793 100644
|
| --- a/pkg/analysis_services/test/index/dart_index_contributor_test.dart
|
| +++ b/pkg/analysis_services/test/index/dart_index_contributor_test.dart
|
| @@ -152,6 +152,26 @@ main(A a, p) {
|
| _expectedLocationQU(mainElement, 'method(); // ur'));
|
| }
|
|
|
| + void test_NameElement_isDefinedBy_localVariable_inForEach() {
|
| + _indexTestUnit('''
|
| +class A {
|
| + main() {
|
| + for (int test in []) {
|
| + }
|
| + }
|
| +}
|
| +''');
|
| + // prepare elements
|
| + Element mainElement = findElement('main');
|
| + LocalVariableElement testElement = findElement('test');
|
| + Element nameElement = new NameElement('test');
|
| + // verify
|
| + _assertRecordedRelation(
|
| + nameElement,
|
| + IndexConstants.NAME_IS_DEFINED_BY,
|
| + _expectedLocation(testElement, 'test in []'));
|
| + }
|
| +
|
| void test_NameElement_operator_resolved() {
|
| _indexTestUnit('''
|
| class A {
|
|
|