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

Method spill

mypyc/irbuild/builder.py:1012–1017  ·  view source on GitHub ↗

Moves a given Value instance into the generator class' environment class.

(self, value: Value)

Source from the content-addressed store, hash-verified

1010 return target
1011
1012 def spill(self, value: Value) -> AssignmentTarget:
1013 """Moves a given Value instance into the generator class' environment class."""
1014 target = self.make_spill_target(value.type)
1015 # Shouldn't be able to fail
1016 self.assign(target, value, NO_TRACEBACK_LINE_NO)
1017 return target
1018
1019 def maybe_spill(self, value: Value) -> Value | AssignmentTarget:
1020 """

Callers 2

maybe_spillMethod · 0.95

Calls 2

make_spill_targetMethod · 0.95
assignMethod · 0.95

Tested by

no test coverage detected