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.
27 lines
477 B
27 lines
477 B
2 years ago
|
<?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);
|
||
|
}
|
||
|
}
|
||
|
|