public class ConvertToTypedInterface extends java.lang.Object implements CompilerPass
To do this, it does things like removing function/method bodies, rvalues that are not needed, expressions that are not declarations, etc.
This is conceptually similar to the ijar tool[1] that bazel uses to shrink jars into minimal versions that can be used equivalently for compilation of downstream dependencies. [1] https://github.com/bazelbuild/bazel/blob/master/third_party/ijar/README.txt
| Constructor and Description |
|---|
ConvertToTypedInterface(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
public ConvertToTypedInterface(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPassprocess in interface CompilerPassexterns - Top of external JS treeroot - Top of JS treeCopyright © 2009-2019 Google. All Rights Reserved.