[compiler] Collapse CompilerError.{invariant,simpleInvariant} (#35614)
`invariant()` was a pain to use - we always record a single location, but the API required passing a compiler detail. This PR replaces `invariant()` (keeping the name) with `simpleInvariant()`s signature, and updates call sites accordingly. I've noticed that agents consistently get invariant() wrong, which aligns with it being tedious to call when you're writing code by hand. The simplified API should help a bit.
J
Joseph Savona committed
006ae379727ebceb82d03929222a71104d01135f
Parent: a688a3d
Committed by GitHub <noreply@github.com>
on 1/23/2026, 7:07:11 PM