Sha256: cfe7a45f9a50fb859c673c915d19f7d8c7d5f46a441c8b5c509205c70b446a4f
Contents?: true
Size: 994 Bytes
Versions: 10
Compression:
Stored size: 994 Bytes
Contents
<?php namespace CoffeeScript; class yy_Return extends yy_Base { public $children = array('expression'); function constructor($expr = NULL) { if ($expr && ! ($expr->unwrap()->is_undefined())) { $this->expression = $expr; } return $this; } function compile($options, $level = NULL) { $expr = (isset($this->expression) && $this->expression) ? $this->expression->make_return() : NULL; if ($expr && ! ($expr instanceof yy_Return)) { $ret = $expr->compile($options, $level); } else { $ret = parent::compile($options, $level); } return $ret; } function compile_node($options) { return $this->tab.'return'.(isset($this->expression) && $this->expression ? ' '.$this->expression->compile($options, LEVEL_PAREN) : '').';'; } function is_statement($options = NULL) { return TRUE; } function jumps() { return $this; } function make_return($res = NULL) { return $this; } } ?>
Version data entries
10 entries across 10 versions & 1 rubygems