예제 #1
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitMemberPrimaryPrefix($this, $data);
 }
예제 #2
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitParentReference($this, $data);
 }
예제 #3
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitContinueStatement($this, $data);
 }
예제 #4
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitArray($this, $data);
 }
예제 #5
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitEvalExpression($this, $data);
 }
예제 #6
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitPropertyPostfix($this, $data);
 }
예제 #7
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitClassOrInterfaceReference($this, $data);
 }
예제 #8
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitPrimitiveType($this, $data);
 }
예제 #9
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitCompoundVariable($this, $data);
 }
예제 #10
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitFieldDeclaration($this, $data);
 }
예제 #11
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitConstantDeclarator($this, $data);
 }
예제 #12
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.12
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitFormalParameters($this, $data);
 }
예제 #13
0
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param mixed                       $data    Optional previous calculated data.
  *
  * @return mixed
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     return $visitor->visitTraitAdaptationAlias($this, $data);
 }
예제 #14
0
파일: ASTNode.php 프로젝트: noelg/pdepend
 /**
  * Accept method of the visitor design pattern. This method will be called
  * by a visitor during tree traversal.
  *
  * @param PHP_Depend_Code_ASTVisitorI $visitor The calling visitor instance.
  * @param array(string=>integer)      $data    Optional previous calculated data.
  *
  * @return mixed
  * @since 0.9.8
  */
 public function accept(PHP_Depend_Code_ASTVisitorI $visitor, $data = null)
 {
     $data = $visitor->visitBefore($this, $data);
     foreach ($this->nodes as $node) {
         $data = $node->accept($visitor, $data);
     }
     return $visitor->visitAfter($this, $data);
 }