Searched refs:origTokens (Results 1 – 4 of 4) sorted by relevance
130 $origTokens = \token_get_all($code, $flags);132 $numTokens = \count($origTokens);134 $token = $origTokens[$i];157 if ($i + 1 < $numTokens && $origTokens[$i + 1][0] === \T_WHITESPACE) {159 $origTokens[$i + 1][1] = $trailingNewline . $origTokens[$i + 1][1];160 $origTokens[$i + 1][2]--;177 if (!isset(self::$identifierTokens[$origTokens[$j][0]])) {182 if ($origTokens[$j][0] !== \T_NS_SEPARATOR) {187 $newText .= $origTokens[$j][1];
48 * @param Token[] $origTokens Tokens of the original code50 … public function printFormatPreserving(array $stmts, array $origStmts, array $origTokens): string; argument
123 protected ?TokenStream $origTokens; variable in PhpParser\\PrettyPrinterAbstract200 $this->origTokens = null;526 * @param Token[] $origTokens Tokens of the original code539 $this->origTokens = new TokenStream($origTokens);546 $result .= $this->origTokens->getTokenCode($pos, count($origTokens) - 1, 0);577 if (!$this->origTokens) {651 $pos = $this->origTokens->findRight($pos, $findToken);776 if (!$this->origTokens->haveBraces($startPos, $endPos)) {836 $result .= $this->origTokens->getTokenCode(867 $result .= $this->origTokens->getTokenCode([all …]
177 $origTokens = $parser->getTokens(); variable184 $code = $prettyPrinter->printFormatPreserving($stmts, $origStmts, $origTokens);
Completed in 13 milliseconds