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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartUnqualifiedInvocation.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: compiler/java/com/google/dart/compiler/ast/DartUnqualifiedInvocation.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartUnqualifiedInvocation.java b/compiler/java/com/google/dart/compiler/ast/DartUnqualifiedInvocation.java
index e95d07d0820e3783fec1bcaf490a56f5cd074f32..6a666b3079ce1b03c0ca7f2f1a535424cf52aa89 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartUnqualifiedInvocation.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartUnqualifiedInvocation.java
@@ -4,17 +4,25 @@
package com.google.dart.compiler.ast;
+import com.google.dart.compiler.resolver.Element;
+import com.google.dart.compiler.resolver.FieldElement;
+import com.google.dart.compiler.resolver.MethodElement;
+import com.google.dart.compiler.resolver.VariableElement;
+
import java.util.List;
/**
* Unqualified function invocation AST node.
+ * <p>
+ * {@link DartUnqualifiedInvocation} may be invocation of real method, or invocation of function
+ * object in field, or invocation of function object in variable. So, its {@link Element} may be
+ * {@link MethodElement}, or {@link FieldElement}, or {@link VariableElement}.
*/
public class DartUnqualifiedInvocation extends DartInvocation {
private DartIdentifier target;
- public DartUnqualifiedInvocation(DartIdentifier target,
- List<DartExpression> args) {
+ public DartUnqualifiedInvocation(DartIdentifier target, List<DartExpression> args) {
super(args);
this.target = becomeParentOf(target);
}

Powered by Google App Engine
This is Rietveld 408576698