Home
last modified time | relevance | path

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

/PHP-Parser/lib/PhpParser/Internal/
H A DTokenPolyfill.php130 $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];
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinter.php48 * @param Token[] $origTokens Tokens of the original code
50 … public function printFormatPreserving(array $stmts, array $origStmts, array $origTokens): string; argument
H A DPrettyPrinterAbstract.php123 protected ?TokenStream $origTokens; variable in PhpParser\\PrettyPrinterAbstract
200 $this->origTokens = null;
526 * @param Token[] $origTokens Tokens of the original code
539 $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 …]
/PHP-Parser/test_old/
H A Drun.php177 $origTokens = $parser->getTokens(); variable
184 $code = $prettyPrinter->printFormatPreserving($stmts, $origStmts, $origTokens);

Completed in 13 milliseconds