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

Function validate_exprs

crates/vm/src/stdlib/_ast/validate.rs:292–302  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    exprs: &[ast::Expr],
    ctx: ast::ExprContext,
    _null_ok: bool,
)

Source from the content-addressed store, hash-verified

290}
291
292fn validate_exprs(
293 vm: &VirtualMachine,
294 exprs: &[ast::Expr],
295 ctx: ast::ExprContext,
296 _null_ok: bool,
297) -> PyResult<()> {
298 for expr in exprs {
299 validate_expr(vm, expr, ctx)?;
300 }
301 Ok(())
302}
303
304fn validate_expr(vm: &VirtualMachine, expr: &ast::Expr, ctx: ast::ExprContext) -> PyResult<()> {
305 let mut check_ctx = true;

Callers 5

validate_comprehensionFunction · 0.85
validate_assignlistFunction · 0.85
validate_exprFunction · 0.85
validate_stmtFunction · 0.85
validate_modFunction · 0.85

Calls 1

validate_exprFunction · 0.85

Tested by

no test coverage detected