ORIENT/vendor/wikimedia/less.php/lib/Less/Tree/Javascript.php

27 lines
506 B
PHP
Raw Normal View History

2021-04-08 08:08:59 +00:00
<?php
/**
2023-02-27 04:39:19 +00:00
* @private
2021-04-08 08:08:59 +00:00
*/
2023-02-27 04:39:19 +00:00
class Less_Tree_Javascript extends Less_Tree {
2021-04-08 08:08:59 +00:00
public $type = 'Javascript';
public $escaped;
public $expression;
public $index;
/**
2023-02-27 04:39:19 +00:00
* @param bool $index
* @param bool $escaped
2021-04-08 08:08:59 +00:00
*/
2023-02-27 04:39:19 +00:00
public function __construct( $string, $index, $escaped ) {
2021-04-08 08:08:59 +00:00
$this->escaped = $escaped;
$this->expression = $string;
$this->index = $index;
}
2023-02-27 04:39:19 +00:00
public function compile( $env ) {
return new Less_Tree_Anonymous( '/* Sorry, can not do JavaScript evaluation in PHP... :( */' );
2021-04-08 08:08:59 +00:00
}
}