Amplication AST Libraries Documentation
    Preparing search index...

    Writer class for generating Python code from AST nodes.

    Implements

    Index

    Constructors

    Methods

    • Writes text to the output buffer with proper indentation

      Parameters

      • text: string

        The text to write

      Returns void

    • Writes an AST node to the output buffer

      Parameters

      Returns void

    • Writes text followed by a newline if the last line wasn't a newline

      Parameters

      • text: string = ""

        Optional text to write before the newline

      Returns void

    • Writes a newline to the output buffer

      Returns void

    • Increases the indentation level

      Returns void

    • Decreases the indentation level

      Returns void

    • Parameters

      Returns void

    • Returns the current contents of the output buffer

      Returns string