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

Unified Diff: editor/util/plugins/com.google.dart.dev_util/src/com/google/dart/dev/util/ast/ASTExplorer.java

Issue 22854024: Rename Identifier.getElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: clean-up and fix Created 7 years, 4 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/util/plugins/com.google.dart.dev_util/src/com/google/dart/dev/util/ast/ASTExplorer.java
diff --git a/editor/util/plugins/com.google.dart.dev_util/src/com/google/dart/dev/util/ast/ASTExplorer.java b/editor/util/plugins/com.google.dart.dev_util/src/com/google/dart/dev/util/ast/ASTExplorer.java
index 3272cea7f8414c42ffa78834eba7c6e0186554ec..0d3d2d92d939749e2902bd87540422e1eebcfa36 100644
--- a/editor/util/plugins/com.google.dart.dev_util/src/com/google/dart/dev/util/ast/ASTExplorer.java
+++ b/editor/util/plugins/com.google.dart.dev_util/src/com/google/dart/dev/util/ast/ASTExplorer.java
@@ -495,7 +495,7 @@ public class ASTExplorer extends ViewPart implements AnalysisErrorListener {
} else if (object instanceof PrefixExpression) {
return ((PrefixExpression) object).getStaticElement();
} else if (object instanceof SimpleIdentifier) {
- return ((SimpleIdentifier) object).getElement();
+ return ((SimpleIdentifier) object).getBestElement();
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698