MacroToken

struct MacroToken

A flattened canonical token carried by a macro invocation. Flattening the ranges keeps the parse-result ABI simple; no token text is reconstructed.

Properties

let kind: TokenKind

The stable lexical category crossing the macro-service boundary.

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.