Struct stc_ts_file_analyzer::analyzer::AnalyzerData
source · [−]struct AnalyzerData {Show 16 fields
imports_by_id: FxHashMap<Id, ModuleInfo>,
imports: FxHashMap<(ModuleId, ModuleId), Type>,
prepend_stmts: Vec<RStmt>,
append_stmts: Vec<RStmt>,
unmergable_type_decls: FxHashMap<Id, Vec<Span>>,
local_type_decls: FxHashMap<Id, Vec<Span>>,
exported_type_decls: FxHashMap<Id, Vec<Span>>,
bindings: Bindings,
unresolved_imports: AHashSet<Id>,
var_spans: AHashMap<Id, Vec<(VarKind, Span)>>,
fn_impl_spans: FxHashMap<Id, Vec<Span>>,
for_module: PerModuleData,
known_wrong_overloads: FxHashSet<Id>,
cache: TypeCache,
checked_for_async_iterator: bool,
merged_default_exports: AHashSet<Id>,
}
Expand description
This type should be boxed for performance.
Fields
imports_by_id: FxHashMap<Id, ModuleInfo>
imports: FxHashMap<(ModuleId, ModuleId), Type>
Value should Type::Arc of Type::Module
prepend_stmts: Vec<RStmt>
See docs of ModuleItemMut for documentation.
append_stmts: Vec<RStmt>
See docs of ModuleItemMut for documentation.
unmergable_type_decls: FxHashMap<Id, Vec<Span>>
local_type_decls: FxHashMap<Id, Vec<Span>>
Used to check mixed exports.
e.g. A
for type A = {}
exported_type_decls: FxHashMap<Id, Vec<Span>>
Used to check mixed exports.
e.g. A
for export type A = {}
bindings: Bindings
Filled only once, by fill_known_type_names
.
unresolved_imports: AHashSet<Id>
var_spans: AHashMap<Id, Vec<(VarKind, Span)>>
Spans of declared variables.
fn_impl_spans: FxHashMap<Id, Vec<Span>>
Spans of functions with body.
for_module: PerModuleData
One instance of each module (typescript module
keyword).
known_wrong_overloads: FxHashSet<Id>
When multiple overloads are wrong, tsc reports an error only for first one.
We mimic it by storing names of wrong overloads. Only first wrong overload should be added to this set.
cache: TypeCache
checked_for_async_iterator: bool
merged_default_exports: AHashSet<Id>
Used to check mixed default exports.
Trait Implementations
sourceimpl Debug for AnalyzerData
impl Debug for AnalyzerData
sourceimpl Default for AnalyzerData
impl Default for AnalyzerData
sourcefn default() -> AnalyzerData
fn default() -> AnalyzerData
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnalyzerData
impl Send for AnalyzerData
impl Sync for AnalyzerData
impl Unpin for AnalyzerData
impl UnwindSafe for AnalyzerData
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