MacroInput

struct MacroInput

A procedural macro invocation's source identity, text, and balanced token tree.

The outer delimiter is retained so a macro can distinguish (), [], and {}. Tokens continue to index source; manufacturing a new string does not manufacture a new hygienic identifier.

Properties

let source_id: Int

The identifier of the source file.

let source: String

The source text.