Amplication AST Libraries Documentation
    Preparing search index...

    Represents a class instantiation in C#. This class handles the generation of object creation expressions including named and unnamed constructor arguments.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    classReference: ClassReference

    The class being instantiated

    arguments_: NamedArgument[] | CodeBlock[]

    The arguments passed to the constructor

    Methods

    • Writes the class instantiation 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