mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-13 09:57:25 +01:00
6f74784e16
Each token is now represented by a Token object.
18 lines
344 B
PHP
18 lines
344 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\Lexer\TokenEmulator;
|
|
|
|
use PhpParser\Token;
|
|
|
|
/** @internal */
|
|
interface TokenEmulatorInterface
|
|
{
|
|
public function isEmulationNeeded(string $code): bool;
|
|
|
|
/**
|
|
* @param Token[] $tokens
|
|
* @return Token[]
|
|
*/
|
|
public function emulate(string $code, array $tokens): array;
|
|
}
|