MaterializedIdentifier

struct MaterializedIdentifier

One identifier in the virtual source parsed for expansion. span and lexeme index that virtual source; source_* point back to the token from which the syntax object was captured or quoted.

Properties

let text: String

The identifier spelling without quotes or sigils.

let span: Range<Int>

The complete token range in the virtual source.

let lexeme: Range<Int>

The identifier text range in the virtual source.

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.

let source_lexeme: Range<Int>

The byte range of the original source lexeme.