SourceMapSpan.identifier constructor

SourceMapSpan.identifier(
  1. SourceLocation start,
  2. String text
)

Creates a SourceMapSpan for an identifier with value text starting at start.

The end location is determined by adding text to start.

Implementation

SourceMapSpan.identifier(SourceLocation start, String text)
    : this(
          start,
          SourceLocation(start.offset + text.length,
              sourceUrl: start.sourceUrl,
              line: start.line,
              column: start.column + text.length),
          text,
          isIdentifier: true);