Amplication AST Libraries Documentation
    Preparing search index...

    Represents a C# enum in the AST. This class handles the generation of C# enum declarations including members, values, and annotations.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    name: string

    The name of the enum

    namespace: string

    The namespace containing the enum

    access: Access

    The access level of the enum

    reference: ClassReference

    The class reference for this enum

    Methods

    • Adds a member to the enum.

      Parameters

      • field: Member

        The enum member to add

      Returns void

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