Ejemplo n.º 1
0
 /**
  * This method parses a list of interface names as used in the <b>extends</b>
  * part of a interface declaration or in the <b>implements</b> part of a
  * class declaration.
  *
  * @param  \PDepend\Source\AST\AbstractASTClassOrInterface $abstractType
  * @return void
  */
 private function parseInterfaceList(AbstractASTClassOrInterface $abstractType)
 {
     while (true) {
         $this->tokenStack->push();
         $abstractType->addInterfaceReference($this->setNodePositionsAndReturn($this->builder->buildAstClassOrInterfaceReference($this->parseQualifiedName())));
         $this->consumeComments();
         $tokenType = $this->tokenizer->peek();
         if ($tokenType === Tokens::T_CURLY_BRACE_OPEN) {
             break;
         }
         $this->consumeToken(Tokens::T_COMMA);
     }
 }