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, SerializationOptions serializationOptions)Serializes a TypedAst to the given output stream.static SerializeTypedAstPasscreateFromPath(AbstractCompiler compiler, java.nio.file.Path outputPath, SerializationOptions serializationOptions)Serializes a gzipped TypedAst to the specified outputPathvoidprocess(Node externs, Node root)Process the JS with root node root.
-
-
-
Method Detail
-
createFromOutputStream
public static SerializeTypedAstPass createFromOutputStream(AbstractCompiler c, java.io.OutputStream out, SerializationOptions serializationOptions)
Serializes a TypedAst to the given output stream.Unlike
#createFromPath(AbstractCompiler, Path), this method does not automatically gzip the TypedAST. The "out" parameter may or may not already be a GZIPOutputStream.
-
createFromPath
public static SerializeTypedAstPass createFromPath(AbstractCompiler compiler, java.nio.file.Path outputPath, SerializationOptions serializationOptions)
Serializes a gzipped TypedAst to the specified 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
-
-