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

Method ast_from_object

crates/vm/src/stdlib/_ast/node.rs:29–35  ·  view source on GitHub ↗
(
        vm: &VirtualMachine,
        source_file: &SourceFile,
        object: PyObjectRef,
    )

Source from the content-addressed store, hash-verified

27 }
28
29 fn ast_from_object(
30 vm: &VirtualMachine,
31 source_file: &SourceFile,
32 object: PyObjectRef,
33 ) -> PyResult<Self> {
34 vm.extract_elements_with(&object, |obj| Node::ast_from_object(vm, source_file, obj))
35 }
36}
37
38impl<T: Node> Node for Box<T> {

Callers

nothing calls this directly

Calls 5

ast_from_objectFunction · 0.85
SelfFunction · 0.85
extract_elements_withMethod · 0.80
mapMethod · 0.45
is_noneMethod · 0.45

Tested by

no test coverage detected