コード例 #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
ファイル: ASTArray.php プロジェクト: KingNoosh/Teknik
 /**
  * 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
ファイル: ASTPropertyPostfix.php プロジェクト: kingsj/core
 /**
  * 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
ファイル: ASTConstantDeclarator.php プロジェクト: kingsj/core
 /**
  * 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
ファイル: ASTFormalParameters.php プロジェクト: kingsj/core
 /**
  * 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);
 }