Files
codeql/python/ql/examples/snippets/recursion.ql
Taus 2732a652ab Python: Fix example snippets
One might argue that these should be rewritten entirely to use more
modern APIs, but for now I'll be content with just having them compile
properly.
2025-11-26 12:30:30 +00:00

15 lines
271 B
Plaintext

/**
* @id py/examples/recursion
* @name Recursion
* @description Finds functions that call themselves
* @tags method
* recursion
*/
import python
private import LegacyPointsTo
from PythonFunctionValue f
where f.getACall().getScope() = f.getScope()
select f