PHP Class BetterReflection\NodeCompiler\CompileNodeToValue

Show file Open project: roave/better-reflection

Public Methods

Method Description
__invoke ( PhpParser\Node $node, BetterReflection\NodeCompiler\CompilerContext $context ) : mixed Compile an expression from a node into a value.

Private Methods

Method Description
compileArray ( PhpParser\Node\Expr\Array_ $arrayNode, BetterReflection\NodeCompiler\CompilerContext $context ) : array Compile arrays
compileBinaryOperator ( PhpParser\Node\Expr\BinaryOp $node, BetterReflection\NodeCompiler\CompilerContext $context ) : mixed Compile a binary operator node
compileClassConstFetch ( PhpParser\Node\Expr\ClassConstFetch $node, BetterReflection\NodeCompiler\CompilerContext $context ) : string Compile class constants
compileConstFetch ( PhpParser\Node\Expr\ConstFetch $constNode ) : boolean | null Compile constant expressions

Method Details

__invoke() public method

Compile an expression from a node into a value.
public __invoke ( PhpParser\Node $node, BetterReflection\NodeCompiler\CompilerContext $context ) : mixed
$node PhpParser\Node
$context BetterReflection\NodeCompiler\CompilerContext
return mixed