Amplication AST Libraries Documentation
    Preparing search index...

    Represents a method parameter in the AST. This class handles the generation of method parameters including type, annotations, and documentation.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    The name of the parameter

    docs?: string

    The documentation for the parameter

    Methods

    • Writes the parameter declaration to the writer. This includes annotations, modifiers, type, and name.

      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