Esempio n. 1
0
 public function pExpr_Exit(Expr\Exit_ $node)
 {
     $kind = $node->getAttribute('kind', Expr\Exit_::KIND_DIE);
     return ($kind === Expr\Exit_::KIND_EXIT ? 'exit' : 'die') . (null !== $node->expr ? '(' . $this->p($node->expr) . ')' : '');
 }
Esempio n. 2
0
 /**
  * @param Expr\Exit_ $node
  * @return string
  */
 public function pExpr_Exit(Expr\Exit_ $node)
 {
     $construct = 'exit';
     if ($node->getAttribute('isDie', false)) {
         $construct = 'die';
     }
     return $construct . (null !== $node->expr ? '(' . $this->p($node->expr) . ')' : '');
 }