Searched refs:endPos (Results 1 – 4 of 4) sorted by relevance
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenStream.php | 32 * @param int $endPos End position 34 public function haveParens(int $startPos, int $endPos): bool { argument 36 && $this->haveTokenImmediatelyAfter($endPos, ')'); 43 * @param int $endPos End position 45 public function haveBraces(int $startPos, int $endPos): bool { argument 48 && $this->haveTokenImmediatelyAfter($endPos, '}'); 184 * @param int $endPos Ending position (exclusive) 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/lib/PhpParser/NodeVisitor/ |
H A D | CommentAnnotatingVisitor.php | 73 $endPos = $node->getEndTokenPos(); 74 if ($nextCommentPos > $endPos) { 76 $this->pos = $endPos;
|
/PHP-Parser/test/PhpParser/ |
H A D | ErrorTest.php | 43 public function testColumnInfo($code, $startPos, $endPos, $startColumn, $endColumn): void { argument 46 'endFilePos' => $endPos,
|
/PHP-Parser/lib/PhpParser/ |
H A D | PrettyPrinterAbstract.php | 619 $endPos = $origNode->getEndTokenPos(); 620 \assert($startPos >= 0 && $endPos >= 0); 762 $result .= $this->origTokens->getTokenCode($pos, $endPos + 1, $indentAdjustment); 802 $endPos = $origNodes[0]->getEndTokenPos(); 803 \assert($startPos >= 0 && $endPos >= 0); 804 if (!$this->origTokens->haveBraces($startPos, $endPos)) { 1255 $endPos = $node->getEndTokenPos() + 1; 1257 $text = $this->origTokens->getTokenCode($pos, $endPos, 0); 1265 $pos = $endPos;
|
Completed in 15 milliseconds