pub struct Ctx {Show 20 fields
pub skip_standalone: bool,
pub var_decl_kind_of_pat: Option<VarDeclKind>,
pub in_decl_with_no_side_effect_for_member_access: bool,
pub in_pat_of_var_decl: bool,
pub in_pat_of_var_decl_with_init: bool,
pub in_pat_of_param: bool,
pub in_catch_param: bool,
pub is_exact_reassignment: bool,
pub is_callee: bool,
pub in_call_arg: bool,
pub is_exact_arg: bool,
pub in_await_arg: bool,
pub is_delete_arg: bool,
pub in_left_of_for_loop: bool,
pub executed_multiple_time: bool,
pub in_update_arg: bool,
pub in_assign_lhs: bool,
pub in_cond: bool,
pub inline_prevented: bool,
pub is_op_assign: bool,
}
Fields§
§skip_standalone: bool
§var_decl_kind_of_pat: Option<VarDeclKind>
§in_decl_with_no_side_effect_for_member_access: bool
§in_pat_of_var_decl: bool
§in_pat_of_var_decl_with_init: bool
§in_pat_of_param: bool
§in_catch_param: bool
§is_exact_reassignment: bool
true
for foo.bar
and false
for foo
in foo.bar++
is_callee: bool
§in_call_arg: bool
true
for arguments of swc_ecma_ast::Expr::Call or
swc_ecma_ast::Expr::New
is_exact_arg: bool
false
for array
in `array.length.
in_await_arg: bool
§is_delete_arg: bool
§in_left_of_for_loop: bool
§executed_multiple_time: bool
§in_update_arg: bool
Are we handling argument of an update expression.
in_assign_lhs: bool
§in_cond: bool
§inline_prevented: bool
§is_op_assign: bool
Trait Implementations§
impl Copy for Ctx
Auto Trait Implementations§
impl Freeze for Ctx
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnwindSafe for Ctx
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more