pub struct CallSite {
pub functor: AtomId,
pub arity: usize,
pub span: Span,
}Expand description
A source occurrence of an atom-functor term (name or name(...)),
captured in parse_primary. This is a broad over-approximation of “call
sites”: it records every such term regardless of position — goals, but
also atoms as constants (X = foo), atoms inside data (p(foo, bar)),
functors in operator specs (dynamic(foo/1) records dynamic, foo,
and /), and [] as []/0. It never matches text in comments (those
aren’t parsed). The LSP narrows this to real calls by intersecting with
the lint’s undefined (name, arity) set, which keeps the false-positive
surface small in practice.
Fields§
§functor: AtomId§arity: usize§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for CallSite
impl RefUnwindSafe for CallSite
impl Send for CallSite
impl Sync for CallSite
impl Unpin for CallSite
impl UnsafeUnpin for CallSite
impl UnwindSafe for CallSite
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