pub trait EncodeStatement {
    // Required methods
    fn alloc_expr_locals(
        &self,
        allocator: &mut ExpressionAllocator<'_>
    ) -> Result<(), GenerationError>;
    fn encode(
        &self,
        code_gen: &mut CodeGenerator<'_>
    ) -> Result<(), GenerationError>;
}

Required Methods§

source

fn alloc_expr_locals( &self, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source

fn encode( &self, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

Implementations on Foreign Types§

source§

impl EncodeStatement for Statement

source§

fn alloc_expr_locals( &self, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeStatement for Call

source§

fn alloc_expr_locals( &self, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeStatement for Assign

source§

fn alloc_expr_locals( &self, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeStatement for If

source§

fn alloc_expr_locals( &self, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeStatement for Let

source§

fn alloc_expr_locals( &self, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

source§

impl EncodeStatement for Return

source§

fn alloc_expr_locals( &self, allocator: &mut ExpressionAllocator<'_> ) -> Result<(), GenerationError>

source§

fn encode( &self, code_gen: &mut CodeGenerator<'_> ) -> Result<(), GenerationError>

Implementors§