pub struct PartialNode {
pub span: ByteRange,
pub cst_kind: String,
}Expand description
A region of syntax the lowering could not (or does not) model:
a CST ERROR/MISSING node, or a construct outside the modeled tier.
Analyzers translate these into explicit partial analysis facts — they must never be ignored.
Fields§
§span: ByteRangeByte range of the unmodeled region.
cst_kind: StringThe CST node kind this region had ("ERROR", "MISSING Ident", or
the named kind of an unmodeled construct).
Trait Implementations§
Source§impl Clone for PartialNode
impl Clone for PartialNode
Source§fn clone(&self) -> PartialNode
fn clone(&self) -> PartialNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialNode
impl Debug for PartialNode
impl Eq for PartialNode
Source§impl PartialEq for PartialNode
impl PartialEq for PartialNode
impl StructuralPartialEq for PartialNode
Auto Trait Implementations§
impl Freeze for PartialNode
impl RefUnwindSafe for PartialNode
impl Send for PartialNode
impl Sync for PartialNode
impl Unpin for PartialNode
impl UnsafeUnpin for PartialNode
impl UnwindSafe for PartialNode
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