LineInfo constructor

LineInfo(
  1. List<int> lineStarts
)

Initialize a newly created set of line information to represent the data encoded in the given list of lineStarts.

Implementation

LineInfo(this.lineStarts) {
  if (lineStarts.isEmpty) {
    throw ArgumentError("lineStarts must be non-empty");
  }
}