CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.13 (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)