swc_ecma_usage_analyzer::analyzer::storage

Trait VarDataLike

source
pub trait VarDataLike: Sized {
Show 17 methods // Required methods fn mark_declared_as_fn_param(&mut self); fn mark_declared_as_fn_decl(&mut self); fn mark_declared_as_fn_expr(&mut self); fn mark_declared_as_for_init(&mut self); fn mark_has_property_access(&mut self); fn mark_used_as_callee(&mut self); fn mark_used_as_arg(&mut self); fn mark_indexed_with_dynamic_key(&mut self); fn add_accessed_property(&mut self, name: JsWord); fn mark_used_as_ref(&mut self); fn add_infects_to(&mut self, other: Access); fn prevent_inline(&mut self); fn mark_as_exported(&mut self); fn mark_initialized_with_safe_value(&mut self); fn mark_as_pure_fn(&mut self); fn mark_used_above_decl(&mut self); fn mark_used_recursively(&mut self);
}

Required Methods§

source

fn mark_declared_as_fn_param(&mut self)

See declared_as_fn_param of [crate::analyzer::VarUsageInfo].

source

fn mark_declared_as_fn_decl(&mut self)

source

fn mark_declared_as_fn_expr(&mut self)

source

fn mark_declared_as_for_init(&mut self)

source

fn mark_has_property_access(&mut self)

source

fn mark_used_as_callee(&mut self)

source

fn mark_used_as_arg(&mut self)

source

fn mark_indexed_with_dynamic_key(&mut self)

source

fn add_accessed_property(&mut self, name: JsWord)

source

fn mark_used_as_ref(&mut self)

source

fn add_infects_to(&mut self, other: Access)

source

fn prevent_inline(&mut self)

source

fn mark_as_exported(&mut self)

source

fn mark_initialized_with_safe_value(&mut self)

source

fn mark_as_pure_fn(&mut self)

source

fn mark_used_above_decl(&mut self)

source

fn mark_used_recursively(&mut self)

Object Safety§

This trait is not object safe.

Implementors§