Lines Matching refs:pos

543         $pos = 0;
544 $result = $this->pArray($stmts, $origStmts, $pos, 0, 'File', 'stmts', null);
546 $result .= $this->origTokens->getTokenCode($pos, count($origTokens) - 1, 0);
616 $pos = $startPos;
632 $subNode, $origSubNode, $pos, $indentAdjustment, $class, $subNodeName,
651 $pos = $this->origTokens->findRight($pos, $findToken);
675 $subStartPos = $this->origTokens->findRight($pos, $findToken)
678 $subStartPos = $pos;
705 $result .= $this->origTokens->getTokenCode($pos, $subStartPos, $indentAdjustment);
731 $pos = $subEndPos + 1;
734 $result .= $this->origTokens->getTokenCode($pos, $endPos + 1, $indentAdjustment);
743 * @param int $pos Current token position (updated by reference)
752 array $nodes, array $origNodes, int &$pos, int $indentAdjustment,
811 \assert($itemStartPos >= 0 && $itemEndPos >= 0 && $itemStartPos >= $pos);
822 if ($commentStartPos < $pos) {
829 if ($isStmtList && $this->origTokens->haveTagInRange($pos, $itemStartPos)) {
837 $pos, $commentStartPos, $indentAdjustment);
901 $itemStartPos = $pos;
902 $itemEndPos = $pos - 1;
936 $pos, $itemStartPos, $indentAdjustment);
939 if ($isStmtList && $this->origTokens->haveTagInRange($pos, $itemStartPos)) {
946 $pos = $itemEndPos + 1;
960 $pos = $itemEndPos + 1;
975 $insertPos = $this->origTokens->findRight($pos, $findToken) + 1;
976 $result .= $this->origTokens->getTokenCode($pos, $insertPos, $indentAdjustment);
977 $pos = $insertPos;
1218 $pos = -1;
1225 if ($pos >= 0) {
1226 $text = $this->origTokens->getTokenCode($pos, $endPos, 0);
1234 $pos = $endPos;