Amplication AST Libraries Documentation
    Preparing search index...

    Base interface for all AST nodes in the Amplication AST system. All specific node types must implement this interface.

    interface IAstNode {
        write(writer: IWriter): void;
        toString(): string;
    }

    Implemented by

    Index

    Methods

    Methods

    • Writes the AST node to the given writer.

      Parameters

      • writer: IWriter

        The writer to write to

      Returns void

    • Returns the string representation of the AST node.

      Returns string

      The string representation of the AST node