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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartElementLocator.java

Issue 9802036: DartElementLocator fix to address directive navigation regressions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartElementLocator.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartElementLocator.java (revision 5938)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartElementLocator.java (working copy)
@@ -442,7 +442,7 @@
DartNode parent = node.getParent();
if (parent instanceof DartImportDirective
&& ((DartImportDirective) parent).getLibraryUri() == node) {
- resolvedElement = ((DartImportDirective) parent).getElement();
+ //resolvedElement = ((DartImportDirective) parent).getElement();
DartLibrary library = compilationUnit.getLibrary();
String libraryName = node.getValue();
if (libraryName.startsWith("dart:")) {
@@ -475,7 +475,7 @@
}
} else if (parent instanceof DartSourceDirective
&& ((DartSourceDirective) parent).getSourceUri() == node) {
- resolvedElement = ((DartSourceDirective) parent).getElement();
+ //resolvedElement = ((DartSourceDirective) parent).getElement();
DartLibrary library = compilationUnit.getLibrary();
String fileName = getFileName(library, node.getValue());
CompilationUnit sourcedUnit = library.getCompilationUnit(fileName);
@@ -484,7 +484,7 @@
}
} else if (parent instanceof DartResourceDirective
&& ((DartResourceDirective) parent).getResourceUri() == node) {
- resolvedElement = ((DartResourceDirective) parent).getElement();
+ //resolvedElement = ((DartResourceDirective) parent).getElement();
DartLibrary library = compilationUnit.getLibrary();
try {
DartSource unitSource = compilationUnit.getSourceRef();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698