diff options
Diffstat (limited to '')
-rw-r--r-- | lib/less.php/Tree/RulesetCall.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/less.php/Tree/RulesetCall.php b/lib/less.php/Tree/RulesetCall.php new file mode 100644 index 0000000..ed4c723 --- /dev/null +++ b/lib/less.php/Tree/RulesetCall.php @@ -0,0 +1,26 @@ +<?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); + } +} + |