mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
Fetch syntactic diagnostics from the tsgo API after parsing each file. Only genuine parse errors (diagnostic codes 1000-1999) are included; higher codes like 2880 (import assertion deprecation) are filtered out since they don't indicate actual parse failures. The Java extractor uses parseDiagnostics to report syntax errors and skip full AST extraction for broken files, matching TS5 behavior. TRAP test results: 495/495 passing (100%) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>