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

Method ast_from_object

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

Source from the content-addressed store, hash-verified

13 }
14
15 fn ast_from_object(
16 vm: &VirtualMachine,
17 source_file: &SourceFile,
18 object: PyObjectRef,
19 ) -> PyResult<Self> {
20 let args: BoxedSlice<_> = Node::ast_from_object(vm, source_file, object)?;
21 Ok(Self {
22 args: args.0,
23 range: TextRange::default(), // TODO
24 })
25 }
26}
27
28pub(super) struct KeywordArguments {

Callers

nothing calls this directly

Calls 1

ast_from_objectFunction · 0.85

Tested by

no test coverage detected