Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3413)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/search/SearchEngineImpl.java

Issue 10918260: Issue 5044. Keep FieldElement as Element for field access (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/search/SearchEngineImpl.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/search/SearchEngineImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/search/SearchEngineImpl.java
index f0d9526565284c17987f1d6fe692d9c93dde4052..533fd520c9a215a36b92a7b8195ad10ec0c08003 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/search/SearchEngineImpl.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/search/SearchEngineImpl.java
@@ -508,24 +508,24 @@ public class SearchEngineImpl implements SearchEngine {
throw new IllegalArgumentException("listener cannot be null");
}
SearchListener filteredListener = new CountingSearchListener(5, applyFilter(filter, listener));
+ Element element = createElement(function);
index.getRelationships(
- createElement(function),
+ element,
IndexConstants.IS_INVOKED_BY_QUALIFIED,
new RelationshipCallbackImpl(MatchKind.FUNCTION_EXECUTION, filteredListener));
index.getRelationships(
- createElement(function),
+ element,
IndexConstants.IS_INVOKED_BY_UNQUALIFIED,
new RelationshipCallbackImpl(MatchKind.FUNCTION_EXECUTION, filteredListener));
+ index.getRelationships(element, IndexConstants.IS_REFERENCED_BY, new RelationshipCallbackImpl(
+ MatchKind.FUNCTION_EXECUTION,
+ filteredListener));
index.getRelationships(
- createElement(function),
- IndexConstants.IS_REFERENCED_BY,
- new RelationshipCallbackImpl(MatchKind.FUNCTION_EXECUTION, filteredListener));
- index.getRelationships(
- createElement(function),
+ element,
IndexConstants.IS_ACCESSED_BY_UNQUALIFIED,
new RelationshipCallbackImpl(MatchKind.FUNCTION_EXECUTION, filteredListener));
index.getRelationships(
- createElement(function),
+ element,
IndexConstants.IS_ACCESSED_BY_QUALIFIED,
new RelationshipCallbackImpl(MatchKind.FUNCTION_EXECUTION, filteredListener));
}

Powered by Google App Engine
This is Rietveld 408576698