CodeQL library for Python
codeql/python-all 0.12.0 (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)