function TokenEmulator::emulate
Parameters
Token[] $tokens Original tokens:
Return value
Token[] Modified Tokens
6 methods override TokenEmulator::emulate()
- AsymmetricVisibilityTokenEmulator::emulate in vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ AsymmetricVisibilityTokenEmulator.php - AttributeEmulator::emulate in vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ AttributeEmulator.php - ExplicitOctalEmulator::emulate in vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ ExplicitOctalEmulator.php - KeywordEmulator::emulate in vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ KeywordEmulator.php - NullsafeTokenEmulator::emulate in vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ NullsafeTokenEmulator.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ TokenEmulator.php, line 18
Class
- TokenEmulator
- @internal
Namespace
PhpParser\Lexer\TokenEmulatorCode
public abstract function emulate(string $code, array $tokens) : array;