/**
  * 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);
 }
 /**
  * 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);
 }
 /**
  * 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);
 }