Lines Matching refs:origTokens
133 protected ?TokenStream $origTokens; variable in PhpParser\\PrettyPrinterAbstract
223 $this->origTokens = null;
554 * @param Token[] $origTokens Tokens of the original code
556 … public function printFormatPreserving(array $stmts, array $origStmts, array $origTokens): string { argument
567 $this->origTokens = new TokenStream($origTokens, $this->tabWidth);
574 $result .= $this->origTokens->getTokenCode($pos, count($origTokens) - 1, 0);
605 if (!$this->origTokens) {
638 $indentAdjustment = $this->indentLevel - $this->origTokens->getIndentationBefore($startPos);
679 $pos = $this->origTokens->findRight($pos, $findToken);
703 $subStartPos = $this->origTokens->findRight($pos, $findToken)
711 $subStartPos = $this->origTokens->skipRightWhitespace($subStartPos);
726 … $subStartPos = $this->origTokens->skipLeft($subStartPos - 1, $removalInfo['left']) + 1;
729 … $subEndPos = $this->origTokens->skipRight($subEndPos + 1, $removalInfo['right']) - 1;
733 $result .= $this->origTokens->getTokenCode($pos, $subStartPos, $indentAdjustment);
739 …$this->setIndentLevel(max($this->origTokens->getIndentationBefore($subStartPos) + $indentAdjustmen…
762 $result .= $this->origTokens->getTokenCode($pos, $endPos + 1, $indentAdjustment);
804 if (!$this->origTokens->haveBraces($startPos, $endPos)) {
842 …$lastElemIndentLevel = max($this->origTokens->getIndentationBefore($itemStartPos) + $indentAdjustm…
857 if ($isStmtList && $this->origTokens->haveTagInRange($pos, $itemStartPos)) {
864 $result .= $this->origTokens->getTokenCode(
895 $result .= $this->origTokens->getTokenCode(
963 $result .= $this->origTokens->getTokenCode(
967 if ($isStmtList && $this->origTokens->haveTagInRange($pos, $itemStartPos)) {
1003 $insertPos = $this->origTokens->findRight($pos, $findToken) + 1;
1004 $result .= $this->origTokens->getTokenCode($pos, $insertPos, $indentAdjustment);
1045 if (!$this->origTokens->haveParens($subStartPos, $subEndPos)) {
1051 if (!$this->origTokens->haveParens($subStartPos, $subEndPos)) {
1057 if (!$this->origTokens->haveParens($subStartPos, $subEndPos)) {
1064 && !$this->origTokens->haveParens($subStartPos, $subEndPos)
1071 && !$this->origTokens->haveParens($subStartPos, $subEndPos)
1078 && !$this->origTokens->haveParens($subStartPos, $subEndPos)
1085 && !$this->origTokens->haveParens($subStartPos, $subEndPos)) {
1092 && !$this->origTokens->haveBraces($subStartPos, $subEndPos)
1100 && !$this->origTokens->haveBraces($subStartPos, $subEndPos)
1257 $text = $this->origTokens->getTokenCode($pos, $endPos, 0);