Class J2clConstantHoisterPass

java.lang.Object
com.google.javascript.jscomp.J2clConstantHoisterPass
All Implemented Interfaces:
CompilerPass

public class J2clConstantHoisterPass extends Object implements 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 Details

    • process

      public void process(Node externs, Node root)
      Description copied from interface: CompilerPass
      Process the JS with root node root. Can modify the contents of each Node tree
      Specified by:
      process in interface CompilerPass
      Parameters:
      externs - Top of external JS tree
      root - Top of JS tree