decl_wrapper_failure

func decl_wrapper_failure(code: String, message: String, span: Range<Int>) -> DeclWrapperOutput

Builds the flattened wrapper-service representation of a failure.

Replacement source, parse outcome, and metadata are empty; removed stays false so intentional removal remains distinguishable from rejection.

View Source
pub func decl_wrapper_failure(code: String, message: String, span: Range<Int>) -> DeclWrapperOutput {
	DeclWrapperOutput(
		source: "",
		outcome: .none,
		metadata: SyntaxMetadataOutput(identifiers: []),
		removed: false,
		failure_code: .some(code),
		failure_message: .some(message),
		failure_start: span.lower,
		failure_end: span.upper
	)
}