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