CodeQL library for Python
codeql/python-all 0.11.15-dev (changelog, source)
Search

Predicate Impl::isPossessive

Holds if term is a possessive quantifier. As python’s regexes do not support possessive quantifiers, this never holds, but is used by the shared library.

Import path

import semmle.python.regexp.RegexTreeView
predicate isPossessive(RegExpQuantifier term)