The AST subclass representing alternative expressions (choose-when).

Consists of one or more conditional expressions, the conditionalExprs, and an optional elseExpr to use if none of the conditions is true.

Notes:

  • the elseExpr may be undefined, representing the case of an alternative with no else.

PRECONDITIONS:

  • conditionalExprs.length >=1

Hierarchy (view full)

API

  • The specialized constructor for this AST subclass, transforming this particular case to the general one using super.

    PRECONDITIONS:

    • conditionalExprs.length >=1

    Parameters

    Returns ASTExprChoose

    Throws

    GParserPreconditionError

attributes: OptionsTable = ...

TO DO: Complete

children: ASTChild[]

TO DO: Complete This array may be used for 2 purposes:

  • as a list of heterogeneous childs (several branches, some of them lists)
  • as a list of homogeneous childs (just one list branch, represented directly) The difference is given by the kind of node and its components.
span: Span = ...

TO DO: Complete

tag: symbol

TO DO: Complete

  • Indicates if the ASTExprChoose has an else expression.

    Returns boolean

  • TO DO: Complete

    Returns string

Auxiliaries