Skip to content

Macro

Macro describes a parser macro signature and expander.

argCount: number | "*"

Declares the accepted positional argument count.


expander: MacroExpander

Expands the parsed call into its semantic CEL expression.


function: string

Names the function or receiver method matched by the macro.


receiverStyle: boolean

Indicates whether the macro matches receiver-style calls.

optional documentation(): Doc | undefined

Returns structured documentation for the macro when available.

Doc | undefined