Esempio n. 1
0
 /**
  * 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));
 }
Esempio n. 2
0
 /**
  * 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)
 {
     $function = $this->_builder->buildASTFunctionPostfix($node->getImage());
     $function->addChild($node);
     $function->addChild($this->_parseArguments());
     // Test for method or property access
     return $this->_parseOptionalMemberPrimaryPrefix($function);
 }