[compiler] Migrate CompilerError.invariant to new CompilerDiagnostic infra (#34403)
Mechanical PR to migrate existing invariants to use the new CompilerDiagnostic infra @josephsavona added. Will tackle the others at a later time. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/34403). * #34409 * #34404 * __->__ #34403 DiffTrain build for [474f25842a90f67a7aa8c6329afb5faec52181b6](https://github.com/facebook/react/commit/474f25842a90f67a7aa8c6329afb5faec52181b6)
P
poteto committed
4f18a0b593f3a821dfdcfbc3d49bd5038a5f2fa7
Parent: 6731b55