SyntaxIdentifierRecord

struct SyntaxIdentifierRecord

A flattened SyntaxIdentifier suitable for the macro-service ABI.

Generic ranges become integer endpoints and scopes become plain records. The virtual span/lexeme identify the materialized token, while source_* fields preserve the token's original provenance.

Properties

let text: String

The identifier spelling without quotes or sigils.

let span_start: Int

The inclusive starting byte offset of the span.

let span_end: Int

The exclusive ending byte offset of the span.

let lexeme_start: Int

The inclusive starting byte offset of the lexeme.

let lexeme_end: Int

The exclusive ending byte offset of the lexeme.

let origin: SyntaxOrigin

The origin that determines how this syntax resolves.

let source_id: Int

The identifier of the source file.

let source_span_start: Int

The inclusive starting byte offset of the source span.

let source_span_end: Int

The exclusive ending byte offset of the source span.

let source_lexeme_start: Int

The inclusive starting byte offset of the source lexeme.

let source_lexeme_end: Int

The exclusive ending byte offset of the source lexeme.