addFromOffset method

void addFromOffset(
  1. SourceLocation source,
  2. SourceFile targetFile,
  3. int targetOffset,
  4. String identifier,
)

Adds an entry mapping the targetOffset to source.

Implementation

void addFromOffset(SourceLocation source, SourceFile targetFile,
    int targetOffset, String identifier) {
  ArgumentError.checkNotNull(targetFile, 'targetFile');
  _entries.add(Entry(source, targetFile.location(targetOffset), identifier));
}