struct GraphSymbolIndex<'graph> {
source_calls: Option<BTreeMap<usize, &'graph SourceCallFact>>,
rust_toolchain_imports: Option<&'graph BTreeMap<usize, Option<ImportReference>>>,
indices_by_name: BTreeMap<&'graph str, Vec<usize>>,
php_call_indices_by_name: BTreeMap<String, Vec<usize>>,
php_import_positions: BTreeMap<String, BTreeMap<usize, Option<usize>>>,
php_namespace_start_lines: BTreeMap<String, BTreeSet<usize>>,
php_imports_have_unknown_scope: bool,
}Expand description
Borrowed per-graph symbol lookup used by every relation in that file.
Fields§
§source_calls: Option<BTreeMap<usize, &'graph SourceCallFact>>Explicit source policy, including an empty set that cannot authorize guesses.
rust_toolchain_imports: Option<&'graph BTreeMap<usize, Option<ImportReference>>>Source-proven Rust import ownership, including explicit non-toolchain rows.
indices_by_name: BTreeMap<&'graph str, Vec<usize>>Parser symbol indices grouped by exact source name.
php_call_indices_by_name: BTreeMap<String, Vec<usize>>PHP call target indices grouped by their case-insensitive source name.
php_import_positions: BTreeMap<String, BTreeMap<usize, Option<usize>>>Import positions retained separately across repeated namespace declarations.
php_namespace_start_lines: BTreeMap<String, BTreeSet<usize>>Named namespace declaration boundaries; tied line-only blocks stay conservative.
php_imports_have_unknown_scope: boolOmitted import declarations cannot prove a namespace-local alias boundary.
Implementations§
Source§impl<'graph> GraphSymbolIndex<'graph>
impl<'graph> GraphSymbolIndex<'graph>
Sourcefn new(
graph: &'graph SymbolGraph,
control: &IndexWorkControl,
) -> Result<Self, CliError>
fn new( graph: &'graph SymbolGraph, control: &IndexWorkControl, ) -> Result<Self, CliError>
Build one bounded name index instead of rescanning all symbols per relation.
Sourcefn with_source_calls(
self,
calls: Option<&'graph [SourceCallFact]>,
control: &IndexWorkControl,
) -> Result<Self, CliError>
fn with_source_calls( self, calls: Option<&'graph [SourceCallFact]>, control: &IndexWorkControl, ) -> Result<Self, CliError>
Index admitted call policies once per graph, with exact ordinal uniqueness.
Sourcefn with_rust_toolchain_imports(
self,
imports: Option<&'graph BTreeMap<usize, Option<ImportReference>>>,
) -> Self
fn with_rust_toolchain_imports( self, imports: Option<&'graph BTreeMap<usize, Option<ImportReference>>>, ) -> Self
Borrow the already validated Rust import policy without copying its index.
Sourcefn get_php_call(&self, name: &str) -> &[usize]
fn get_php_call(&self, name: &str) -> &[usize]
Return PHP parser symbol rows for one case-insensitive call name.
Auto Trait Implementations§
impl<'graph> Freeze for GraphSymbolIndex<'graph>
impl<'graph> RefUnwindSafe for GraphSymbolIndex<'graph>
impl<'graph> Send for GraphSymbolIndex<'graph>
impl<'graph> Sync for GraphSymbolIndex<'graph>
impl<'graph> Unpin for GraphSymbolIndex<'graph>
impl<'graph> UnsafeUnpin for GraphSymbolIndex<'graph>
impl<'graph> UnwindSafe for GraphSymbolIndex<'graph>
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
§impl<'a, T> FromIn<'a, T> for T
impl<'a, T> FromIn<'a, T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more