| Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java
|
| index 084d684fb2ddc82c0cf1c9ef13c60813cd3e2f0a..4700003c1e7b7ceed1512fb4e5b36569abbf0abe 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/visitor/SafeDartNodeTraverser.java
|
| @@ -14,18 +14,17 @@
|
| package com.google.dart.tools.core.dom.visitor;
|
|
|
| import com.google.dart.compiler.ast.DartNode;
|
| -import com.google.dart.compiler.ast.DartNodeTraverser;
|
| -import com.google.dart.compiler.ast.DartPlainVisitor;
|
| +import com.google.dart.compiler.ast.ASTVisitor;
|
| import com.google.dart.tools.core.DartCore;
|
|
|
| /**
|
| - * Instances of the class <code>SafeDartNodeTraverser</code> implement a {@link DartPlainVisitor
|
| - * Dart visitor} that will not throw an exception as a result of finding an incorrectly constructed
|
| - * AST structure. In order to catch exceptions, any method that needs to visit the children of a
|
| - * given node should use the method {@link #visitChildren(DartNode)} rather than asking the node to
|
| - * visit its children directly.
|
| + * Instances of the class <code>SafeDartNodeTraverser</code> implement a {@link ASTVisitor}
|
| + * that will not throw an exception as a result of finding an incorrectly constructed AST structure.
|
| + * In order to catch exceptions, any method that needs to visit the children of a given node should
|
| + * use the method {@link #visitChildren(DartNode)} rather than asking the node to visit its children
|
| + * directly.
|
| */
|
| -public class SafeDartNodeTraverser<R> extends DartNodeTraverser<R> {
|
| +public class SafeDartNodeTraverser<R> extends ASTVisitor<R> {
|
| /*
|
| * Note that this implementation does not maximize the number of nodes that are visited, even
|
| * though doing so might be a desirable trait. In order to do so I believe that we would have to
|
|
|