Skip to content

KeyParam

A keyword parameter.

The kind is at the granularity of the language rather than the parser: :foo and foo: local both arrive here, differing only in whether key and name cover the same text.

Inherits from: Param

Fields

default @ (Span | nil)

The span of the default value expression, or nil when the parameter has no default. Slice the source for its text.

key @ Span

The span of the key as written, without the : sigil.