+| `local_iseq` | Nearest enclosing `iseq` that owns a local-variable scope. Found by walking up the parent chain (`parent_iseq`) and skipping block iseqs (`ISEQ_TYPE_BLOCK`) until a non-block iseq (method, top, class, eval, etc.) is reached. For a method iseq, the local iseq is itself; for a block, it's the method (or other non-block scope) the block was defined in. Used to resolve local-variable slots, decide what a bare `return` returns from, and similar scope-level questions. |
0 commit comments