mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
17 lines
366 B
Plaintext
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
|