Skip to content

#func.location.file attribute

← Attribute reference

Captured file range and optional original source text beginning at the start line.

source is the compact positional parameter.

Parameters

Name Kind Cardinality Description
source string required Original source name.
range i64_array required Four unsigned 32-bit coordinates: one-based lines and Unicode code-point columns, with an exclusive end.
synthetic bool optional The source marks this location as compiler-generated.
fields parameterized_array #func.location.field optional —
text bytes optional Exact source lines spanning the range; absent when unavailable.