mirror of
https://github.com/github/codeql.git
synced 2026-07-10 05:55:32 +02:00
Rename java/ql/test-kotlin2 to java/ql/test-kotlin (codeql/java-kotlin-tests) and delete java/ql/test-kotlin1. The unified suite is the K2 test suite (test-kotlin2) with expected files already updated by the preceding extractor commits to converge K1 and K2 output. The suite runs in both language modes via the test runner: * K1 mode — CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2 unset → -language-version 1.9 * K2 mode — CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2=true → -language-version 2.0 Update CODEOWNERS and labeler.yml to reference test-kotlin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
11 lines
253 B
Plaintext
11 lines
253 B
Plaintext
import java
|
|
|
|
query predicate iterator(MethodCall ma, string mn, string t) {
|
|
exists(Method m |
|
|
ma.getMethod() = m and
|
|
m.getName() = "iterator" and
|
|
mn = m.getSignature() and
|
|
t = ma.getMethod().getDeclaringType().getQualifiedName()
|
|
)
|
|
}
|