Files
codeql/python/ql/test/library-tests/dataflow/enclosing-callable/EnclosingCallable.ql
2024-04-23 09:40:44 +02:00

7 lines
209 B
Plaintext

import python
import semmle.python.dataflow.new.DataFlow
from DataFlow::CfgNode node
where exists(node.getLocation().getFile().getRelativePath())
select node.getEnclosingCallable() as enclosingCallable, node