KrkLineMap Struct Reference

Map entry of instruction offsets to line numbers. More...

#include <chunk.h>

Data Fields

size_t startOffset
 
size_t line
 

Detailed Description

Map entry of instruction offsets to line numbers.

Each code object contains an array of line mappings, indicating the start offset of each line. Since a line typically maps to multiple opcodes, and spans of many lines may map to no opcodes in the case of blank lines or docstrings, this array is stored as a sequence of <starOffset, line> pairs rather than a simple array of one or the other.

Definition at line 19 of file chunk.h.


The documentation for this struct was generated from the following file: