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

Function stmt_list_escapes

Tools/cases_generator/analyzer.py:874–882  ·  view source on GitHub ↗
(stmts: list[Stmt])

Source from the content-addressed store, hash-verified

872
873
874def stmt_list_escapes(stmts: list[Stmt]) -> bool:
875 if not stmts:
876 return False
877 if stmt_is_simple_exit(stmts[-1]):
878 return False
879 for stmt in stmts:
880 if stmt_escapes(stmt):
881 return True
882 return False
883
884
885def stmt_escapes(stmt: Stmt) -> bool:

Callers 1

stmt_escapesFunction · 0.85

Calls 2

stmt_is_simple_exitFunction · 0.85
stmt_escapesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…