(self, b: Block, stmts: Sequence[ast3.stmt])
| 582 | return op_name |
| 583 | |
| 584 | def set_block_lines(self, b: Block, stmts: Sequence[ast3.stmt]) -> None: |
| 585 | first, last = stmts[0], stmts[-1] |
| 586 | b.line = first.lineno |
| 587 | b.column = first.col_offset |
| 588 | b.end_line = last.end_lineno |
| 589 | b.end_column = last.end_col_offset |
| 590 | if not b.body: |
| 591 | return |
| 592 | new_first = b.body[0] |
| 593 | if isinstance(new_first, (Decorator, OverloadedFuncDef)): |
| 594 | # Decorated function lines are different between Python versions. |
| 595 | # copy the normalization we do for them to block first lines. |
| 596 | b.line = new_first.line |
| 597 | b.column = new_first.column |
| 598 | |
| 599 | def as_block(self, stmts: list[ast3.stmt]) -> Block | None: |
| 600 | b = None |
no test coverage detected