Skip to content

Commit

Permalink
Deprecate some NodeTraversal methods that are using the old scope cre…
Browse files Browse the repository at this point in the history
…ator.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=171075486
  • Loading branch information
dimvar committed Oct 5, 2017
1 parent 8963b25 commit 70f9ce6
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 @@ -687,6 +687,10 @@ private static void traverseEs6ScopeRoot(
t.traverseScopeRoot(scopeNode);
}

/**
* @deprecated Use the ES6SyntacticScopeCreator instead.
*/
@Deprecated
public static void traverseTyped(AbstractCompiler compiler, Node root, Callback cb) {
NodeTraversal t = new NodeTraversal(compiler, cb, SyntacticScopeCreator.makeTyped(compiler));
t.traverse(root);
Expand All @@ -698,6 +702,10 @@ public static void traverseRootsEs6(
t.traverseRoots(externs, root);
}

/**
* @deprecated Use the ES6SyntacticScopeCreator instead.
*/
@Deprecated
public static void traverseRootsTyped(
AbstractCompiler compiler, Callback cb, Node externs, Node root) {
NodeTraversal t = new NodeTraversal(compiler, cb, SyntacticScopeCreator.makeTyped(compiler));
Expand Down

0 comments on commit 70f9ce6

Please sign in to comment.