CloneableFinalInstantiable
Methods |
public PhpParser\Lexer\TokenEmulator\KeywordEmulator::emulate(string $code, array $tokens) : array |
public getKeywordString() : string |
public getKeywordToken() : int |
public getPhpVersion() : PhpParser\PhpVersion |
public PhpParser\Lexer\TokenEmulator\KeywordEmulator::isEmulationNeeded(string $code) : bool |
public PhpParser\Lexer\TokenEmulator\TokenEmulator::preprocessCode(string $code, array $patches) : string - param array{: int, : string, : string}[] $patches
|
public PhpParser\Lexer\TokenEmulator\KeywordEmulator::reverseEmulate(string $code, array $tokens) : array |
Methods |
protected isKeywordContext(array $tokens, int $pos) : bool |