Put back traverseEs6 to ease the transition for external users of the Java API. Fixes
@@ -712,6 +712,14 @@ public class NodeTraversal {
});
}
+ /**
+ * Use #traverse(AbstractCompiler, Node, Callback)
+ */
+ @Deprecated
+ public static final void traverseEs6(AbstractCompiler compiler, Node root, Callback cb) {
+ traverse(compiler, root, cb);
+ }
+
/** Traverses from a particular scope node using the ES6SyntacticScopeCreator */
private static void traverseEs6ScopeRoot(
AbstractCompiler compiler, Node scopeNode, Callback cb, MemoizedScopeCreator scopeCreator) {
