Module util

Source
Expand description

General utility functions for parsing and error checking.

Functions§

check_assign_target
check_for_stmt_declarators
Check if the var declaration in a for statement has multiple declarators, which is invalid
check_for_stmt_lhs
Check the LHS expression inside of a for…in or for…of statement according to
check_label_use
Check if the use of a statement label is valid and the label is defined.
check_lhs
check_simple_assign_target
Check if assignment to an expression is invalid and report an error if so.
check_var_decl_bound_names
Check the bound names of a variable declaration and issue errors according to 13.3.1.1
get_precedence
Get the precedence of a token
is_update_expr