Files
codeql/python/ql/test/library-tests/stmts/general/AstParent.ql
2020-03-30 11:59:10 +02:00

6 lines
244 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)