Struct stc_ts_dts_mutations::Mutations
source · [−]pub struct Mutations {
pub for_pats: FxHashMap<NodeId, PatMut>,
pub for_var_decls: FxHashMap<NodeId, VarDeclMut>,
pub for_fns: FxHashMap<NodeId, FunctionMut>,
pub for_classes: FxHashMap<NodeId, ClassMut>,
pub for_class_members: FxHashMap<NodeId, ClassMemberMut>,
pub for_class_props: FxHashMap<NodeId, ClassPropMut>,
pub for_export_defaults: FxHashMap<NodeId, ExportDefaultMut>,
pub for_module_items: FxHashMap<NodeId, ModuleItemMut>,
pub for_exprs: FxHashMap<NodeId, ExprMut>,
pub for_callable: FxHashMap<NodeId, CallableMut>,
}
Expand description
Stores ast mutation information.
This includes every information required to generate correct .d.ts
files.
Note that validations are done by the [crate::analyzer::Analyzer], so
implementors of this trait should not lint on something lint implicit any
.
Fields
for_pats: FxHashMap<NodeId, PatMut>
for_var_decls: FxHashMap<NodeId, VarDeclMut>
for_fns: FxHashMap<NodeId, FunctionMut>
for_classes: FxHashMap<NodeId, ClassMut>
for_class_members: FxHashMap<NodeId, ClassMemberMut>
for_class_props: FxHashMap<NodeId, ClassPropMut>
for_export_defaults: FxHashMap<NodeId, ExportDefaultMut>
for_module_items: FxHashMap<NodeId, ModuleItemMut>
for_exprs: FxHashMap<NodeId, ExprMut>
Used for validation, not dts generation.
for_callable: FxHashMap<NodeId, CallableMut>
Used for validation, not dts generation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mutations
impl Send for Mutations
impl Sync for Mutations
impl Unpin for Mutations
impl UnwindSafe for Mutations
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