Open sandboxFocus

Class SwitchStatementLabel

Represents the label of a switch case (i.e. the literal or tuple literal to which the expression is compared). Only single literals or tuple of literals can be represented.

Inheritance
SwitchStatementLabel
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class SwitchStatementLabel

Properties

Name Description
Values

Gets the list of literals in the tuple.

Methods

Name Description
CreateLiteral(params TypedConstant[])

Creates a literal SwitchStatementLabel by giving the literals as TypedConstant values.

CreateLiteral(IReadOnlyList<TypedConstant>)

Creates a literal SwitchStatementLabel by giving the literals as TypedConstant values.

CreateLiteral(params object[])

Creates a literal SwitchStatementLabel by giving the literals as intrinsic values (string, int, ...).