Files
codeql/csharp/ql/examples/snippets/method_call.ql

17 lines
361 B
Plaintext

/**
* @id cs/examples/method-call
* @name Call to method
* @description Finds calls to method 'Company.Class.MethodName'.
* @tags call
* method
*/
import csharp
from MethodCall call, Method method
where
call.getTarget() = method and
method.hasName("MethodName") and
method.getDeclaringType().hasQualifiedName("Company", "Class")
select call