index static method

DartFileIndex index(
  1. String path,
  2. String content
)

The index of content, the file at path relative to the project root.

Implementation

static DartFileIndex index(String path, String content) =>
    parse(path, content).index;