lineOffsets property

  1. @TagNumber.new(3)
PbList<int> get lineOffsets

Monotonically increasing list of code point offsets where newlines \n appear.

The line number of a given position is the index i where for a given id the line_offsets[i] < id_positions[id] < line_offsets[i+1]. The column may be derivd from id_positions[id] - line_offsets[i].

Implementation

@$pb.TagNumber(3)
$pb.PbList<$core.int> get lineOffsets => $_getList(2);