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

Function validate_body

crates/vm/src/stdlib/_ast/validate.rs:102–105  ·  view source on GitHub ↗
(vm: &VirtualMachine, body: &[ast::Stmt], owner: &'static str)

Source from the content-addressed store, hash-verified

100}
101
102fn validate_body(vm: &VirtualMachine, body: &[ast::Stmt], owner: &'static str) -> PyResult<()> {
103 validate_nonempty_seq(vm, body.len(), "body", owner)?;
104 validate_stmts(vm, body)
105}
106
107fn validate_interpolated_elements<'a>(
108 vm: &VirtualMachine,

Callers 1

validate_stmtFunction · 0.85

Calls 3

validate_nonempty_seqFunction · 0.85
validate_stmtsFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected