tupleElementSelector

A single element within a tuple selector. Binds a name to an expression value, producing one property of the resulting tuple. The name is a referential identifier and the value is any expression.

Examples

String property

{ name: 'Alice' }

Computed property

{ age: AgeInYears() }

Nested tuple

{ info: { name: 'Alice', active: true } }
Railroad Diagram
100%
referentialIdentifier : expression

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

tupleElementSelector
  : referentialIdentifier ':' expression
  ;

Used In