class InferConsts extends java.lang.Object implements CompilerPass
| Modifier and Type | Field and Description |
|---|---|
private AbstractCompiler |
compiler |
| Constructor and Description |
|---|
InferConsts(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
private void |
considerVar(Var v,
ReferenceCollectingCallback.ReferenceCollection refCollection) |
void |
process(Node externs,
Node js)
Process the JS with root node root.
|
private final AbstractCompiler compiler
InferConsts(AbstractCompiler compiler)
public void process(Node externs, Node js)
CompilerPassprocess in interface CompilerPassexterns - Top of external JS treejs - Top of JS treeprivate void considerVar(Var v, ReferenceCollectingCallback.ReferenceCollection refCollection)