Lines Matching refs:startPos
31 * @param int $startPos Start position
34 public function haveParens(int $startPos, int $endPos): bool { argument
35 return $this->haveTokenImmediatelyBefore($startPos, '(')
42 * @param int $startPos Start position
45 public function haveBraces(int $startPos, int $endPos): bool { argument
46 return ($this->haveTokenImmediatelyBefore($startPos, '{')
47 || $this->haveTokenImmediatelyBefore($startPos, T_CURLY_OPEN))
183 * @param int $startPos Starting position (inclusive)
188 public function haveTokenInRange(int $startPos, int $endPos, $tokenType): bool { argument
190 for ($pos = $startPos; $pos < $endPos; $pos++) {
198 public function haveTagInRange(int $startPos, int $endPos): bool { argument
199 return $this->haveTokenInRange($startPos, $endPos, \T_OPEN_TAG)
200 || $this->haveTokenInRange($startPos, $endPos, \T_CLOSE_TAG);