pub struct Parse { /* private fields */ }Expand description
Result of parsing an Ink source file.
PartialEq compares the green tree structurally (rowan GreenNode
equality is content-based) plus the error list — used by the salsa
parse query in brink-db for early-cutoff backdating.
Implementations§
Source§impl Parse
impl Parse
Sourcepub fn syntax(&self) -> SyntaxNode
pub fn syntax(&self) -> SyntaxNode
The root syntax node (typed wrapper around the green tree).
Sourcepub fn errors(&self) -> &[ParseError]
pub fn errors(&self) -> &[ParseError]
Parse errors encountered.
Trait Implementations§
impl Eq for Parse
impl StructuralPartialEq for Parse
Auto Trait Implementations§
impl Freeze for Parse
impl RefUnwindSafe for Parse
impl Send for Parse
impl Sync 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