pub struct GatingRewrite {
pub original_index: usize,
pub compiled_fn: CompiledFunctionNode,
pub gating: GatingConfig,
pub referenced_before_declared: bool,
pub is_export_default: bool,
}Expand description
Represents a compiled function that needs gating. In the Rust version, we work with indices into the program body rather than Babel paths.
Fields§
§original_index: usizeIndex in program.body where the original function is
compiled_fn: CompiledFunctionNodeThe compiled function AST node
gating: GatingConfigThe gating config
referenced_before_declared: boolWhether the function is referenced before its declaration at top level
is_export_default: boolWhether the parent statement is an ExportDefaultDeclaration
Auto Trait Implementations§
impl Freeze for GatingRewrite
impl RefUnwindSafe for GatingRewrite
impl Send for GatingRewrite
impl Sync for GatingRewrite
impl Unpin for GatingRewrite
impl UnsafeUnpin for GatingRewrite
impl UnwindSafe for GatingRewrite
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