| Index: compiler/java/com/google/dart/compiler/ast/DartConditional.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/DartConditional.java b/compiler/java/com/google/dart/compiler/ast/DartConditional.java
|
| index 23989789cf9ba3cfbd5b674c979cf76d54a8961e..04a7a8eaff495af4b648d7993e3e25df967bad69 100644
|
| --- a/compiler/java/com/google/dart/compiler/ast/DartConditional.java
|
| +++ b/compiler/java/com/google/dart/compiler/ast/DartConditional.java
|
| @@ -32,24 +32,15 @@ public class DartConditional extends DartExpression {
|
| return thenExpr;
|
| }
|
|
|
| - public void traverse(DartVisitor v, DartContext ctx) {
|
| - if (v.visit(this, ctx)) {
|
| - condition = becomeParentOf(v.accept(condition));
|
| - thenExpr = becomeParentOf(v.accept(thenExpr));
|
| - elseExpr = becomeParentOf(v.accept(elseExpr));
|
| - }
|
| - v.endVisit(this, ctx);
|
| - }
|
| -
|
| @Override
|
| - public void visitChildren(DartPlainVisitor<?> visitor) {
|
| + public void visitChildren(ASTVisitor<?> visitor) {
|
| condition.accept(visitor);
|
| thenExpr.accept(visitor);
|
| elseExpr.accept(visitor);
|
| }
|
|
|
| @Override
|
| - public <R> R accept(DartPlainVisitor<R> visitor) {
|
| + public <R> R accept(ASTVisitor<R> visitor) {
|
| return visitor.visitConditional(this);
|
| }
|
| }
|
|
|