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) -> CallGraphInputs
pub fn open(project_root: &str) -> CallGraphInputs
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) -> CallGraphInputs
pub fn from_project_index(index: &ProjectIndex) -> CallGraphInputs
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,
) -> CallGraphInputs
pub fn from_provider( project_root: &str, provider: &GraphProvider, ) -> CallGraphInputs
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 Forget for CallGraphInputs
impl Freeze for CallGraphInputswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<SymbolSpan>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for CallGraphInputs
impl RefUnwindSafe for CallGraphInputs
impl Send for CallGraphInputswhere
RawVecInner: Send,
impl Sync for CallGraphInputswhere
RawVecInner: Sync,
impl Unpin for CallGraphInputs
impl UnsafeUnpin for CallGraphInputswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<SymbolSpan>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for CallGraphInputswhere
RawVecInner: UnwindSafe,
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,
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