Amplication AST Libraries Documentation
    Preparing search index...

    Represents a reference to a Python class. This class handles the generation of class references in type annotations and manages the necessary imports for the referenced classes.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    The name of the class

    moduleName?: string

    The module name containing the class

    alias?: string

    Optional alias for the class

    Methods

    • Writes the class reference to the writer and adds it to the import collection.

      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