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

Module AccessPath

Companion module to the AccessPath class.

Import path

import semmle.python.dataflow.new.internal.AccessPathSyntax

Predicates

parseInt

Parses an integer constant n or interval n1..n2 (inclusive) and gets the value of the constant or any value contained in the interval.

parseIntUnbounded

Parses an integer constant or interval (bounded or unbounded) and gets any of the integers contained within (of which there may be infinitely many).

parseIntWithArity

Parses an integer constant or interval (bounded or unbounded) that may reference the arity of a call, such as N-1 or N-3..N-1.

parseLowerBound

Parses a lower-bounded interval n.. and gets the lower bound.

Classes

Range

A string that should be parsed as an access path.