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

Method visit_register_op

mypyc/analysis/dataflow.py:482–487  ·  view source on GitHub ↗
(self, op: RegisterOp)

Source from the content-addressed store, hash-verified

480 return _EMPTY
481
482 def visit_register_op(self, op: RegisterOp) -> GenAndKill[Value]:
483 gen = non_trivial_sources(op)
484 if not op.is_void:
485 return gen, {op}
486 else:
487 return gen, set()
488
489 def visit_assign(self, op: Assign) -> GenAndKill[Value]:
490 return non_trivial_sources(op), {op.dest}

Callers

nothing calls this directly

Calls 2

non_trivial_sourcesFunction · 0.85
setClass · 0.85

Tested by

no test coverage detected