コード例 #1
0
ファイル: Negative.php プロジェクト: poef/ariadne
 /**
  * Compiles the node
  *
  * @param ILess_Environment $env
  */
 public function compile(ILess_Environment $env, $arguments = null, $important = null)
 {
     if ($env->isMathOn()) {
         $operation = new ILess_Node_Operation('*', array(new ILess_Node_Dimension('-1'), $this->value));
         return $operation->compile($env);
     } else {
         return new ILess_Node_Negative($this->value->compile($env));
     }
 }