mirror of
https://github.com/github/codeql.git
synced 2026-01-07 11:40:27 +01:00
In some cases, we were writing diagnostics to TRAP files where they shouldn't be written. Such TRAP files don't define #compilation, so TRAP import gave errors. Now we use DiagnosticTrapWriter to get the type system to check that we are writing diagnostics to the right place.