node method
SourceRange
node(
- AstNode node
Return a source range that covers the same range as the given node
.
Implementation
SourceRange node(AstNode node) {
return SourceRange(node.offset, node.length);
}