Function __global->js_add_variable_reference
Definitions
sources/webstandards_js_lint.php
- Add a reference to a named variable.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$identifier | string | required parameter | N/A | N/A | The variable name |
$first_mention | integer | required parameter | N/A | N/A | Where the first mention of the variable is |
$instantiation | boolean | True | N/A | N/A | Whether this is an instantiation reference |
$reference | boolean | False | N/A | N/A | Whether this is a reference (as opposed to instantiation/setting) |
$function_return | ?string | Null | N/A | N/A | The result-type (null: not a function) |
$is_call | boolean | False | N/A | N/A | Whether this is a function call |