public final class GatherGetterAndSetterProperties extends java.lang.Object implements CompilerPass
Used to back off certain optimizations, e.g. code removal.
Modifier and Type | Method and 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.
|
public void process(Node externs, Node root)
CompilerPass
process
in interface CompilerPass
externs
- Top of external JS treeroot
- Top of JS treepublic static void update(AbstractCompiler compiler, Node externs, Node root)
Copyright © 2009-2020 Google. All Rights Reserved.