Amplication AST Libraries Documentation
    Preparing search index...

    Class AstNodeAbstract

    Base class for all AST nodes in the Python AST library. This abstract class provides the foundation for all Python code generation nodes. Each specific node type must extend this class and implement the write method.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Writes the AST node to the given writer. This method must be implemented by all concrete AST node classes. It defines how the node should be written to the output.

      Parameters

      • writer: IWriter

        The writer instance to write the node's content

      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