swc_ecma_utils

Trait QueryRef

source
pub trait QueryRef {
    // Provided methods
    fn query_ref(&self, _ident: &Ident) -> Option<Box<Expr>> { ... }
    fn query_lhs(&self, _ident: &Ident) -> Option<Box<Expr>> { ... }
    fn query_jsx(&self, _ident: &Ident) -> Option<JSXElementName> { ... }
    fn should_fix_this(&self, _ident: &Ident) -> bool { ... }
}

Provided Methods§

source

fn query_ref(&self, _ident: &Ident) -> Option<Box<Expr>>

source

fn query_lhs(&self, _ident: &Ident) -> Option<Box<Expr>>

source

fn query_jsx(&self, _ident: &Ident) -> Option<JSXElementName>

ref used in JSX

source

fn should_fix_this(&self, _ident: &Ident) -> bool

when foo() is replaced with bar.baz(), should bar.baz be indirect call?

Implementors§