pub struct PointerChecker<'a> { /* private fields */ }Implementations§
Source§impl<'a> PointerChecker<'a>
impl<'a> PointerChecker<'a>
pub fn new(scripts: &'a [CompiledScript], registry: &'a SymbolRegistry) -> Self
Sourcepub fn set_source_cache(&mut self, provider: SourceProvider<'a>)
pub fn set_source_cache(&mut self, provider: SourceProvider<'a>)
Attach a source-text cache so emitted warnings can carry concrete before/after suggestion text. Purely diagnostic — never touches bytecode, script metadata, or output ordering.
Sourcepub fn run(&mut self) -> DiagnosticsCollector
pub fn run(&mut self) -> DiagnosticsCollector
Run pointer checking on all scripts and return collected diagnostics.
Sourcepub fn script_names(&self) -> Vec<String>
pub fn script_names(&self) -> Vec<String>
Script names in validation order (the order of scripts).
Sourcepub fn validate_names(&mut self, names: &[String]) -> DiagnosticsCollector
pub fn validate_names(&mut self, names: &[String]) -> DiagnosticsCollector
Validate the given scripts, returning their diagnostics in names order.
The per-script caches are pure memoization (a script’s analysis is a
function of the read-only scripts + registry), so splitting
script_names() into chunks and giving each chunk its own
PointerChecker produces byte-identical diagnostics to validating
everything in a single checker — which lets the pass run across threads.
Auto Trait Implementations§
impl<'a> !Freeze for PointerChecker<'a>
impl<'a> !RefUnwindSafe for PointerChecker<'a>
impl<'a> !Send for PointerChecker<'a>
impl<'a> !Sync for PointerChecker<'a>
impl<'a> !UnwindSafe for PointerChecker<'a>
impl<'a> Unpin for PointerChecker<'a>
impl<'a> UnsafeUnpin for PointerChecker<'a>
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