sourceSpan property

SourceSpan sourceSpan

Segment of source text from which the AST was parsed from.

Includes all significant parts of the source text, including child nodes and identifying characters. May not include pre or post whitespace or delimiters.

Implementation

SourceSpan get sourceSpan {
  return _sourceFile.span(beginToken!.offset, endToken!.end);
}