Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 14
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 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);
 }