Files
codeql/java/ql/test/library-tests/compact-source-files/MethodInCompactSource.ql
2025-09-05 10:19:03 +02:00

9 lines
240 B
Plaintext

import java
from Method m, Class c, string res
where
c = m.getDeclaringType() and
exists(c.getCompilationUnit().getRelativePath()) and
if c.isImplicit() then res = "in compact source" else res = "NOT in compact source"
select m, res