/** * Parses a post decrement-expression and adds the given child to that node. * * @param \PDepend\Source\AST\ASTNode $child The child expression node. * * @return \PDepend\Source\AST\ASTPostfixExpression * @since 0.10.0 */ private function parsePostDecrementExpression(ASTNode $child) { $token = $this->consumeToken(Tokens::T_DEC); $expr = $this->builder->buildAstPostfixExpression($token->image); $expr->addChild($child); $expr->configureLinesAndColumns($child->getStartLine(), $token->endLine, $child->getStartColumn(), $token->endColumn); return $expr; }