pub struct PackageGraphExtractor;Expand description
Extractor that walks an AST to produce PackageEdge entries for each
inheritance, role-composition, or dependency relationship found.
Implementations§
Source§impl PackageGraphExtractor
impl PackageGraphExtractor
Sourcepub fn extract(ast: &Node, _file_id: FileId) -> Vec<PackageEdge>
pub fn extract(ast: &Node, _file_id: FileId) -> Vec<PackageEdge>
Walk the entire AST and return one PackageEdge per detected
inheritance or role-composition relationship.
Each edge carries the supplied file_id and an anchor_id derived
from the statement’s byte-offset span.
Auto Trait Implementations§
impl Freeze for PackageGraphExtractor
impl RefUnwindSafe for PackageGraphExtractor
impl Send for PackageGraphExtractor
impl Sync for PackageGraphExtractor
impl Unpin for PackageGraphExtractor
impl UnsafeUnpin for PackageGraphExtractor
impl UnwindSafe for PackageGraphExtractor
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