Skip to main content

Module utils

Module utils 

Source
Expand description

Shared utility functions for the solver module.

This module contains common utilities used across multiple solver components to avoid code duplication.

Traits§

TypeIdExt
Extension trait for TypeId with chainable methods for common operations.

Functions§

canonicalize_numeric_name
Canonicalizes a numeric property name to its JavaScript canonical form.
intersection_or_single
Reduces a vector of types to an intersection, single type, or NEVER.
is_numeric_literal_name
Checks if a string represents a numeric literal name.
is_numeric_property_name
Checks if a property name is numeric by resolving the atom and checking its string representation.
lookup_property
Look up a property by name, using the cached property index if available.
union_or_single
Reduces a vector of types to a union, single type, or NEVER.