currentSourceOffset method

int currentSourceOffset()

Gets the starting offset of the current token's source position Used by the Parser to record the node's sourceRange.start

Implementation

int currentSourceOffset() {
  return peek()?.range.start ?? (peek(-1)?.range.end ?? 0);
}