qrcode.chapril.org/vendor/wikimedia/less.php/lib/Less/Tree/RulesetCall.php

27 lines
534 B
PHP
Raw Normal View History

2021-02-15 21:29:38 +01:00
<?php
/**
2023-07-07 22:33:10 +02:00
* @private
2021-02-15 21:29:38 +01:00
*/
class Less_Tree_RulesetCall extends Less_Tree {
public $variable;
public $type = "RulesetCall";
2023-07-07 22:33:10 +02:00
/**
* @param string $variable
*/
2021-02-15 21:29:38 +01:00
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 );
2023-07-07 22:33:10 +02:00
'@phan-var Less_Tree_DetachedRuleset $detachedRuleset';
2021-02-15 21:29:38 +01:00
return $detachedRuleset->callEval( $env );
}
}