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

Function visit

Tools/cases_generator/analyzer.py:461–467  ·  view source on GitHub ↗
(stmt: Stmt)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

find_stores_in_tokensFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…