PHPCfg\Parser::parseExpr_PostInc PHP Method

parseExpr_PostInc() protected method

protected parseExpr_PostInc ( PhpParser\Node\Expr\PostInc $expr )
$expr PhpParser\Node\Expr\PostInc
    protected function parseExpr_PostInc(Expr\PostInc $expr)
    {
        $var = $this->parseExprNode($expr->var);
        $read = $this->readVariable($var);
        $write = $this->writeVariable($var);
        $this->block->children[] = $op = new Op\Expr\BinaryOp\Plus($read, new Operand\Literal(1), $this->mapAttributes($expr));
        $this->block->children[] = new Op\Expr\Assign($write, $op->result, $this->mapAttributes($expr));
        return $read;
    }
Parser