/** * This method parses a function postfix expression. An object of type * {@link PHP_Depend_Code_ASTFunctionPostfix} represents any valid php * function call. * * This method will delegate the call to another method that returns a * member primary prefix object when the function postfix expression is * followed by an object operator. * * @param PHP_Depend_Code_ASTNode $node This node represents the function * identifier. An identifier can be a static string, a variable, a * compound variable or any other valid php function identifier. * * @return PHP_Depend_Code_ASTNode * @throws PHP_Depend_Parser_Exception When an error occured during the * parsing process. * @since 0.9.6 */ private function parseFunctionPostfix(PHP_Depend_Code_ASTNode $node) { $image = $this->extractPostfixImage($node); $function = $this->builder->buildAstFunctionPostfix($image); $function->addChild($node); $function->addChild($this->parseArguments()); return $this->parseOptionalMemberPrimaryPrefix($this->parseOptionalIndexExpression($function)); }