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