Expand description
Expression type computation operations.
This module implements AST-agnostic type computation for expressions, migrated from the Checker as part of the Solver-First architecture refactor.
These functions operate purely on TypeIds and maintain no AST dependencies.
Functionsยง
- compute_
best_ common_ type - Computes the best common type (BCT) of a set of types.
- compute_
conditional_ expression_ type - Computes the result type of a conditional expression:
condition ? true_branch : false_branch. - compute_
template_ expression_ type - Computes the type of a template literal expression.