| Index: pkg/analysis_services/lib/src/index/index_contributor.dart
|
| diff --git a/pkg/analysis_services/lib/src/index/index_contributor.dart b/pkg/analysis_services/lib/src/index/index_contributor.dart
|
| index a6cf5cb7f0276e9b0aabd4568c0524e9765d0730..044418396e146980b9d1806b9a1519b32611558b 100644
|
| --- a/pkg/analysis_services/lib/src/index/index_contributor.dart
|
| +++ b/pkg/analysis_services/lib/src/index/index_contributor.dart
|
| @@ -1075,6 +1075,7 @@ class _IndexContributor extends GeneralizingAstVisitor<Object> {
|
| static Location
|
| _getLocationWithTypeAssignedToField(SimpleIdentifier identifier,
|
| Element element, Location location) {
|
| + // TODO(scheglov) decide if we want to remember assigned types
|
| // we need accessor
|
| if (element is! PropertyAccessorElement) {
|
| return location;
|
| @@ -1181,7 +1182,7 @@ class _IndexContributor extends GeneralizingAstVisitor<Object> {
|
| }
|
| Namespace namespace = new NamespaceBuilder(
|
| ).createImportNamespaceForDirective(importElement);
|
| - Set<Element> elements = new Set();
|
| + Set<Element> elements = new Set.from(namespace.definedNames.values);
|
| importElementsMap[importElement] = elements;
|
| }
|
| // use import namespace to choose correct one
|
|
|