Amplication AST Libraries Documentation
    Preparing search index...

    Represents a C# field in the AST. This class handles the generation of C# field declarations including type, access modifiers, annotations, and property accessors.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string

    The name of the field

    access: Access

    The access level of the field

    readonly_: boolean

    Whether the field is readonly

    splitAnnotations?: boolean

    Whether to split annotations onto separate lines

    Methods

    • Writes the field 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