SwitchEntry

constructor()(source)
constructor(labels: NodeList<Expression>, type: SwitchEntry.Type, statements: NodeList<Statement>, isDefault: Boolean, guard: Expression)(source)


constructor(tokenRange: TokenRange, labels: NodeList<Expression>, type: SwitchEntry.Type, statements: NodeList<Statement>)(source)
constructor(labels: NodeList<Expression>, type: SwitchEntry.Type, statements: NodeList<Statement>)(source)

This constructor exists for backwards compatibility for code that instantiated `SwitchEntries` before the `isDefault` and guard fields were added.


constructor(tokenRange: TokenRange, labels: NodeList<Expression>, type: SwitchEntry.Type, statements: NodeList<Statement>, isDefault: Boolean, guard: Expression)(source)
constructor(tokenRange: TokenRange, labels: NodeList<Expression>, type: SwitchEntry.Type, statements: NodeList<Statement>, isDefault: Boolean)(source)

This constructor is used by the parser and is considered private.