mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
24 lines
785 B
Plaintext
24 lines
785 B
Plaintext
import java
|
|
|
|
class InterestingParameter extends Parameter {
|
|
InterestingParameter() { this.getFile().getBaseName() = "primitiveArrays.kt" }
|
|
}
|
|
|
|
from InterestingParameter p, Array a, KotlinType ktType
|
|
where p.getType() = a and ktType = p.getKotlinType()
|
|
select p, a, a.getComponentType().toString(), a.getElementType().toString(), ktType
|
|
|
|
query predicate cloneMethods(
|
|
Method m, string signature, Array declType, Type returnType, KotlinType ktReturnType
|
|
) {
|
|
any(InterestingParameter p).getType() = declType and
|
|
signature = m.getSignature() and
|
|
declType = m.getDeclaringType() and
|
|
returnType = m.getReturnType() and
|
|
ktReturnType = m.getReturnKotlinType()
|
|
}
|
|
|
|
query predicate sourceSignatures(Callable c, string signature) {
|
|
c.getSignature() = signature and c.fromSource()
|
|
}
|