pub struct NameRefNode {
pub start_line: u32,
pub start_column: u32,
pub end_line: u32,
pub end_column: u32,
pub name: String,
pub is_binder: bool,
}Expand description
One identifier occurrence the elaborator recorded.
is_binder distinguishes binding sites from use sites — the same
distinction Lean’s LSP uses to answer “go to definition” vs. “find
references”. name is the fully-qualified name when the reference
resolved to a constant; for binder occurrences it is the raw bound
identifier.
Fields§
§start_line: u321-based start line.
start_column: u321-based start column.
end_line: u321-based end line.
end_column: u321-based end column.
name: StringFully-qualified name when resolved to a constant; raw identifier for binder occurrences.
is_binder: booltrue for binding sites, false for use-site references.
Trait Implementations§
Source§impl Clone for NameRefNode
impl Clone for NameRefNode
Source§fn clone(&self) -> NameRefNode
fn clone(&self) -> NameRefNode
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 NameRefNode
impl Debug for NameRefNode
Source§impl PartialEq for NameRefNode
impl PartialEq for NameRefNode
Source§fn eq(&self, other: &NameRefNode) -> bool
fn eq(&self, other: &NameRefNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'lean> TryFromLean<'lean> for NameRefNode
impl<'lean> TryFromLean<'lean> for NameRefNode
Source§fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
Decode
obj into Self, returning a
LeanError::Host with stage
[HostStage::Conversion] if the object’s kind or payload is
outside the type’s representable range. Read moreimpl Eq for NameRefNode
impl StructuralPartialEq for NameRefNode
Auto Trait Implementations§
impl Freeze for NameRefNode
impl RefUnwindSafe for NameRefNode
impl Send for NameRefNode
impl Sync for NameRefNode
impl Unpin for NameRefNode
impl UnsafeUnpin for NameRefNode
impl UnwindSafe for NameRefNode
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