mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +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.