Trait swc_ecma_utils::QueryRef
source · pub trait QueryRef {
// Required methods
fn query_ref(&self, ident: &Ident) -> Option<Expr>;
fn query_lhs(&self, ident: &Ident) -> Option<Expr>;
fn should_fix_this(&self, ident: &Ident) -> bool;
}
Required Methods§
fn query_ref(&self, ident: &Ident) -> Option<Expr>
fn query_lhs(&self, ident: &Ident) -> Option<Expr>
sourcefn should_fix_this(&self, ident: &Ident) -> bool
fn should_fix_this(&self, ident: &Ident) -> bool
when foo()
is replaced with bar.baz()
,
should bar.baz
be indirect call?