| 1 |
<?php |
| 2 |
/** |
| 3 |
* @private |
| 4 |
* @see less-3.13.1.js#JavaScript.prototype |
| 5 |
*/ |
| 6 |
class Less_Tree_JavaScript extends Less_Tree { |
| 7 |
|
| 8 |
/** @var bool */ |
| 9 |
public $escaped; |
| 10 |
/** @var string */ |
| 11 |
public $expression; |
| 12 |
/** @var int */ |
| 13 |
public $index; |
| 14 |
|
| 15 |
/** |
| 16 |
* @param string $string |
| 17 |
* @param bool $escaped |
| 18 |
* @param int $index |
| 19 |
*/ |
| 20 |
public function __construct( $string, $escaped, $index ) { |
| 21 |
$this->escaped = $escaped; |
| 22 |
$this->expression = $string; |
| 23 |
$this->index = $index; |
| 24 |
} |
| 25 |
|
| 26 |
public function compile( $env ) { |
| 27 |
return new Less_Tree_Anonymous( '/* Sorry, can not do JavaScript evaluation in PHP... :( */' ); |
| 28 |
} |
| 29 |
|
| 30 |
} |