pub struct CallGraphInputs {
pub project_root: String,
pub file_paths: Vec<String>,
pub symbols: Vec<SymbolSpan>,
pub import_edges: Vec<(String, String)>,
}Expand description
Everything the call-graph builder reads, sourced from the GraphProvider
facade (PropertyGraph). Replaces the former direct ProjectIndex
dependency (#696): the file inventory, the symbol table (for enclosing-symbol
attribution) and the import/reexport adjacency (for scope-aware callee
resolution). Source content itself is still read fresh from disk per file.
Fields§
§project_root: String§file_paths: Vec<String>§symbols: Vec<SymbolSpan>§import_edges: Vec<(String, String)>(from, to) pairs for import/reexport edges only.
Implementations§
Source§impl CallGraphInputs
impl CallGraphInputs
Sourcepub fn open(project_root: &str) -> Self
pub fn open(project_root: &str) -> Self
Open the project graph (PropertyGraph, falling back to legacy) and
materialize call-graph inputs. Returns empty inputs (rooted at
project_root) when no graph is available yet — matching the old
behaviour of building from an empty index.
Sourcepub fn from_project_index(index: &ProjectIndex) -> Self
pub fn from_project_index(index: &ProjectIndex) -> Self
Bridge for callers that already hold a freshly-scanned
ProjectIndex
(repomap, dashboard coordinator) and want call-graph inputs consistent
with that scan rather than a possibly-lagging PropertyGraph. Removed in
#696 Phase D once those callers move to the facade/extractor wholesale.
Sourcepub fn from_provider(project_root: &str, provider: &GraphProvider) -> Self
pub fn from_provider(project_root: &str, provider: &GraphProvider) -> Self
Materialize the builder inputs from a GraphProvider facade.
Trait Implementations§
Source§impl Clone for CallGraphInputs
impl Clone for CallGraphInputs
Source§fn clone(&self) -> CallGraphInputs
fn clone(&self) -> CallGraphInputs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CallGraphInputs
impl Debug for CallGraphInputs
Source§impl Default for CallGraphInputs
impl Default for CallGraphInputs
Source§fn default() -> CallGraphInputs
fn default() -> CallGraphInputs
Auto Trait Implementations§
impl Freeze for CallGraphInputs
impl RefUnwindSafe for CallGraphInputs
impl Send for CallGraphInputs
impl Sync for CallGraphInputs
impl Unpin for CallGraphInputs
impl UnsafeUnpin for CallGraphInputs
impl UnwindSafe for CallGraphInputs
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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