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

Function validate_decorators

crates/vm/src/stdlib/_ast/validate.rs:465–470  ·  view source on GitHub ↗
(vm: &VirtualMachine, decorators: &[ast::Decorator])

Source from the content-addressed store, hash-verified

463}
464
465fn validate_decorators(vm: &VirtualMachine, decorators: &[ast::Decorator]) -> PyResult<()> {
466 for decorator in decorators {
467 validate_expr(vm, &decorator.expression, ast::ExprContext::Load)?;
468 }
469 Ok(())
470}
471
472fn validate_stmt(vm: &VirtualMachine, stmt: &ast::Stmt) -> PyResult<()> {
473 match stmt {

Callers 1

validate_stmtFunction · 0.85

Calls 1

validate_exprFunction · 0.85

Tested by

no test coverage detected