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

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 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