Files
codeql/csharp/ql/examples/snippets/method_call.ql
2023-11-10 08:46:15 +01:00

17 lines
366 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().hasFullyQualifiedName("Company", "Class")
select call