Home
last modified time | relevance | path

Searched refs:endPos (Results 1 – 4 of 4) sorted by relevance

/PHP-Parser/lib/PhpParser/Internal/
H A DTokenStream.php32 * @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 DCommentAnnotatingVisitor.php73 $endPos = $node->getEndTokenPos();
74 if ($nextCommentPos > $endPos) {
76 $this->pos = $endPos;
/PHP-Parser/test/PhpParser/
H A DErrorTest.php43 public function testColumnInfo($code, $startPos, $endPos, $startColumn, $endColumn): void { argument
46 'endFilePos' => $endPos,
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php619 $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 26 milliseconds