entity method

SourceRange entity(
  1. SyntacticEntity node
)

Return a source range that covers the same range as the given node.

Implementation

SourceRange entity(SyntacticEntity node) {
  return SourceRange(node.offset, node.length);
}