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: TypeCachechecked_for_async_iterator: boolmerged_default_exports: AHashSet<Id>

Used to check mixed default exports.

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more