SyntaxFailure

struct SyntaxFailure

A stable procedural-syntax failure suitable for crossing the macro-service ABI.

span indexes the relevant original or virtual source named by the surrounding operation. code is machine-stable; message is presentation text.

Properties

let code: String

The stable diagnostic or failure code.

let message: String

A human-readable description of the failure.

let span: Range<Int>

The byte range occupied in the source.