pub struct CodegenFunction {Show 13 fields
pub loc: Option<SourceLocation>,
pub id: Option<Identifier>,
pub name_hint: Option<String>,
pub params: Vec<PatternLike>,
pub body: BlockStatement,
pub generator: bool,
pub is_async: bool,
pub memo_slots_used: u32,
pub memo_blocks: u32,
pub memo_values: u32,
pub pruned_memo_blocks: u32,
pub pruned_memo_values: u32,
pub outlined: Vec<OutlinedFunction>,
}Expand description
Codegen output for a single compiled function. Carries the generated AST fields needed to replace the original function.
Fields§
§loc: Option<SourceLocation>§id: Option<Identifier>§name_hint: Option<String>§params: Vec<PatternLike>§body: BlockStatement§generator: bool§is_async: bool§memo_slots_used: u32§memo_blocks: u32§memo_values: u32§pruned_memo_blocks: u32§pruned_memo_values: u32§outlined: Vec<OutlinedFunction>Trait Implementations§
Source§impl Clone for CodegenFunction
impl Clone for CodegenFunction
Source§fn clone(&self) -> CodegenFunction
fn clone(&self) -> CodegenFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodegenFunction
impl RefUnwindSafe for CodegenFunction
impl Send for CodegenFunction
impl Sync for CodegenFunction
impl Unpin for CodegenFunction
impl UnsafeUnpin for CodegenFunction
impl UnwindSafe for CodegenFunction
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