Function __global->js_pos_to_line_details
Definitions
sources/webstandards_js_lex.php
- Convert a position to a triplet of details about the line it is on.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$i | integer | required parameter | N/A | N/A | The position |
$absolute | boolean | False | N/A | N/A | Whether the position is a string offset (as opposed to a token position) |
Return
- The quartet of details (line offset, line number, the line, the absolute position)
- Type: array
- Set: N/A
- Range: N/A