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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/callhierarchy/CalleeAnalyzerVisitor.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.ui/src/com/google/dart/tools/ui/internal/callhierarchy/CalleeAnalyzerVisitor.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/callhierarchy/CalleeAnalyzerVisitor.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/callhierarchy/CalleeAnalyzerVisitor.java
index 8933557bb4ab62eca9691dc79607d3d6c6986316..149373c4151a9bde4970383df56292f6efaf26e6 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/callhierarchy/CalleeAnalyzerVisitor.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/callhierarchy/CalleeAnalyzerVisitor.java
@@ -13,12 +13,12 @@
*/
package com.google.dart.tools.ui.internal.callhierarchy;
+import com.google.dart.compiler.ast.ASTVisitor;
import com.google.dart.compiler.ast.DartFunctionObjectInvocation;
import com.google.dart.compiler.ast.DartInvocation;
import com.google.dart.compiler.ast.DartMethodInvocation;
import com.google.dart.compiler.ast.DartNewExpression;
import com.google.dart.compiler.ast.DartNode;
-import com.google.dart.compiler.ast.ASTVisitor;
import com.google.dart.compiler.ast.DartRedirectConstructorInvocation;
import com.google.dart.compiler.ast.DartSuperConstructorInvocation;
import com.google.dart.compiler.ast.DartUnqualifiedInvocation;
@@ -80,7 +80,7 @@ public class CalleeAnalyzerVisitor extends ASTVisitor<Void> {
progressMonitorWorked(1);
if (isFurtherTraversalNecessary(node)) {
if (isNodeWithinMethod(node)) {
- addMethodCall(node.getReferencedElement(), node);
+ addMethodCall(node.getElement(), node);
}
}
return visitExpression(node);
@@ -145,7 +145,7 @@ public class CalleeAnalyzerVisitor extends ASTVisitor<Void> {
Collection<DartElement> implementingMethods = CallHierarchy.getDefault().getImplementingMethods(
calledMethod);
- if ((implementingMethods.size() == 0) || (implementingMethods.size() > 1)) {
+ if (implementingMethods.size() == 0 || implementingMethods.size() > 1) {
return calledMethod;
} else {
return (Method) implementingMethods.iterator().next();

Powered by Google App Engine
This is Rietveld 408576698