Function __global->js_check_expression
Definitions
sources/webstandards_js_lint.php
- Check an expression.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $e | array | No | No | required parameter | N/A | N/A | The complex expression |
| $secondary | boolean | No | No | False | N/A | N/A | Whether the expression is being used as a command (i.e. whether the expression is not used for the result, but rather, the secondary consequences of calculating it) |
| $is_guarded | boolean | No | No | False | N/A | N/A | Whether the expression is being guarded and hence is not a proper reference |
Returns
- The type
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check an expression.
*
* @param array $e The complex expression
* @param boolean $secondary Whether the expression is being used as a command (i.e. whether the expression is not used for the result, but rather, the secondary consequences of calculating it)
* @param boolean $is_guarded Whether the expression is being guarded and hence is not a proper reference
* @return string The type
*/
function js_check_expression(array $e, bool $secondary = false, bool $is_guarded = false) : string
* Check an expression.
*
* @param array $e The complex expression
* @param boolean $secondary Whether the expression is being used as a command (i.e. whether the expression is not used for the result, but rather, the secondary consequences of calculating it)
* @param boolean $is_guarded Whether the expression is being guarded and hence is not a proper reference
* @return string The type
*/
function js_check_expression(array $e, bool $secondary = false, bool $is_guarded = false) : string
