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

Method ast_to_object

crates/vm/src/stdlib/_ast/module.rs:29–36  ·  view source on GitHub ↗
(self, vm: &VirtualMachine, source_file: &SourceFile)

Source from the content-addressed store, hash-verified

27// sum
28impl Node for Mod {
29 fn ast_to_object(self, vm: &VirtualMachine, source_file: &SourceFile) -> PyObjectRef {
30 match self {
31 Self::Module(cons) => cons.ast_to_object(vm, source_file),
32 Self::Interactive(cons) => cons.ast_to_object(vm, source_file),
33 Self::Expression(cons) => cons.ast_to_object(vm, source_file),
34 Self::FunctionType(cons) => cons.ast_to_object(vm, source_file),
35 }
36 }
37
38 fn ast_from_object(
39 vm: &VirtualMachine,

Callers

nothing calls this directly

Calls 7

BoxedSliceClass · 0.85
into_ref_with_typeMethod · 0.80
unwrapMethod · 0.45
to_ownedMethod · 0.45
dictMethod · 0.45
as_objectMethod · 0.45
set_itemMethod · 0.45

Tested by

no test coverage detected