swc_ecma_usage_analyzer::analyzer::storage

Trait ScopeDataLike

Source
pub trait ScopeDataLike:
    Sized
    + Default
    + Clone {
    // Required methods
    fn add_declared_symbol(&mut self, id: &Ident);
    fn merge(&mut self, other: Self, is_child: bool);
    fn mark_used_arguments(&mut self);
    fn mark_eval_called(&mut self);
    fn mark_with_stmt(&mut self);
}

Required Methods§

Source

fn add_declared_symbol(&mut self, id: &Ident)

Source

fn merge(&mut self, other: Self, is_child: bool)

Source

fn mark_used_arguments(&mut self)

Source

fn mark_eval_called(&mut self)

Source

fn mark_with_stmt(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§