Files
codeql/csharp/ql/integration-tests/all-platforms/standalone/Diag.ql

15 lines
439 B
Plaintext

import csharp
import semmle.code.csharp.commons.Diagnostics
query predicate extractorMessages(int c) { c = count(ExtractorMessage msg) }
query predicate compilerDiagnostics(int c) { c = count(Diagnostic diag) }
query predicate compilationInfo(string key, float value) {
exists(Compilation c, string infoValue |
infoValue = c.getInfo(key) and key.matches("Compiler diagnostic count for%")
|
value = infoValue.toFloat()
)
}