Reserved interface

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

When the parser encounters an expression with syntax reserved for later use, it emits a Reserved pattern element to represent it.

Signature:

export interface Reserved 

Remarks

As the meaning of this syntax is not yet defined or supported, it will always resolve with a fallback representation and emit an error.

Properties

Property Modifiers Type Description
name?   never (BETA) (Optional)
operand?   Literal | VariableRef (BETA) (Optional)
sigil   ’!’ | ‘@’ | ‘#’ | ‘%’ | ‘^’ | ‘&’ | ‘*’ | ‘<’ | ‘>’ | ‘?’ | ‘~’ (BETA)
source   string (BETA)
type   ‘reserved’ (BETA)