(instr: parser.CodeDef)
| 796 | |
| 797 | |
| 798 | def find_escaping_api_calls(instr: parser.CodeDef) -> dict[SimpleStmt, EscapingCall]: |
| 799 | result: dict[SimpleStmt, EscapingCall] = {} |
| 800 | |
| 801 | def visit(stmt: Stmt) -> None: |
| 802 | if not isinstance(stmt, SimpleStmt): |
| 803 | return |
| 804 | escaping_call_in_simple_stmt(stmt, result) |
| 805 | |
| 806 | instr.block.accept(visit) |
| 807 | check_escaping_calls(instr, result) |
| 808 | return result |
| 809 | |
| 810 | |
| 811 | EXITS = { |
no test coverage detected
searching dependent graphs…