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

Method log_event

mypyc/transform/log_trace.py:144–158  ·  view source on GitHub ↗
(self, name: str, details: str, line: int)

Source from the content-addressed store, hash-verified

142 return self.add(op)
143
144 def log_event(self, name: str, details: str, line: int) -> None:
145 if line >= 0:
146 line_str = str(line)
147 else:
148 line_str = ""
149 self.builder.primitive_op(
150 log_trace_event,
151 [
152 CString(self.fullname),
153 CString(line_str.encode("ascii")),
154 CString(name.encode("utf-8")),
155 CString(details.encode("utf-8")),
156 ],
157 line,
158 )

Callers 2

log_inc_refMethod · 0.95
logMethod · 0.95

Calls 4

CStringClass · 0.90
strClass · 0.85
encodeMethod · 0.80
primitive_opMethod · 0.45

Tested by

no test coverage detected