LineInfo.fromContent constructor

LineInfo.fromContent(
  1. String content
)

Initialize a newly created set of line information corresponding to the given file content.

Implementation

factory LineInfo.fromContent(String content) =>
    LineInfo(StringUtilities.computeLineStarts(content));