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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartMethodInvocation.java

Issue 9598002: Use ASTVisitor as in new AST. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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/DartMethodInvocation.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartMethodInvocation.java b/compiler/java/com/google/dart/compiler/ast/DartMethodInvocation.java
index 3d9d377cdb1804386bc35d8352489f7d26c358a0..461f1aaaa23c5d861faf4799fd2ad823ea3e10a6 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartMethodInvocation.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartMethodInvocation.java
@@ -55,25 +55,14 @@ public class DartMethodInvocation extends DartInvocation {
}
@Override
- public void traverse(DartVisitor v, DartContext ctx) {
- if (v.visit(this, ctx)) {
- target = becomeParentOf(v.accept(target));
- functionName = becomeParentOf(v.accept(functionName));
- functionName.getClass(); // Quick null-check.
- v.acceptWithInsertRemove(this, getArgs());
- }
- v.endVisit(this, ctx);
- }
-
- @Override
- public void visitChildren(DartPlainVisitor<?> visitor) {
+ public void visitChildren(ASTVisitor<?> visitor) {
target.accept(visitor);
functionName.accept(visitor);
visitor.visit(getArgs());
}
@Override
- public <R> R accept(DartPlainVisitor<R> visitor) {
+ public <R> R accept(ASTVisitor<R> visitor) {
return visitor.visitMethodInvocation(this);
}
}

Powered by Google App Engine
This is Rietveld 408576698