Function __global->js_log_warning
Definitions
sources/webstandards_js_lex.php
- Log a warning when lexing/parsing/checking.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $system | string | No | No | required parameter | N/A | N/A | The system causing the error |
| $warning | string | No | No | required parameter | N/A | N/A | The warning |
| $i | integer | No | No | -1 | N/A | N/A | The global position |
| $absolute | boolean | No | No | False | N/A | N/A | Whether the position is a string offset (as opposed to a token position) |
Preview
Code (PHP)
/**
* Log a warning when lexing/parsing/checking.
*
* @param string $system The system causing the error
* @param string $warning The warning
* @param integer $i The global position
* @param boolean $absolute Whether the position is a string offset (as opposed to a token position)
*/
function js_log_warning(string $system, string $warning, int $i = -1, bool $absolute = false)
* Log a warning when lexing/parsing/checking.
*
* @param string $system The system causing the error
* @param string $warning The warning
* @param integer $i The global position
* @param boolean $absolute Whether the position is a string offset (as opposed to a token position)
*/
function js_log_warning(string $system, string $warning, int $i = -1, bool $absolute = false)
