pub struct ExprCtx {
pub unresolved_ctxt: SyntaxContext,
pub is_unresolved_ref_safe: bool,
pub in_strict: bool,
}
Fields§
§unresolved_ctxt: SyntaxContext
This SyntaxContext should be applied only to unresolved references.
In other words, this should be applied to identifier references to
global objects like Object
or Math
, and when those are not shadowed
by a local declaration.
is_unresolved_ref_safe: bool
True for argument of typeof
.
in_strict: bool
True if we are in the strict mode. This will be set to true
for
statements after 'use strict'
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExprCtx
impl RefUnwindSafe for ExprCtx
impl Send for ExprCtx
impl Sync for ExprCtx
impl Unpin for ExprCtx
impl UnwindSafe for ExprCtx
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§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