/**
  * Visits a class node.
  *
  * @param \PDepend\Source\AST\ASTClass $class
  * @return void
  */
 public function visitClass(ASTClass $class)
 {
     $this->visits[] = $class->getName();
     parent::visitClass($class);
 }
예제 #2
0
파일: Parser.php 프로젝트: flavius/phpmd
 /**
  * Visits a class node.
  *
  * @param \PDepend\Source\AST\ASTClass $node
  * @return void
  */
 public function visitClass(ASTClass $node)
 {
     if (!$node->isUserDefined()) {
         return;
     }
     $this->apply(new ClassNode($node));
     parent::visitClass($node);
 }