(
vm: &VirtualMachine,
targets: &[ast::Expr],
ctx: ast::ExprContext,
)
| 82 | } |
| 83 | |
| 84 | fn validate_assignlist( |
| 85 | vm: &VirtualMachine, |
| 86 | targets: &[ast::Expr], |
| 87 | ctx: ast::ExprContext, |
| 88 | ) -> PyResult<()> { |
| 89 | validate_nonempty_seq( |
| 90 | vm, |
| 91 | targets.len(), |
| 92 | "targets", |
| 93 | if ctx == ast::ExprContext::Del { |
| 94 | "Delete" |
| 95 | } else { |
| 96 | "Assign" |
| 97 | }, |
| 98 | )?; |
| 99 | validate_exprs(vm, targets, ctx, false) |
| 100 | } |
| 101 | |
| 102 | fn validate_body(vm: &VirtualMachine, body: &[ast::Stmt], owner: &'static str) -> PyResult<()> { |
| 103 | validate_nonempty_seq(vm, body.len(), "body", owner)?; |
no test coverage detected