pub struct DocumentInfo {
pub rules: Vec<RuleInfo>,
pub diagnostics: Vec<Diagnostic>,
pub rule_index: HashMap<String, usize>,
pub semantic_tokens: Vec<SemanticTokenInfo>,
pub first_set_labels: HashMap<String, String>,
pub nullable_rules: HashSet<String>,
pub cyclic_rule_paths: HashMap<String, String>,
pub imports: Vec<ImportInfo>,
pub recovers: Vec<RecoverInfo>,
pub no_collapses: Vec<NoCollapseInfo>,
pub pretties: Vec<PrettyInfo>,
}Expand description
Pre-analyzed document state – all data is owned (no lifetimes).
Fields§
§rules: Vec<RuleInfo>§diagnostics: Vec<Diagnostic>§rule_index: HashMap<String, usize>name -> index into rules
semantic_tokens: Vec<SemanticTokenInfo>Semantic tokens in document order.
first_set_labels: HashMap<String, String>FIRST set labels per rule name (formatted for display).
nullable_rules: HashSet<String>Rules that can derive the empty string.
cyclic_rule_paths: HashMap<String, String>Rules that participate in a cycle, with their cycle path.
imports: Vec<ImportInfo>Import directives parsed from the document.
recovers: Vec<RecoverInfo>Recover directives parsed from the document.
no_collapses: Vec<NoCollapseInfo>No-collapse directives parsed from the document.
pretties: Vec<PrettyInfo>Pretty directives parsed from the document.
Trait Implementations§
Source§impl Clone for DocumentInfo
impl Clone for DocumentInfo
Source§fn clone(&self) -> DocumentInfo
fn clone(&self) -> DocumentInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DocumentInfo
impl RefUnwindSafe for DocumentInfo
impl Send for DocumentInfo
impl Sync for DocumentInfo
impl Unpin for DocumentInfo
impl UnsafeUnpin for DocumentInfo
impl UnwindSafe for DocumentInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more