Lines Matching defs:stop
290 * Get all tokens from start..stop inclusively
294 public function getTokens(int $start, int $stop, ?Set $types = null) : ?array
296 if ($start < 0 || $stop < 0) {
303 if ($stop >= \count($this->tokens)) {
304 $stop = \count($this->tokens) - 1;
307 for ($i = $start; $i < $stop; $i++) {
458 if ($interval->start < 0 || $interval->stop < 0) {
462 $stop = $interval->stop;
464 if ($stop >= \count($this->tokens)) {
465 $stop = \count($this->tokens) - 1;
469 for ($i = $interval->start; $i <= $stop; $i++) {
487 public function getTextByTokens(?Token $start = null, ?Token $stop = null) : string
490 $stopIndex = $stop === null ? \count($this->tokens) - 1 : $stop->getTokenIndex();