SourceRange.fromNodeAndFile constructor

SourceRange.fromNodeAndFile(
  1. AstNode node,
  2. FoundFile file
)

Implementation

factory SourceRange.fromNodeAndFile(AstNode node, FoundFile file) {
  return SourceRange(
    SourceLocation(file, node.firstPosition),
    node.length,
  );
}