Свойство | Type | Description | |
---|---|---|---|
$endScopeTokens | array | This array is just a unique collection of the end tokens from the _scopeOpeners array. The data is duplicated here to save time during parsing of the file. | |
$scopeOpeners | array | This array also contains information about what kind of token the scope opener uses to open and close the scope, if the token strictly requires an opener, if the token can share a scope closer, and who it can be shared with. An example of a token that shares a scope closer is a CASE scope. | |
$skipMinified | boolean | If TRUE, files that appear to be minified will not be processed. |
Méthode | Description | |
---|---|---|
processAdditional ( array &$tokens, string $eolChar ) : void | Performs additional processing after main tokenizing. | |
resolveSimpleToken ( string $token ) : array | Converts simple tokens into a format that conforms to complex tokens produced by token_get_all(). | |
standardiseToken ( string | array $token ) : array |
Takes a token produced from token_get_all() and produces a
more uniform token. |
|
tokenizeString ( string $string, string $eolChar = '\n' ) : array | Creates an array of tokens when given some PHP code. |
public static resolveSimpleToken ( string $token ) : array | ||
$token | string | The simple token to convert. |
Résultat | array | The new token in array format. |
token_get_all()
and produces a
more uniform token. public array $endScopeTokens | ||
Résultat | array |
public array $scopeOpeners | ||
Résultat | array |
public bool $skipMinified | ||
Résultat | boolean |