mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 04:47:03 +03:00
4436621564
**Description:** Collect types of vars, maybe other optimization could benefit from this: `merged_var_type: Option<Value<Type>>` When the variable is reassigned, the we merge the types with some simple rules: `None` + `None` = `None` `None` + `Some(ty)` = `Some(ty)` `Some(ty1)` + `Some(ty2)` if `ty1` == `ty2` = `Some(ty1)` Otherwise = Unknown **Related issue:** - Closes https://github.com/swc-project/swc/issues/8718 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |