node method

SourceRange node(
  1. 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);
}