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

Predicate getNodeFromPath

Gets the API node identified by the first n tokens of path in the given (type, path) tuple.

Import path

import semmle.python.frameworks.data.internal.ApiGraphModels
Node getNodeFromPath(string type, AccessPath path, int n)