MCPcopy Create free account
hub / github.com/python/mypy / visit_branch

Method visit_branch

mypyc/analysis/dataflow.py:470–471  ·  view source on GitHub ↗
(self, op: Branch)

Source from the content-addressed store, hash-verified

468
469class LivenessVisitor(BaseAnalysisVisitor[Value]):
470 def visit_branch(self, op: Branch) -> GenAndKill[Value]:
471 return non_trivial_sources(op), set()
472
473 def visit_return(self, op: Return) -> GenAndKill[Value]:
474 if not isinstance(op.value, (Integer, Float)):

Callers

nothing calls this directly

Calls 2

non_trivial_sourcesFunction · 0.85
setClass · 0.85

Tested by

no test coverage detected