struct GraphSymbolIndex<'graph> {
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§
§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 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
Mutably borrows from an owned value. Read more
§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>
Converts
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>
Converts
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