Amplication AST Libraries Documentation
    Preparing search index...

    Represents a C# parameter in the AST. This class handles the generation of C# parameter declarations including type, annotations, and default values.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string

    The name of the parameter

    docs: undefined | string

    XML documentation for the parameter

    initializer: undefined | string

    The default value for the parameter

    annotations?: Annotation[]

    The annotations applied to this parameter

    splitAnnotations?: boolean

    Whether to split annotations onto separate lines

    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