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

Predicate API::Impl::distanceFromRoot

Gets the shortest distance from the root to nd in the API graph.

Import path

import semmle.python.ApiGraphs
int distanceFromRoot(TApiNode nd)