示例#1
0
 /**
  * Parses a method postfix node instance.
  *
  * @param PHP_Depend_Code_ASTNode $node Node that represents the image of
  *        the method postfix node.
  *
  * @return PHP_Depend_Code_ASTMethodPostfix
  * @since 1.0.0
  */
 private function parseMethodPostfix(PHP_Depend_Code_ASTNode $node)
 {
     $args = $this->parseArguments();
     $image = $this->extractPostfixImage($node);
     $postfix = $this->builder->buildAstMethodPostfix($image);
     $postfix->addChild($node);
     $postfix->addChild($args);
     $postfix->setEndLine($args->getEndLine());
     $postfix->setEndColumn($args->getEndColumn());
     $postfix->setStartLine($node->getStartLine());
     $postfix->setStartColumn($node->getStartColumn());
     return $this->parseOptionalMemberPrimaryPrefix($postfix);
 }