mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
20 lines
673 B
Plaintext
20 lines
673 B
Plaintext
import java
|
|
|
|
query predicate methods(
|
|
RefType declType, Method m, string signature, string modifiers, string compilerGenerated
|
|
) {
|
|
m.fromSource() and
|
|
declType = m.getDeclaringType() and
|
|
signature = m.getSignature() and
|
|
modifiers = concat(string s | m.hasModifier(s) | s, ", ") and
|
|
if m.isCompilerGenerated()
|
|
then compilerGenerated = "Compiler generated"
|
|
else compilerGenerated = ""
|
|
}
|
|
|
|
query predicate constructors(RefType declType, Constructor c, string signature) {
|
|
c.fromSource() and declType = c.getDeclaringType() and signature = c.getSignature()
|
|
}
|
|
|
|
query predicate extensions(ExtensionMethod m, Type t) { m.getExtendedType() = t and m.fromSource() }
|