func expr_macro_failure(code: String, message: String, span: Range<Int>) -> ExprMacroOutputBuilds the flattened expression-macro representation of a failure.
Source, parse outcome, and identifier metadata are empty; the supplied code, message, and span cross the service boundary unchanged.
View Source
pub func expr_macro_failure(code: String, message: String, span: Range<Int>) -> ExprMacroOutput {
ExprMacroOutput(
source: "",
outcome: .none,
metadata: SyntaxMetadataOutput(identifiers: []),
failure_code: .some(code),
failure_message: .some(message),
failure_start: span.lower,
failure_end: span.upper
)
}