Свойство | Type | Description | |
---|---|---|---|
$_blacklist | array | Ignoring the following statements which are not valid function or class names. | |
$_counter | integer | Counter for building unique variable name. | |
$_depth | integer | Nested function depth level. | |
$_prefix | string | Prefix to use for custom variable name. | |
$_regex | string | The regex. | |
$_uses | array | Uses for the parsed node's namespace. | |
$_variables | array | Variables for the parsed node. |
Méthode | Description | |
---|---|---|
__construct ( $config = [] ) | The constructor. | |
blacklisted ( string $name = null ) : boolean | Check if a function is part of the blacklisted ones. | |
findFile ( object $loader, string $class, string $file ) : string | The JIT find file patcher. | |
patchable ( string $class ) : boolean | The JIT patchable checker. | |
process ( object $node, string $path = null ) : object | The JIT patcher. |
Méthode | Description | |
---|---|---|
_addClosingParenthesis ( $pos, integer $index, array $parent ) : boolean | Add a closing parenthesis | |
_flushVariables ( array $node ) | Flush stored variables in the passed node. | |
_monkeyPatch ( object $node, array $parent, integer $index ) | Monkey patch a node body. | |
_processTree ( $parent ) | Helper for Monkey::process(). |
protected _flushVariables ( array $node ) | ||
$node | array | The node to store variables in. |
public static blacklisted ( string $name = null ) : boolean | ||
$name | string | A function name. |
Résultat | boolean |
protected static array $_blacklist | ||
Résultat | array |
protected int $_counter | ||
Résultat | integer |
protected string $_prefix | ||
Résultat | string |
protected array $_uses | ||
Résultat | array |
protected array $_variables | ||
Résultat | array |