Files
codeql/csharp/ql/test/library-tests/extension-method-call/ExtensionMethodCalls.ql
2021-06-04 13:32:03 +02:00

15 lines
412 B
Plaintext

import csharp
query predicate methodCallTargets(MethodCall mc, Method m, string sig) {
m = mc.getTarget() and sig = m.toStringWithTypes()
}
query predicate genericMethodCallTargets(
MethodCall mc, ConstructedMethod cm, string sig1, UnboundGenericMethod ugm, string sig2
) {
cm = mc.getTarget() and
sig1 = cm.toStringWithTypes() and
ugm = cm.getUnboundGeneric() and
sig2 = ugm.toStringWithTypes()
}