Skip to content

ListExpr

ListExpr describes a list creation expression.

elements(): Expr[]

Elements returns the list elements as expressions.

Expr[]


isOptional(index): boolean

IsOptional indicates whether the given element index is optional.

number

boolean


optionalIndices(): number[]

OptionalIndices returns the list of optional indices in the list literal.

number[]


size(): number

Size returns the number of elements in the list.

number