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