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

Predicate DataFlow::thisNode

Gets the node representing the receiver of the given function, or this in the given top-level.

Has no result if container is an arrow function.

Import path

import javascript
ThisNode thisNode(StmtContainer container)