Less_Output_Mapped
extends Less_Output
in package
Parser output with source map
Tags
Table of Contents
- $column : int
- Current column
- $contentsMap : array<string|int, mixed>
- Array of contents map (file and its content)
- $generator : Less_SourceMap_Generator
- The source map generator
- $lineNumber : int
- Current line
- $strs : string
- Output holder
- __construct() : mixed
- Constructor
- add() : mixed
- Adds a chunk to the stack The $index for less.php may be different from less.js since less.php does not chunkify inputs
- isEmpty() : bool
- Is the output empty?
- toString() : string
- Converts the output to string
Properties
$column
Current column
protected
int
$column
= 0
$contentsMap
Array of contents map (file and its content)
protected
array<string|int, mixed>
$contentsMap
= array()
$generator
The source map generator
protected
Less_SourceMap_Generator
$generator
$lineNumber
Current line
protected
int
$lineNumber
= 0
$strs
Output holder
protected
string
$strs
= array()
Methods
__construct()
Constructor
public
__construct(array<string|int, mixed> $contentsMap, Less_SourceMap_Generator $generator) : mixed
Parameters
- $contentsMap : array<string|int, mixed>
-
Array of filename to contents map
- $generator : Less_SourceMap_Generator
Return values
mixed —add()
Adds a chunk to the stack The $index for less.php may be different from less.js since less.php does not chunkify inputs
public
add(string $chunk[, string $fileInfo = null ], int $index[, mixed $mapLines = null ]) : mixed
Parameters
- $chunk : string
- $fileInfo : string = null
- $index : int
- $mapLines : mixed = null
Return values
mixed —isEmpty()
Is the output empty?
public
isEmpty() : bool
Return values
bool —toString()
Converts the output to string
public
toString() : string