Amplication AST Libraries Documentation
    Preparing search index...

    Represents a Python assignment statement. This class handles the generation of Python assignment statements, which can include type annotations and handle class vs. instance variables.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    target: string

    The target variable name

    value: string

    The value to assign

    Type annotation for the target

    isClassVariable: boolean

    Whether this is a class variable

    Methods

    • Writes the assignment statement 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