MCPcopy Index your code
hub / github.com/RustPython/RustPython / none_literal_to_object

Function none_literal_to_object

crates/vm/src/stdlib/_ast/constant.rs:423–434  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    source_file: &SourceFile,
    constant: ast::ExprNoneLiteral,
)

Source from the content-addressed store, hash-verified

421}
422
423pub(super) fn none_literal_to_object(
424 vm: &VirtualMachine,
425 source_file: &SourceFile,
426 constant: ast::ExprNoneLiteral,
427) -> PyObjectRef {
428 let ast::ExprNoneLiteral {
429 node_index: _,
430 range,
431 } = constant;
432 let c = Constant::new_none(range);
433 c.ast_to_object(vm, source_file)
434}
435
436pub(super) fn ellipsis_literal_to_object(
437 vm: &VirtualMachine,

Callers 1

ast_to_objectMethod · 0.85

Calls 1

ast_to_objectMethod · 0.45

Tested by

no test coverage detected