Java: Improve the diagnostics consistency query

Diagnostics can be easier to read if you see them in the order in which
they were generated. By selecting the compilation and indexes, they get
sorted by the testsuite driver.

d.getCompilationInfo(c, f, i) would be a bit more natural as
d = c.getDiagnostic(f, i), but currently we don't import Diagnostic into
the default ('import java') namespace, and I don't think it's worth
changing that for this.
This commit is contained in:
Ian Lynagh
2023-07-14 17:19:37 +01:00
parent 60af9b062c
commit 8a0286ec34
3 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
---
category: feature
---
* A `Diagnostic.getCompilationInfo()` predicate has been added.