struct SyntaxIdentifierAn identifier's spelling, source provenance, and hygienic resolution context.
Equal text does not imply equal binding identity: the ordered scopes and origin determine whether two spellings can resolve to the same declaration. Source ranges point to the token that was captured or introduced.
Properties
let text: String
The identifier spelling without quotes or sigils.
let context: SyntaxContext
The ordered hygiene scopes used during name resolution.
let origin: SyntaxOrigin
The origin that determines how this syntax resolves.
let source_id: Int
The identifier of the source file.
let source_span: Range<Int>
The byte range in the original source.