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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.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/DartPropertyAccess.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java b/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
index fddc51ca456036332ba5831f6cfa4095b25819fa..5662c065e0b08d56e9ca120ea742c0f0ad50477f 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java
@@ -7,7 +7,6 @@ package com.google.dart.compiler.ast;
import com.google.dart.compiler.common.Symbol;
import com.google.dart.compiler.resolver.Element;
import com.google.dart.compiler.type.Type;
-import com.google.dart.compiler.type.Types;
/**
* Represents a Dart property access expression (a.b).
@@ -76,22 +75,13 @@ public class DartPropertyAccess extends DartExpression implements ElementReferen
}
@Override
- public void traverse(DartVisitor v, DartContext ctx) {
- if (v.visit(this, ctx)) {
- qualifier = becomeParentOf(v.accept(qualifier));
- name = becomeParentOf(v.accept(name));
- }
- v.endVisit(this, ctx);
- }
-
- @Override
- public void visitChildren(DartPlainVisitor<?> visitor) {
+ public void visitChildren(ASTVisitor<?> visitor) {
qualifier.accept(visitor);
name.accept(visitor);
}
@Override
- public <R> R accept(DartPlainVisitor<R> visitor) {
+ public <R> R accept(ASTVisitor<R> visitor) {
return visitor.visitPropertyAccess(this);
}

Powered by Google App Engine
This is Rietveld 408576698