public class J2clPass extends Object implements CompilerPass
Inlines Arrays.$create(), Arrays.$init(), Arrays.$instanceIsOfType(), Arrays.$castTo() and Casts.to() so that all references to Object.$isInstance() functions will be fully qualified and easy to strip.
Inlines all Interface.$markImplementor(FooClass) metaclass calls so that FooClass and others like it are not unnecessarily retained and so that static analysis of interface instanceof calls becomes possible.
Constructor and Description |
---|
J2clPass(AbstractCompiler compiler) |
Modifier and Type | Method and Description |
---|---|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
public J2clPass(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPass
process
in interface CompilerPass
externs
- Top of external JS treeroot
- Top of JS treeCopyright © 2009-2016 Google. All Rights Reserved.