Home
last modified time | relevance | path

Searched refs:startPos (Results 1 – 3 of 3) sorted by relevance

/PHP-Parser/lib/PhpParser/Internal/
H A DTokenStream.php31 * @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, '{')
183 * @param int $startPos Starting position (inclusive)
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)
[all …]
/PHP-Parser/test/PhpParser/
H A DErrorTest.php43 public function testColumnInfo($code, $startPos, $endPos, $startColumn, $endColumn): void { argument
45 'startFilePos' => $startPos,
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php618 $startPos = $origNode->getStartTokenPos();
620 \assert($startPos >= 0 && $endPos >= 0);
638 $indentAdjustment = $this->indentLevel - $this->origTokens->getIndentationBefore($startPos);
644 $pos = $startPos;
801 $startPos = $origNodes[0]->getStartTokenPos();
803 \assert($startPos >= 0 && $endPos >= 0);
804 if (!$this->origTokens->haveBraces($startPos, $endPos)) {

Completed in 9 milliseconds