summaryrefslogtreecommitdiffstats
path: root/vendor/wikimedia/less.php/lib/Less/Tree/Javascript.php
blob: 218d481782d28314ef86507382353247fb486d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * @private
 */
class Less_Tree_Javascript extends Less_Tree {

	public $type = 'Javascript';
	public $escaped;
	public $expression;
	public $index;

	/**
	 * @param bool $index
	 * @param bool $escaped
	 */
	public function __construct( $string, $index, $escaped ) {
		$this->escaped = $escaped;
		$this->expression = $string;
		$this->index = $index;
	}

	public function compile( $env ) {
		return new Less_Tree_Anonymous( '/* Sorry, can not do JavaScript evaluation in PHP... :( */' );
	}

}