9 class Less_Tree_Anonymous extends Less_Tree{
14 public $currentFileInfo;
15 public $type = 'Anonymous';
18 * @param integer $index
19 * @param boolean $mapLines
21 public function __construct($value, $index = null, $currentFileInfo = null, $mapLines = null ){
22 $this->value = $value;
23 $this->index = $index;
24 $this->mapLines = $mapLines;
25 $this->currentFileInfo = $currentFileInfo;
28 public function compile(){
29 return new Less_Tree_Anonymous($this->value, $this->index, $this->currentFileInfo, $this->mapLines);
32 public function compare($x){
37 $left = $this->toCSS();
40 if( $left === $right ){
44 return $left < $right ? -1 : 1;
48 * @see Less_Tree::genCSS
50 public function genCSS( $output ){
51 $output->add( $this->value, $this->currentFileInfo, $this->index, $this->mapLines );
54 public function toCSS(){