fn generate_number(&mut self, ast: &Ast, node: NodeId) -> ExpressionResult {
      self.chunk.emit(Opcode::PushNumber);
      let number = ast.number(node).unwrap();
      self.chunk.emit_number(number);
      ExpressionResult::Present
   }
/// Generates code for a number literal.
Generates code for a number literal.
Generates code for a number literal .
fn generate_number(&mut self, ast: &Ast, node: NodeId) -> ExpressionResult {
      self.chunk.emit(Opcode::PushNumber);
      let number = ast.number(node).unwrap();
      self.chunk.emit_number(number);
      ExpressionResult::Present
   }
fn generate_number ( & mut self , ast : & Ast , node : NodeId ) -> ExpressionResult { self . chunk . emit ( Opcode :: PushNumber ) ; let number = ast . number ( node ) . unwrap ( ) ; self . chunk . emit_number ( number ) ; ExpressionResult :: Present }
Generates code for a number literal.
Generates code for a number literal .
&mut self
ast
&Ast
node
NodeId