Files
codeql/python/ql/test/library-tests/stmts/general/AstParent.ql
2018-11-19 15:15:54 +00:00

9 lines
239 B
Plaintext

import python
/* The result of this query should always be 0, *regardless* of the database. */
select
count(AstNode c | not exists(c.getParentNode()) and not c instanceof Module)
+
count(AstNode c | strictcount(c.getParentNode()) > 1)