Struct stc_ts_dts::TypeUsageCollector
source · [−]pub(crate) struct TypeUsageCollector {
pub(crate) phase: CollectorPhase,
pub(crate) is_module: bool,
pub(crate) in_module_item: bool,
pub(crate) used_types: FxHashSet<Id>,
pub(crate) used_vars: FxHashSet<Id>,
}
Fields
phase: CollectorPhase
is_module: bool
in_module_item: bool
used_types: FxHashSet<Id>
This includes types only used in public interface.
used_vars: FxHashSet<Id>
Trait Implementations
sourceimpl Visit<Option<RBlockStmt>> for TypeUsageCollector
impl Visit<Option<RBlockStmt>> for TypeUsageCollector
fn visit(&mut self, _: &Option<RBlockStmt>)
sourceimpl Visit<RExportDecl> for TypeUsageCollector
impl Visit<RExportDecl> for TypeUsageCollector
fn visit(&mut self, export: &RExportDecl)
sourceimpl Visit<RExportDefaultExpr> for TypeUsageCollector
impl Visit<RExportDefaultExpr> for TypeUsageCollector
fn visit(&mut self, export: &RExportDefaultExpr)
sourceimpl Visit<RTsEntityName> for TypeUsageCollector
impl Visit<RTsEntityName> for TypeUsageCollector
fn visit(&mut self, n: &RTsEntityName)
Auto Trait Implementations
impl RefUnwindSafe for TypeUsageCollector
impl Send for TypeUsageCollector
impl Sync for TypeUsageCollector
impl Unpin for TypeUsageCollector
impl UnwindSafe for TypeUsageCollector
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