parseResult static method
Parses label into an explicit success or failure value.
Implementation
static ParseResult<VerseLabel> parseResult(String label) {
final normalized = _normalize(label);
try {
return ParseSuccess(
_parseNormalized(label, normalized),
metadata: ReferenceParseMetadata(normalizedInput: normalized),
);
} on ParseVerseRefError catch (error) {
return ParseFailure(error);
}
}