You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
477 B
26 lines
477 B
<?php
|
|
|
|
/**
|
|
* RulesetCall
|
|
*
|
|
* @package Less
|
|
* @subpackage tree
|
|
*/
|
|
class Less_Tree_RulesetCall extends Less_Tree{
|
|
|
|
public $variable;
|
|
public $type = "RulesetCall";
|
|
|
|
public function __construct($variable){
|
|
$this->variable = $variable;
|
|
}
|
|
|
|
public function accept($visitor) {}
|
|
|
|
public function compile( $env ){
|
|
$variable = new Less_Tree_Variable($this->variable);
|
|
$detachedRuleset = $variable->compile($env);
|
|
return $detachedRuleset->callEval($env);
|
|
}
|
|
}
|
|
|
|
|