mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
527 B
Plaintext
17 lines
527 B
Plaintext
import java
|
|
|
|
query predicate staticMembers(RefType declType, Member m, string kind) {
|
|
m.fromSource() and
|
|
m.isStatic() and
|
|
m.getDeclaringType() = declType and
|
|
kind = m.getAPrimaryQlClass()
|
|
}
|
|
|
|
from Call call, Callable callable, RefType declType, Expr qualifier, string callType
|
|
where
|
|
call.getCallee() = callable and
|
|
declType = callable.getDeclaringType() and
|
|
qualifier = call.getQualifier() and
|
|
if callable.isStatic() then callType = "static" else callType = "instance"
|
|
select declType, call, qualifier, callType
|