PDepend\Source\Language\PHP\AbstractPHPParser::parsePostIncrementExpression PHP Method

parsePostIncrementExpression() private method

Parses a post increment-expression and adds the given child to that node.
Since: 0.10.0
private parsePostIncrementExpression ( PDepend\Source\AST\ASTNode $child ) : PDepend\Source\AST\ASTPostfixExpression
$child PDepend\Source\AST\ASTNode The child expression node.
return PDepend\Source\AST\ASTPostfixExpression
    private function parsePostIncrementExpression(ASTNode $child)
    {
        $token = $this->consumeToken(Tokens::T_INC);
        $expr = $this->builder->buildAstPostfixExpression($token->image);
        $expr->addChild($child);
        $expr->configureLinesAndColumns($child->getStartLine(), $token->endLine, $child->getStartColumn(), $token->endColumn);
        return $expr;
    }
AbstractPHPParser