Amplication AST Libraries Documentation
    Preparing search index...

    Represents a Python parameter in a function or method definition. This class handles the generation of parameter declarations including type annotations and default values.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string

    The name of the parameter

    The type annotation for the parameter

    default_?: string

    The default value for the parameter

    isKeywordOnly: boolean

    Whether this is a keyword-only parameter

    isPositionalOnly: boolean

    Whether this is a positional-only parameter

    isVariablePositional: boolean

    Whether this is a variable positional parameter

    isVariableKeyword: boolean

    Whether this is a variable keyword parameter

    Methods

    • Writes the parameter declaration 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