Package com.google.javascript.jscomp
Class J2clConstantHoisterPass
java.lang.Object
com.google.javascript.jscomp.J2clConstantHoisterPass
- All Implemented Interfaces:
CompilerPass
An optimization pass for J2CL-generated code to hoist some constant assignments out clinit method
to declaration phase so they could be used by other optimization passes for static evaluation.
-
Method Summary
-
Method Details
-
process
Description copied from interface:CompilerPassProcess the JS with root node root. Can modify the contents of each Node tree- Specified by:
processin interfaceCompilerPass- Parameters:
externs- Top of external JS treeroot- Top of JS tree
-