mod json;
pub use json::{MAX_DEPTH, json};
use crate::diagnostic::Diagnostic;
use crate::path::Path;
use crate::tree::Node;
#[derive(Clone, Debug)]
pub struct Read {
pub tree: Option<Node>,
pub diagnostics: Vec<Diagnostic>,
pub incomplete: Vec<Path>,
}
impl Read {
#[must_use]
pub fn recovered(&self) -> bool {
!self.diagnostics.is_empty()
}
}
#[cfg(test)]
mod tests;