mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-14 10:27:37 +01:00
18 lines
375 B
PHP
18 lines
375 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Lexer\TokenEmulator;
|
|
|
|
interface TokenEmulatorInterface
|
|
{
|
|
public function getTokenId(): int;
|
|
|
|
public function getParserTokenId(): int;
|
|
|
|
public function isEmulationNeeded(string $code): bool;
|
|
|
|
/**
|
|
* @return array Modified Tokens
|
|
*/
|
|
public function emulate(string $code, array $tokens): array;
|
|
}
|