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