MCPcopy Create free account
hub / github.com/pest-parser/pest / source_code

Method source_code

pest/src/error.rs:766–768  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

764
765 impl<R: RuleType> Diagnostic for MietteAdapter<R> {
766 fn source_code(&self) -> Option<&dyn SourceCode> {
767 Some(&self.0.inner.line)
768 }
769
770 fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan>>> {
771 let message = self.0.variant.message().to_string();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected