(stmt: Stmt)
| 459 | callback(name_tkn) |
| 460 | |
| 461 | def visit(stmt: Stmt) -> None: |
| 462 | if isinstance(stmt, IfStmt): |
| 463 | def error(tkn: lexer.Token) -> None: |
| 464 | raise analysis_error("Cannot define variable in 'if' condition", tkn) |
| 465 | find_stores_in_tokens(stmt.condition, error) |
| 466 | elif isinstance(stmt, SimpleStmt): |
| 467 | find_stores_in_tokens(stmt.contents, res.append) |
| 468 | |
| 469 | node.block.accept(visit) |
| 470 | return res |
nothing calls this directly
no test coverage detected
searching dependent graphs…