CloneableInstantiable
Methods |
public tokenize(string $code, ?PhpParser Tokenize the provided source code. The token array is in the same format as provided by the PhpToken::tokenize() method in PHP 8.0. The tokens are instances of PhpParser\Token, to abstract over a polyfill implementation in earlier PHP version. The token array is terminated by a sentinel token with token ID 0. The token array does not discard any tokens (i.e. whitespace and comments are included). The token position attributes are against this token array.
|
Methods |
protected postprocessTokens(array $tokens, PhpParser
|
Methods |
private handleInvalidCharacter(PhpParser |
private isUnterminatedComment(PhpParser |