pub struct Parse {
pub tree: Rc<Tree>,
pub error_messages: Vec<String>,
pub missed_tokens: Vec<MissedTokens>,
}Expand description
A parsed file: the tree plus one message per ERROR_ELEMENT, in tree preorder.
Fields§
§tree: Rc<Tree>§error_messages: Vec<String>§missed_tokens: Vec<MissedTokens>Builders (the file’s, or a chameleon’s) that stopped before their last token, in build order.
Implementations§
Source§impl Parse
impl Parse
pub fn has_errors(&self) -> bool
Sourcepub fn first_missed_tokens(&self) -> Option<&MissedTokens>
pub fn first_missed_tokens(&self) -> Option<&MissedTokens>
The missed tokens a preorder walk meets first (the first to throw).
Trait Implementations§
Auto Trait Implementations§
impl !Send for Parse
impl !Sync for Parse
impl Freeze for Parse
impl RefUnwindSafe for Parse
impl Unpin for Parse
impl UnsafeUnpin for Parse
impl UnwindSafe for Parse
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