Amplication AST Libraries Documentation
    Preparing search index...

    Represents a block of Python code in the AST. This class handles the generation of arbitrary Python code blocks, either as static strings or as dynamic code generation functions. It is used for language features not directly supported by specific AST node classes.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Writes the code block to the writer.

      Parameters

      • writer: Writer

        The writer to write to

      Returns void

    • Returns the string representation of the AST node. This method creates a new Writer instance and writes the node's content to it.

      Returns string

      The string representation of the AST node