File: JavaScript.php

package info (click to toggle)
less.php 4.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 616 kB
  • sloc: php: 7,595; makefile: 7
file content (26 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (3)
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 $escaped;
	public $expression;
	public $index;

	/**
	 * @param string $string
	 * @param int $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... :( */' );
	}

}