Class SerializeTypedAstPass
- java.lang.Object
-
- com.google.javascript.jscomp.serialization.SerializeTypedAstPass
-
- All Implemented Interfaces:
CompilerPass
public final class SerializeTypedAstPass extends java.lang.Object implements CompilerPass
A compiler pass intended to serialize the types in the AST.Under construction. Do not use!
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SerializeTypedAstPasscreateFromOutputStream(AbstractCompiler c, java.io.OutputStream out)static SerializeTypedAstPasscreateFromPath(AbstractCompiler compiler, java.nio.file.Path outputPath)voidprocess(Node externs, Node root)Process the JS with root node root.
-
-
-
Method Detail
-
createFromOutputStream
public static SerializeTypedAstPass createFromOutputStream(AbstractCompiler c, java.io.OutputStream out)
-
createFromPath
public static SerializeTypedAstPass createFromPath(AbstractCompiler compiler, java.nio.file.Path outputPath)
-
process
public void process(Node externs, Node root)
Description copied from interface:CompilerPassProcess the JS with root node root. Can modify the contents of each Node tree- Specified by:
processin interfaceCompilerPass- Parameters:
externs- Top of external JS treeroot- Top of JS tree
-
-