메소드 |
설명 |
|
__construct ( Symfony\Component\Console\Output\OutputInterface $output, Application $application, EventManager $eventManager ) |
Construct our Context with all needed information |
|
addSymbol ( string $name ) : Variable |
Creates a variable from a symbol and adds it to the context. |
|
addVariable ( Variable $variable ) : boolean |
Adds a variable to the context. |
|
clear ( ) |
Resets context to beginning stage. |
|
clearSymbols ( ) |
Clears only all symbols. |
|
debug ( $message, PhpParser\Node $expr = null ) |
Creates a debug message. |
|
getCurrentBranch ( ) : integer |
|
|
getEventManager ( ) : EventManager |
|
|
getExpressionCompiler ( ) : Expression |
|
|
getFilepath ( ) : string |
|
|
getSymbol ( $name ) : Variable | null |
Returns a variable if it exists. |
|
getSymbols ( ) : Variable[] |
Returns an array of all variables. |
|
initGlobals ( ) |
Adds all global variables to the context. |
|
modifyReferencedVariables ( Variable $variable, $type, $value ) |
Updates all references on the given variable. |
|
notice ( string $type, string $message, NodeAbstract $expr, integer $status = Check::CHECK_SAFE ) : boolean |
Creates a notice message. |
|
setCurrentBranch ( integer | string $currentBranch ) |
|
|
setFilepath ( string $filepath ) |
|
|
setScope ( AbstractDefinition $scope = null ) |
|
|
syntaxError ( Error $exception, string $filepath ) : boolean |
Creates a syntax error message. |
|
warning ( string $type, string $message ) : boolean |
Creates a warning message. |
|