Skip to main content

Module evaluate

Module evaluate 

Source

Functionsยง

_evaluate ๐Ÿ”’
args_to_numbers ๐Ÿ”’
deopt ๐Ÿ”’
evaluate
evaluate_cached ๐Ÿ”’
evaluate_func_call_args ๐Ÿ”’
evaluate_obj_key ๐Ÿ”’
evaluate_quasis ๐Ÿ”’
evaluate_result_vec_to_array_expr ๐Ÿ”’
Converts EvaluateResultValue::Vec items into an Expr::Array.
evaluate_theme_ref ๐Ÿ”’
evaluate_unary_numeric ๐Ÿ”’
Helper function to evaluate unary numeric operations (Plus, Minus, Tilde). This reduces code duplication for operations that convert an expression to a number, apply a transformation, and return the result as an expression.
get_binding ๐Ÿ”’
get_callee_name ๐Ÿ”’
get_method_name ๐Ÿ”’
is_id_prop ๐Ÿ”’
is_invalid_method ๐Ÿ”’
is_mutating_array_method ๐Ÿ”’
Checks if a member property represents a mutating array method (push, pop, splice, etc.)
is_mutating_object_method ๐Ÿ”’
Checks if a member property represents a mutating object method (Object.assign, etc.)
is_mutation_expr ๐Ÿ”’
Checks if an expression represents a mutation operation Returns true if any of the following conditions are met:
is_valid_callee ๐Ÿ”’
normalize_js_object_method_args ๐Ÿ”’
Normalizes different argument types into an ObjectLit for JavaScript object methods.
normalize_js_object_method_nested_vector_arg ๐Ÿ”’
Helper function to convert a nested vector of EvaluateResultValues to an array expression
resolve_env_entry_to_result ๐Ÿ”’
Resolves an EnvEntry to an EvaluateResultValue.