Lines Matching refs:pos
571 $pos = 0;
572 $result = $this->pArray($stmts, $origStmts, $pos, 0, 'File', 'stmts', null);
574 $result .= $this->origTokens->getTokenCode($pos, count($origTokens) - 1, 0);
644 $pos = $startPos;
660 $subNode, $origSubNode, $pos, $indentAdjustment, $class, $subNodeName,
679 $pos = $this->origTokens->findRight($pos, $findToken);
703 $subStartPos = $this->origTokens->findRight($pos, $findToken)
706 $subStartPos = $pos;
733 $result .= $this->origTokens->getTokenCode($pos, $subStartPos, $indentAdjustment);
759 $pos = $subEndPos + 1;
762 $result .= $this->origTokens->getTokenCode($pos, $endPos + 1, $indentAdjustment);
771 * @param int $pos Current token position (updated by reference)
780 array $nodes, array $origNodes, int &$pos, int $indentAdjustment,
839 \assert($itemStartPos >= 0 && $itemEndPos >= 0 && $itemStartPos >= $pos);
850 if ($commentStartPos < $pos) {
857 if ($isStmtList && $this->origTokens->haveTagInRange($pos, $itemStartPos)) {
865 $pos, $commentStartPos, $indentAdjustment);
929 $itemStartPos = $pos;
930 $itemEndPos = $pos - 1;
964 $pos, $itemStartPos, $indentAdjustment);
967 if ($isStmtList && $this->origTokens->haveTagInRange($pos, $itemStartPos)) {
974 $pos = $itemEndPos + 1;
988 $pos = $itemEndPos + 1;
1003 $insertPos = $this->origTokens->findRight($pos, $findToken) + 1;
1004 $result .= $this->origTokens->getTokenCode($pos, $insertPos, $indentAdjustment);
1005 $pos = $insertPos;
1249 $pos = -1;
1256 if ($pos >= 0) {
1257 $text = $this->origTokens->getTokenCode($pos, $endPos, 0);
1265 $pos = $endPos;