We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86404af commit 46ba4a1Copy full SHA for 46ba4a1
javascript/ql/src/semmle/javascript/ApiGraphs.qll
@@ -223,6 +223,9 @@ module API {
223
) and
224
length in [1 .. Impl::distanceFromRoot(this)]
225
}
226
+
227
+ /** Gets the shortest distance from the root to this node in the API graph. */
228
+ int getDepth() { result = Impl::distanceFromRoot(this) }
229
230
231
/** The root node of an API graph. */
0 commit comments