fn generate_boolean(&mut self, ast: &Ast, node: NodeId) -> ExpressionResult {
      self.chunk.emit(match ast.kind(node) {
         NodeKind::True => Opcode::PushTrue,
         NodeKind::False => Opcode::PushFalse,
         _ => unreachable!(),
      });
      ExpressionResult::Present
   }
/// Generates code for a boolean literal.
Generates code for a boolean literal.
Generates code for a boolean literal .
fn generate_boolean(&mut self, ast: &Ast, node: NodeId) -> ExpressionResult {
      self.chunk.emit(match ast.kind(node) {
         NodeKind::True => Opcode::PushTrue,
         NodeKind::False => Opcode::PushFalse,
         _ => unreachable!(),
      });
      ExpressionResult::Present
   }
fn generate_boolean ( & mut self , ast : & Ast , node : NodeId ) -> ExpressionResult { self . chunk . emit ( match ast . kind ( node ) { NodeKind :: True => Opcode :: PushTrue , NodeKind :: False => Opcode :: PushFalse , _ => unreachable ! ( ) , } ) ; ExpressionResult :: Present }
Generates code for a boolean literal.
Generates code for a boolean literal .
&mut self
ast
&Ast
node
NodeId