/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/ |
H A D | AttributeEmulator.php | 13 public function isEmulationNeeded(string $code): bool { 17 public function emulate(string $code, array $tokens): array { 34 public function reverseEmulate(string $code, array $tokens): array { 39 public function preprocessCode(string $code, array &$patches): string {
|
H A D | TokenEmulator.php | 12 abstract public function isEmulationNeeded(string $code): bool; 18 abstract public function emulate(string $code, array $tokens): array; 24 abstract public function reverseEmulate(string $code, array $tokens): array; 27 public function preprocessCode(string $code, array &$patches): string {
|
H A D | ReverseEmulator.php | 22 public function isEmulationNeeded(string $code): bool { 26 public function emulate(string $code, array $tokens): array { 30 public function reverseEmulate(string $code, array $tokens): array { 34 public function preprocessCode(string $code, array &$patches): string {
|
H A D | NullsafeTokenEmulator.php | 13 public function isEmulationNeeded(string $code): bool { 17 public function emulate(string $code, array $tokens): array { 56 public function reverseEmulate(string $code, array $tokens): array {
|
H A D | ExplicitOctalEmulator.php | 13 public function isEmulationNeeded(string $code): bool { 17 public function emulate(string $code, array $tokens): array { 41 public function reverseEmulate(string $code, array $tokens): array {
|
H A D | KeywordEmulator.php | 11 public function isEmulationNeeded(string $code): bool { 25 public function emulate(string $code, array $tokens): array { 50 public function reverseEmulate(string $code, array $tokens): array {
|
H A D | AsymmetricVisibilityTokenEmulator.php | 12 public function isEmulationNeeded(string $code): bool { 19 public function emulate(string $code, array $tokens): array { 44 public function reverseEmulate(string $code, array $tokens): array {
|
H A D | ReadonlyFunctionTokenEmulator.php | 27 public function reverseEmulate(string $code, array $tokens): array {
|
/PHP-Parser/grammar/ |
H A D | phpyLang.php | 22 function preprocessGrammar($code) { 31 function resolveNodes($code) { 54 function resolveMacros($code) { 139 function resolveStackAccess($code) { 145 function removeTrailingWhitespace($code) {
|
H A D | rebuildParsers.php | 75 function replaceIfBlocks(string $code, array $defines): string {
|
/PHP-Parser/bin/ |
H A D | php-parse | 41 $code = file_get_contents('php://stdin'); variable 44 $code = $file; variable 52 $code = file_get_contents($file); variable 96 function formatErrorMessage(PhpParser\Error $e, $code, $withColumnInfo) {
|
/PHP-Parser/lib/PhpParser/ |
H A D | Error.php | 104 public function getStartColumn(string $code): int { 117 public function getEndColumn(string $code): int { 132 public function getMessageWithColumnInfo(string $code): string { 148 private function toColumn(string $code, int $pos): int {
|
H A D | Parser.php | 16 public function parse(string $code, ?ErrorHandler $errorHandler = null): ?array;
|
H A D | NodeDumper.php | 19 private ?string $code; variable in PhpParser\\NodeDumper 60 public function dump($node, ?string $code = null): string { 287 private function toColumn(string $code, int $pos): int {
|
H A D | Lexer.php | 24 public function tokenize(string $code, ?ErrorHandler $errorHandler = null): array {
|
/PHP-Parser/test/PhpParser/ |
H A D | LexerTest.php | 16 public function testError($code, $messages): void { 58 public function testLex($code, $expectedTokens): void {
|
H A D | CodeParsingTest.php | 12 public function testParse($name, $code, $expected, $modeLine): void { 29 public function getParseOutput(Parser $parser, $code, array $modes) { 57 private function formatErrorMessage(Error $e, $code) {
|
H A D | PrettyPrinterTest.php | 31 protected function doTestPrettyPrintMethod($method, $name, $code, $expected, $modeLine) { 40 public function testPrettyPrint($name, $code, $expected, $mode): void { 47 public function testPrettyPrintFile($name, $code, $expected, $mode): void { 191 …public function testFormatPreservingPrint($name, $code, $modification, $expected, $modeLine): void… 224 public function testRoundTripPrint($name, $code, $expected, $modeLine): void {
|
H A D | ParserTestAbstract.php | 121 public function testExtraAttributes($code, $expectedAttributes): void { 208 public function tokenize(string $code, ?ErrorHandler $errorHandler = null): array {
|
H A D | CodeTestParser.php | 6 public function parseTest($code, $chunksPerTest) {
|
H A D | ErrorTest.php | 43 public function testColumnInfo($code, $startPos, $endPos, $startColumn, $endColumn): void {
|
/PHP-Parser/test/PhpParser/Lexer/ |
H A D | EmulativeTest.php | 135 public function testLexNewFeatures(string $code, array $expectedTokens): void { 143 public function testLeaveStuffAloneInStrings(string $code): void { 159 public function testErrorAfterEmulation($code): void { 433 … public function testTargetVersion(string $phpVersion, string $code, array $expectedTokens): void {
|
/PHP-Parser/test_old/ |
H A D | run.php | 86 $codeExtractor = function($file, $code) { 94 $codeExtractor = function($file, $code) { 191 $code = $prettyPrinter->printFormatPreserving($stmts, $origStmts, $origTokens); variable 204 $code = "<?php\n" . $prettyPrinter->prettyPrint($stmts); variable
|
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | TokenPolyfill.php | 124 public static function tokenize(string $code, int $flags = 0): array {
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NameResolverTest.php | 569 private function parseAndResolve(string $code): array {
|