mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
17 lines
267 B
Plaintext
17 lines
267 B
Plaintext
/**
|
|
* @id cs/examples/mutual-recursion
|
|
* @name Mutual recursion
|
|
* @description Finds pairs of methods that call each other.
|
|
* @tags method
|
|
* recursion
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Method m, Method n
|
|
where m.calls(n)
|
|
and n.calls(m)
|
|
and m != n
|
|
select m, n
|
|
|