Objects/codeobject/locApis

Source   Edit  

Types

PyCodeAddressRange = object
  ar_start*, ar_end*, ar_line*: int
Source   Edit  

Procs

proc addr2location(code: PyCodeObject; addrq: int;
                   start_line, start_column, end_line, end_column: var int): PyBaseErrorObject {.
    ...raises: [], tags: [RootEffect], forbids: [].}
PyCode_Addr2Location Populate the caller-provided vars with a best-effort source location for bytecode address addrq by inspecting the bytecode instruction and scanning the source file for a matching token. Falls back to a conservative whole-line span. Source   Edit  
proc initAddressRange(self: var PyCodeAddressRange; co: PyCodeObject) {.
    ...raises: [], tags: [], forbids: [].}
_PyCode_InitAddressRange Source   Edit  
proc initAddressRange(self; linetable; firstlineno: int) {....raises: [], tags: [],
    forbids: [].}
_PyLineTable_InitAddressRange Source   Edit