public class FieldCleanupPass extends Object implements HotSwapCompilerPass
This pass is expected to clear out declarations contributed to any JSType, even if the constructor declaration is not provided in the file being updated.
| Constructor and Description |
|---|
FieldCleanupPass(AbstractCompiler compiler) |
public FieldCleanupPass(AbstractCompiler compiler)
public void hotSwapScript(Node scriptRoot, Node originalRoot)
HotSwapCompilerPasshotSwapScript in interface HotSwapCompilerPassscriptRoot - Root node corresponding to the file that is modified,
should be of type Token.SCRIPT.originalRoot - Root node corresponding to the original version of the
file that is modified. Should be of type token.SCRIPT.public void process(Node externs, Node root)
CompilerPassprocess in interface CompilerPassexterns - Top of external JS treeroot - Top of JS treeCopyright © 2009-2014 Google. All Rights Reserved.