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

Member predicate TypeAssertion::getUnderlyingReference

Gets the innermost reference that this expression evaluates to, if any.

Examples:

  • a variable or property access: the access itself.
  • a parenthesized expression (e): the underlying reference of e.
  • a TypeScript type assertion e as T: the underlying reference of e.

Also see getUnderlyingValue and stripParens.

Expr getUnderlyingReference()