Property | Type | Description | |
---|---|---|---|
$aliasManager | |||
$application | |||
$currentBranch | string | integer | ||
$output | Symfony\Component\Console\Output\OutputInterface | ||
$scope | For FunctionDefinition it's null, use scopePointer | ||
$scopePointer |
Property | Type | Description | |
---|---|---|---|
$eventManager | |||
$filepath | string | ||
$symbols |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\Console\Output\OutputInterface $output, |
Construct our Context with all needed information | |
addSymbol ( string $name ) : |
Creates a variable from a symbol and adds it to the context. | |
addVariable ( |
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 ( ) : |
||
getExpressionCompiler ( ) : |
||
getFilepath ( ) : string | ||
getSymbol ( $name ) : |
Returns a variable if it exists. | |
getSymbols ( ) : |
Returns an array of all variables. | |
initGlobals ( ) | Adds all global variables to the context. | |
modifyReferencedVariables ( |
Updates all references on the given variable. | |
notice ( string $type, string $message, |
Creates a notice message. | |
setCurrentBranch ( integer | string $currentBranch ) | ||
setFilepath ( string $filepath ) | ||
setScope ( |
||
syntaxError ( |
Creates a syntax error message. | |
warning ( string $type, string $message ) : boolean | Creates a warning message. |
public __construct ( Symfony\Component\Console\Output\OutputInterface $output, |
||
$output | Symfony\Component\Console\Output\OutputInterface | |
$application | ||
$eventManager |
public addVariable ( |
||
$variable | ||
return | boolean |
public debug ( $message, PhpParser\Node $expr = null ) | ||
$expr | PhpParser\Node |
public getEventManager ( ) : |
||
return |
public getExpressionCompiler ( ) : |
||
return |
public getSymbols ( ) : |
||
return |
public modifyReferencedVariables ( |
||
$variable | ||
$type | ||
$value |
public setCurrentBranch ( integer | string $currentBranch ) | ||
$currentBranch | integer | string |
public setScope ( |
||
$scope |
public syntaxError ( |
||
$exception | ||
$filepath | string | |
return | boolean |
protected EventManager,Webiny\Component\EventManager $eventManager | ||
return |
public OutputInterface,Symfony\Component\Console\Output $output | ||
return | Symfony\Component\Console\Output\OutputInterface |
public ParentDefinition,PHPSA\Definition|null $scope | ||
return |
public ScopePointer,phpsa|null $scopePointer | ||
return |