Searched refs:startPos (Results 1 – 3 of 3) sorted by relevance
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenStream.php | 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, '{') 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 D | ErrorTest.php | 43 public function testColumnInfo($code, $startPos, $endPos, $startColumn, $endColumn): void { argument 45 'startFilePos' => $startPos,
|
/PHP-Parser/lib/PhpParser/ |
H A D | PrettyPrinterAbstract.php | 618 $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 13 milliseconds