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

Method ast_to_object

crates/vm/src/stdlib/_ast/other.rs:5–7  ·  view source on GitHub ↗
(self, vm: &VirtualMachine, _source_file: &SourceFile)

Source from the content-addressed store, hash-verified

3
4impl Node for ast::ConversionFlag {
5 fn ast_to_object(self, vm: &VirtualMachine, _source_file: &SourceFile) -> PyObjectRef {
6 vm.ctx.new_int(self as i8).into()
7 }
8
9 fn ast_from_object(
10 vm: &VirtualMachine,

Callers

nothing calls this directly

Calls 12

ast_to_objectFunction · 0.85
node_add_locationFunction · 0.85
intern_strMethod · 0.80
into_ref_with_typeMethod · 0.80
new_intMethod · 0.45
to_objectMethod · 0.45
as_strMethod · 0.45
unwrapMethod · 0.45
to_ownedMethod · 0.45
dictMethod · 0.45
as_objectMethod · 0.45
set_itemMethod · 0.45

Tested by

no test coverage detected