Class GatherGetterAndSetterProperties

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

public final class GatherGetterAndSetterProperties extends Object implements CompilerPass
Finds getter and setter properties in the AST.

Used to back off certain optimizations, e.g. code removal.

  • 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
    • update

      public static void update(AbstractCompiler compiler, Node externs, Node root)
      Gathers all getters and setters in the AST.