pub type ParseOutput<'a, L>where
L: Language, = OakDiagnostics<&'a GreenNode<'a, L>>;Expand description
The output of a parsing operation, containing the result and diagnostics.
Aliased Type§
pub struct ParseOutput<'a, L>where
L: Language,{
pub result: Result<&'a GreenNode<'a, L>, OakError>,
pub diagnostics: Vec<OakError>,
}Fields§
§result: Result<&'a GreenNode<'a, L>, OakError>The primary result of the parsing operation. May contain either a successful value or a fatal error.
diagnostics: Vec<OakError>A collection of non-fatal errors or warnings encountered during the operation.