\Less_Output_Mapped

Parser output with source map

Summary

Methods
Properties
Constants
add()
isEmpty()
toString()
__construct()
No public properties found
No constants found
No protected methods found
$strs
$generator
$lineNumber
$column
$contentsMap
N/A
No private methods found
No private properties found
N/A

Properties

$strs

$strs : string

Output holder

Type

string

$lineNumber

$lineNumber : integer

Current line

Type

integer

$column

$column : integer

Current column

Type

integer

$contentsMap

$contentsMap : array

Array of contents map (file and its content)

Type

array

Methods

add()

add(string  $chunk, string  $fileInfo = null, integer  $index, mixed  $mapLines = null) 

Adds a chunk to the stack The $index for less.php may be different from less.js since less.php does not chunkify inputs

Parameters

string $chunk
string $fileInfo
integer $index
mixed $mapLines

isEmpty()

isEmpty() : boolean

Is the output empty?

Returns

boolean

toString()

toString() : string

Converts the output to string

Returns

string

__construct()

__construct(array  $contentsMap, \Less_SourceMap_Generator  $generator) 

Constructor

Parameters

array $contentsMap

Array of filename to contents map

\Less_SourceMap_Generator $generator