Returns `true` if the statements contain variable variables (`$$x`) anywhere in the function body.
(statements: &[Statement<'_>])
| 582 | /// Returns `true` if the statements contain variable variables (`$$x`) |
| 583 | /// anywhere in the function body. |
| 584 | fn has_dynamic_variables(statements: &[Statement<'_>]) -> bool { |
| 585 | for stmt in statements { |
| 586 | if stmt_has_dynamic_var(stmt) { |
| 587 | return true; |
| 588 | } |
| 589 | } |
| 590 | false |
| 591 | } |
| 592 | |
| 593 | fn stmt_has_dynamic_var(stmt: &Statement<'_>) -> bool { |
| 594 | match stmt { |
no test coverage detected