Storm\Drivers\Fluent\Object\Functional\Implementation\PHPParser\UnaryOperationSimplifier::SimplifyNode PHP Méthode

SimplifyNode() protected méthode

protected SimplifyNode ( PHPParser_Node_Expr $Node )
$Node PHPParser_Node_Expr
    protected function SimplifyNode(\PHPParser_Node_Expr $Node)
    {
        if ($this->IsConstant($Node->{$this->OperandProperty})) {
            $OperandValue = $this->GetValue($Node->{$this->OperandProperty});
            $UnaryOperation = $this->UnaryOperation;
            $UnaryOperation($OperandValue);
            return $this->Constant($OperandValue);
        }
    }