Package com.google.javascript.jscomp
Class GatherGetterAndSetterProperties
- java.lang.Object
-
- com.google.javascript.jscomp.GatherGetterAndSetterProperties
-
- All Implemented Interfaces:
CompilerPass
public final class GatherGetterAndSetterProperties extends java.lang.Object implements CompilerPass
Finds getter and setter properties in the AST.Used to back off certain optimizations, e.g. code removal.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(Node externs, Node root)
Process the JS with root node root.static void
update(AbstractCompiler compiler, Node externs, Node root)
Gathers all getters and setters in the AST.
-
-
-
Method Detail
-
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 interfaceCompilerPass
- Parameters:
externs
- Top of external JS treeroot
- Top of JS tree
-
update
public static void update(AbstractCompiler compiler, Node externs, Node root)
Gathers all getters and setters in the AST.
-
-