MCPcopy Index your code
hub / github.com/python/cpython / find_escaping_api_calls

Function find_escaping_api_calls

Tools/cases_generator/analyzer.py:798–808  ·  view source on GitHub ↗
(instr: parser.CodeDef)

Source from the content-addressed store, hash-verified

796
797
798def 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
811EXITS = {

Callers 1

compute_propertiesFunction · 0.85

Calls 2

check_escaping_callsFunction · 0.85
acceptMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…