code: private function updateCollectionOffsets()
      {
          if (!empty($this->_children)) {
              $this->startOffset = reset($this->_children)->startOffset;
              $this->endOffset = end($this->_children)->endOffset;
          }
          if ($this->parent !== null) {
              $this->parent->updateCollectionOffsets();
          }
      }
docs: Updates token SQL code start and end offsets based on its children.