PHPCfg\Parser::parseExpr_BooleanNot PHP Method

parseExpr_BooleanNot() protected method

protected parseExpr_BooleanNot ( PhpParser\Node\Expr\BooleanNot $expr )
$expr PhpParser\Node\Expr\BooleanNot
    protected function parseExpr_BooleanNot(Expr\BooleanNot $expr)
    {
        $cond = $this->readVariable($this->parseExprNode($expr->expr));
        $op = new Op\Expr\BooleanNot($cond, $this->mapAttributes($expr));
        foreach ($cond->assertions as $assertion) {
            $op->result->addAssertion($assertion['var'], new Assertion\NegatedAssertion([$assertion['assertion']]));
        }
        return $op;
    }
Parser