Merge branch 'MDL-46588-27' of git://github.com/jleyva/moodle into MOODLE_27_STABLE
[moodle.git] / lib / lessphp / Tree / Javascript.php
blob1b03183d9dfec0c790c920e86178c3a3aab133e5
1 <?php
3 /**
4 * Javascript
6 * @package Less
7 * @subpackage tree
8 */
9 class Less_Tree_Javascript extends Less_Tree{
11 public $type = 'Javascript';
12 public $escaped;
13 public $expression;
14 public $index;
16 /**
17 * @param boolean $index
18 * @param boolean $escaped
20 public function __construct($string, $index, $escaped){
21 $this->escaped = $escaped;
22 $this->expression = $string;
23 $this->index = $index;
26 public function compile(){
27 return new Less_Tree_Anonymous('/* Sorry, can not do JavaScript evaluation in PHP... :( */');