(
vm: &VirtualMachine,
source_file: &SourceFile,
constant: ast::ExprBooleanLiteral,
)
| 407 | } |
| 408 | |
| 409 | pub(super) fn boolean_literal_to_object( |
| 410 | vm: &VirtualMachine, |
| 411 | source_file: &SourceFile, |
| 412 | constant: ast::ExprBooleanLiteral, |
| 413 | ) -> PyObjectRef { |
| 414 | let ast::ExprBooleanLiteral { |
| 415 | node_index: _, |
| 416 | range, |
| 417 | value, |
| 418 | } = constant; |
| 419 | let c = Constant::new_bool(value, range); |
| 420 | c.ast_to_object(vm, source_file) |
| 421 | } |
| 422 | |
| 423 | pub(super) fn none_literal_to_object( |
| 424 | vm: &VirtualMachine, |
no test coverage detected