Method
__init__
(
self, value: Value, line: int = -1, *, yield_target: BasicBlock | None = None
)
Source from the content-addressed store, hash-verified
| 497 | error_kind = ERR_NEVER |
| 498 | |
| 499 | def __init__( |
| 500 | self, value: Value, line: int = -1, *, yield_target: BasicBlock | None = None |
| 501 | ) -> None: |
| 502 | super().__init__(line) |
| 503 | self.value = value |
| 504 | # If this return is created by a yield, keep track of the next |
| 505 | # basic block. This doesn't affect the code we generate but |
| 506 | # can feed into analysis that need to understand the |
| 507 | # *original* CFG. |
| 508 | self.yield_target = yield_target |
| 509 | |
| 510 | def sources(self) -> list[Value]: |
| 511 | return [self.value] |
Callers
nothing calls this directly
Tested by
no test coverage detected