(lines: List[str], node: ast.stmt)
| 78 | |
| 79 | |
| 80 | def _source_slice(lines: List[str], node: ast.stmt) -> str: |
| 81 | start = node.lineno - 1 # ast.lineno is 1-based |
| 82 | end = getattr(node, "end_lineno", node.lineno) |
| 83 | return "".join(lines[start:end]) |
| 84 | |
| 85 | |
| 86 | # ── Module JSON assembly ───────────────────────────────────────────────────── |
no outgoing calls
no test coverage detected