Struct stc_ts_file_analyzer::analyzer::import::ImportFinder
source · [−]struct ImportFinder<'a, C>where
C: Comments,{
storage: &'a Storage<'a>,
cur_ctxt: ModuleId,
to: Vec<(ModuleId, DepInfo)>,
comments: C,
}
Fields
storage: &'a Storage<'a>
cur_ctxt: ModuleId
to: Vec<(ModuleId, DepInfo)>
comments: C
Implementations
sourceimpl<'a, C> ImportFinder<'a, C>where
C: Comments,
impl<'a, C> ImportFinder<'a, C>where
C: Comments,
fn check_comments(&mut self, span: Span)
pub fn find_imports<T>(
comments: C,
module_span: Vec<(ModuleId, Span)>,
storage: &'a Storage<'a>,
node: &T
) -> Vec<(ModuleId, DepInfo)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
where
T: for<'any> VisitWith<ImportFinder<'any, C>>,
A: Allocator,
Trait Implementations
sourceimpl<C> Visit<RCallExpr> for ImportFinder<'_, C>where
C: Comments,
impl<C> Visit<RCallExpr> for ImportFinder<'_, C>where
C: Comments,
sourceimpl<C> Visit<RExportAll> for ImportFinder<'_, C>where
C: Comments,
impl<C> Visit<RExportAll> for ImportFinder<'_, C>where
C: Comments,
fn visit(&mut self, export: &RExportAll)
sourceimpl<C> Visit<RImportDecl> for ImportFinder<'_, C>where
C: Comments,
impl<C> Visit<RImportDecl> for ImportFinder<'_, C>where
C: Comments,
fn visit(&mut self, import: &RImportDecl)
sourceimpl<C> Visit<RNamedExport> for ImportFinder<'_, C>where
C: Comments,
impl<C> Visit<RNamedExport> for ImportFinder<'_, C>where
C: Comments,
fn visit(&mut self, export: &RNamedExport)
sourceimpl<C> Visit<RTsExternalModuleRef> for ImportFinder<'_, C>where
C: Comments,
impl<C> Visit<RTsExternalModuleRef> for ImportFinder<'_, C>where
C: Comments,
fn visit(&mut self, r: &RTsExternalModuleRef)
sourceimpl<C> Visit<RTsImportType> for ImportFinder<'_, C>where
C: Comments,
impl<C> Visit<RTsImportType> for ImportFinder<'_, C>where
C: Comments,
fn visit(&mut self, import: &RTsImportType)
sourceimpl<C> Visit<Vec<&RModuleItem, Global>> for ImportFinder<'_, C>where
C: Comments,
impl<C> Visit<Vec<&RModuleItem, Global>> for ImportFinder<'_, C>where
C: Comments,
fn visit(&mut self, items: &Vec<&RModuleItem>)
Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for ImportFinder<'a, C>
impl<'a, C> Send for ImportFinder<'a, C>where
C: Send,
impl<'a, C> Sync for ImportFinder<'a, C>where
C: Sync,
impl<'a, C> Unpin for ImportFinder<'a, C>where
C: Unpin,
impl<'a, C> !UnwindSafe for ImportFinder<'a, C>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more