codeql/python/ql/examples/snippets/mutualrecursion.ql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 строки
293 B
Plaintext
Исходник Обычный вид История

2019-07-25 14:30:50 +03:00
/**
2019-07-25 16:43:39 +03:00
* @id py/examples/mutualrecursion
2019-07-25 14:30:50 +03:00
* @name Mutual recursion
* @description Finds pairs of functions that call each other
* @tags method
* recursion
*/
import python
from FunctionObject m, FunctionObject n
where m != n and m.getACallee() = n and n.getACallee() = m
select m, n