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§
fn query_ref(&self, _ident: &Ident) -> Option<Box<Expr>>
fn query_lhs(&self, _ident: &Ident) -> Option<Box<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?