pub enum FunctionRegisterBehavior<'a, A: ASTImplementation> {
ArrowFunction {
expecting: TypeId,
is_async: bool,
},
ExpressionFunction {
expecting: TypeId,
is_async: bool,
is_generator: bool,
location: Option<String>,
},
StatementFunction {
hoisted: VariableId,
is_async: bool,
is_generator: bool,
location: Option<String>,
},
ObjectMethod {
is_async: bool,
is_generator: bool,
},
ClassMethod {
is_async: bool,
is_generator: bool,
super_type: Option<TypeId>,
},
Constructor {
prototype: TypeId,
super_type: Option<TypeId>,
properties: ClassPropertiesToRegister<'a, A>,
},
}Expand description
TODO might be generic if FunctionBehavior becomes generic
Variants§
Implementations§
source§impl<'a, A: ASTImplementation> FunctionRegisterBehavior<'a, A>
impl<'a, A: ASTImplementation> FunctionRegisterBehavior<'a, A>
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for FunctionRegisterBehavior<'a, A>
impl<'a, A> Send for FunctionRegisterBehavior<'a, A>
impl<'a, A> Sync for FunctionRegisterBehavior<'a, A>
impl<'a, A> Unpin for FunctionRegisterBehavior<'a, A>
impl<'a, A> UnwindSafe for FunctionRegisterBehavior<'a, A>
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