pub(crate) enum ScopeKind {
}
Variants
Block
Fn
Method
Fields
is_static: bool
This does not affect this
.
Constructor
This is different from method because of super
.
See: computedPropertyNames30_ES5.ts
ArrowFn
Class
This variant is related to handling of this.foo()
in class methods.
ObjectLit
This variant is related to handling of this.foo()
in method
properties.
Flow
If statement, conditional expression, switch case
TypeParams
Scope to store type parameters.
Call
Type parameters are stored in this scope.
Module
LoopBody
Fields
last: bool
Used to capture type facts created by loop bodies.
ClassStaticBlock
Implementations
sourceimpl ScopeKind
impl ScopeKind
sourcepub fn allows_respanning(self) -> bool
pub fn allows_respanning(self) -> bool
TODO(kdy1): Change
Trait Implementations
impl Copy for ScopeKind
impl Eq for ScopeKind
impl StructuralEq for ScopeKind
impl StructuralPartialEq for ScopeKind
Auto Trait Implementations
impl RefUnwindSafe for ScopeKind
impl Send for ScopeKind
impl Sync for ScopeKind
impl Unpin for ScopeKind
impl UnwindSafe for ScopeKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.