LabeledExprSyntax

An expression that is prefixed by a label.

SyntaxNodesJKLMN.swift:807
struct LabeledExprSyntax

For example, labeled expressions occur in

  • Function calls, where the label is the parameter label.

  • Tuples, where the label is the name of the tuple element.

Children

  • label: (<identifier> | _)?

  • colon: :?

  • expression: ExprSyntax

  • trailingComma: ,?

Contained in