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

Function ellipsis_literal_to_object

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

Source from the content-addressed store, hash-verified

434}
435
436pub(super) fn ellipsis_literal_to_object(
437 vm: &VirtualMachine,
438 source_file: &SourceFile,
439 constant: ast::ExprEllipsisLiteral,
440) -> PyObjectRef {
441 let ast::ExprEllipsisLiteral {
442 node_index: _,
443 range,
444 } = constant;
445 let c = Constant::new_ellipsis(range);
446 c.ast_to_object(vm, source_file)
447}

Callers 1

ast_to_objectMethod · 0.85

Calls 1

ast_to_objectMethod · 0.45

Tested by

no test coverage detected