Example #1
0
 public static function parse(ParserInterface $parser)
 {
     if ($parser->accept(Token::T_IDENT) && $parser->acceptNext(Token::T_SYMBOL, '(')) {
         $parser->insert(new static($parser->getCurrentToken()->getValue()));
         $parser->advance();
         $parser->skip(Token::T_SYMBOL, '(');
         $parser->traverseUp();
         ArgumentListNode::parse($parser);
         $parser->skip(Token::T_SYMBOL, ')');
         $parser->traverseDown();
         return true;
     }
     return false;
 }