Class 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 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.

      • process

        public void process​(Node externs,
                            Node root)
        Description copied from interface: CompilerPass
        Process the JS with root node root. Can modify the contents of each Node tree
        Specified by:
        process in interface CompilerPass
        Parameters:
        externs - Top of external JS tree
        root - Top of JS tree