SIGN IN SIGN UP

[compiler] Check TSAsExpression and TSNonNullExpression reorderability (#33788)

## Summary

The `TSAsExpression` and `TSNonNullExpression` nodes are supported by
`lowerExpression()` but `isReorderableExpression()` does not check if
they can be reordered. This PR updates `isReorderableExpression()` to
handle these two node types by adding cases that fall through to the
existing `TypeCastExpression` case.

We ran `react-compiler-healthcheck` at scale on several of our repos and
found dozens of `` (BuildHIR::node.lowerReorderableExpression)
Expression type `TSAsExpression` cannot be safely reordered`` errors and
a handful for `TSNonNullExpression`.


## How did you test this change?

In this case I added two fixture tests
H
Henry Q. Dineen committed
fe813143e23675963f92d25fa1fb35b39db40272
Parent: 2f0e7e5
Committed by GitHub <noreply@github.com> on 7/15/2025, 6:50:20 PM