mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-03-09 17:56:50 +00:00
Sparks: Assets, 1.5.1
http://getsparks.org/packages/assets/versions/HEAD/show Creates our minified and combined .js and .css files
This commit is contained in:
45
sparks/assets/1.5.1/libraries/coffeescript/yy/Parens.php
Executable file
45
sparks/assets/1.5.1/libraries/coffeescript/yy/Parens.php
Executable file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace CoffeeScript;
|
||||
|
||||
class yy_Parens extends yy_Base
|
||||
{
|
||||
public $children = array('body');
|
||||
|
||||
function constructor($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
function compile_node($options = array())
|
||||
{
|
||||
$expr = $this->body->unwrap();
|
||||
|
||||
if ($expr instanceof yy_Value && $expr->is_atomic())
|
||||
{
|
||||
$expr->front = $this->front;
|
||||
return $expr->compile($options);
|
||||
}
|
||||
|
||||
$code = $expr->compile($options, LEVEL_PAREN);
|
||||
|
||||
$bare = $options['level'] < LEVEL_OP && ($expr instanceof yy_Op || $expr instanceof yy_Call ||
|
||||
($expr instanceof yy_For && $expr->returns));
|
||||
|
||||
return $bare ? $code : "({$code})";
|
||||
}
|
||||
|
||||
function is_complex()
|
||||
{
|
||||
return $this->body->is_complex();
|
||||
}
|
||||
|
||||
function unwrap()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user