MCPcopy Index your code
hub / github.com/python/mypy / log

Method log

mypyc/transform/log_trace.py:140–142  ·  view source on GitHub ↗
(self, op: Op, name: str, details: str)

Source from the content-addressed store, hash-verified

138 self.log_event("inc_ref", str(value.type), value.line)
139
140 def log(self, op: Op, name: str, details: str) -> Value:
141 self.log_event(name, details, op.line)
142 return self.add(op)
143
144 def log_event(self, name: str, details: str, line: int) -> None:
145 if line >= 0:

Callers 10

visit_callMethod · 0.95
visit_primitive_opMethod · 0.95
visit_call_cMethod · 0.95
visit_get_attrMethod · 0.95
visit_set_attrMethod · 0.95
visit_boxMethod · 0.95
visit_unboxMethod · 0.95
visit_castMethod · 0.95
visit_inc_refMethod · 0.95
visit_dec_refMethod · 0.95

Calls 2

log_eventMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected