Ejemplo n.º 1
0
 function compile($options, $level = NULL)
 {
     if (isset($options['scope'])) {
         return parent::compile($options, $level);
     } else {
         return $this->compile_root($options);
     }
 }
Ejemplo n.º 2
0
 function make_return($res = NULL)
 {
     if ($res) {
         return parent::make_return($res);
     } else {
         $this->returns = !$this->jumps(array('loop' => TRUE));
     }
     return $this;
 }
Ejemplo n.º 3
0
 function compile($options, $level = NULL)
 {
     $expr = isset($this->expression) && $this->expression ? $this->expression->make_return() : NULL;
     if ($expr && !$expr instanceof yy_Return) {
         return $expr->compile($options, $level);
     } else {
         return parent::compile($options, $level);
     }
 }
Ejemplo n.º 4
0
 function constructor($range)
 {
     parent::constructor();
     $this->range = $range;
     return $this;
 }
Ejemplo n.º 5
0
 function traverse_children($cross_scope, $func)
 {
     if ($cross_scope) {
         return parent::traverse_children($cross_scope, $func);
     }
     return NULL;
 }
Ejemplo n.º 6
0
 function to_string($idt = '', $name = __CLASS__)
 {
     return parent::to_string($idt, $name . ' ' . $this->operator);
 }
Ejemplo n.º 7
0
 function make_return($res = NULL)
 {
     return $this->is_statement() ? $this : parent::make_return($res);
 }
Ejemplo n.º 8
0
 function to_string($idt = '', $name = __CLASS__)
 {
     return parent::to_string($idt, $name . ($this->negated ? '!' : ''));
 }
Ejemplo n.º 9
0
 function make_return()
 {
     if (count($this->properties)) {
         return parent::make_return();
     } else {
         return $this->base->make_return();
     }
 }
Ejemplo n.º 10
0
 function make_return()
 {
     return $this->is_statement() ? $this : parent::make_return();
 }