PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
nikic
/
php-parser
/
lib
/
PhpParser
/
Lexer
/
TokenEmulator
<?php declare(strict_types=1); namespace PhpParser\Lexer\TokenEmulator; use PhpParser\PhpVersion; use PhpParser\Token; /** @internal */ abstract class TokenEmulator { abstract public function getPhpVersion(): PhpVersion; abstract public function isEmulationNeeded(string $code): bool; /** * @param Token[] $tokens Original tokens * @return Token[] Modified Tokens */ abstract public function emulate(string $code, array $tokens): array; /** * @param Token[] $tokens Original tokens * @return Token[] Modified Tokens */ abstract public function reverseEmulate(string $code, array $tokens): array; /** @param array{int, string, string}[] $patches */ public function preprocessCode(string $code, array &$patches): string { return $code; } }
[-] ReadonlyFunctionTokenEmulator.php
[edit]
[-] NullsafeTokenEmulator.php
[edit]
[-] ReverseEmulator.php
[edit]
[+]
..
[-] MatchTokenEmulator.php
[edit]
[-] KeywordEmulator.php
[edit]
[-] PropertyTokenEmulator.php
[edit]
[-] AttributeEmulator.php
[edit]
[-] EnumTokenEmulator.php
[edit]
[-] VoidCastEmulator.php
[edit]
[-] ReadonlyTokenEmulator.php
[edit]
[-] PipeOperatorEmulator.php
[edit]
[-] ExplicitOctalEmulator.php
[edit]
[-] AsymmetricVisibilityTokenEmulator.php
[edit]
[-] TokenEmulator.php
[edit]