Skip to content

Commit

Permalink
Put back traverseEs6 to ease the transition for external users of the…
Browse files Browse the repository at this point in the history
… Java API. Fixes #2892

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193228792
  • Loading branch information
tbreisacher authored and blickly committed Apr 17, 2018
1 parent 5823a05 commit 3771e34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/com/google/javascript/jscomp/NodeTraversal.java
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,14 @@ public final boolean shouldTraverse(NodeTraversal t, Node n, Node parent) {
});
}

/**
* 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) {
Expand Down

0 comments on commit 3771e34

Please sign in to comment.