CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.14 (changelog, source)
Search

Predicate getInvocationFromPath

Gets an invocation identified by the given (type, path) tuple.

Unlike getNodeFromPath, the path may end with one or more call-site filters.

Import path

import semmle.javascript.frameworks.data.internal.ApiGraphModels
InvokeNode getInvocationFromPath(string type, AccessPath path, int n)