Class ReferenceCollector

java.lang.Object
com.google.javascript.jscomp.ReferenceCollector
All Implemented Interfaces:
CompilerPass, StaticSymbolTable<Var,Reference>

public final class ReferenceCollector extends Object implements CompilerPass, StaticSymbolTable<Var,Reference>
A helper class for passes that want to access all information about where a variable is referenced and declared at once and then make a decision as to how it should be handled, possibly inlining, reordering, or generating warnings. Callers do this by providing ReferenceCollector.Behavior and then calling process(Node, Node).