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

Method add

mypyc/irbuild/ll_builder.py:287–291  ·  view source on GitHub ↗

Add an op.

(self, op: Op)

Source from the content-addressed store, hash-verified

285 # Basic operations
286
287 def add(self, op: Op) -> Value:
288 """Add an op."""
289 assert not self.blocks[-1].terminated, "Can't add to finished block"
290 self.blocks[-1].ops.append(op)
291 return op
292
293 def assign(self, lvalue: Register, rvalue: Value | int) -> None:
294 if isinstance(rvalue, int):

Callers 15

assignMethod · 0.95
gotoMethod · 0.95
keep_aliveMethod · 0.95
load_memMethod · 0.95
set_memMethod · 0.95
get_elementMethod · 0.95
load_addressMethod · 0.95
load_globalMethod · 0.95
load_struct_fieldMethod · 0.95
set_struct_fieldMethod · 0.95
flush_keep_alivesMethod · 0.95
boxMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected