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

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

Issue 9633009: Use Element instead of Symbol. (Closed) Base URL: https://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
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
index 41b13d5313dadd338eeb88f80a7dfe037b0da985..78223ffe242d3bcdbe7344723deab0d94351ecda 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java
@@ -89,7 +89,7 @@ public class DartAstUtilities {
* @return <code>true</code> if the given method is a constructor
*/
public static boolean isConstructor(DartMethodDefinition method) {
- MethodElement methodElement = method.getSymbol();
+ MethodElement methodElement = method.getElement();
if (methodElement != null) {
return methodElement.isConstructor();
}
@@ -109,12 +109,12 @@ public class DartAstUtilities {
}
DartExpression name = method.getName();
if (name instanceof DartIdentifier) {
- return ((DartIdentifier) name).getTargetName().equals(className);
+ return ((DartIdentifier) name).getName().equals(className);
} else if (name instanceof DartPropertyAccess) {
DartPropertyAccess property = (DartPropertyAccess) name;
DartNode qualifier = property.getQualifier();
if (qualifier instanceof DartIdentifier) {
- return ((DartIdentifier) qualifier).getTargetName().equals(className);
+ return ((DartIdentifier) qualifier).getName().equals(className);
}
}
return false;

Powered by Google App Engine
This is Rietveld 408576698