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

Member predicate AssignExpr::getUnderlyingValue

Gets the innermost expression that this expression evaluates to.

Examples:

  • a parenthesised expression (e): the underlying value of e.
  • a sequence expression e1, e2: the underlying value of e2.
  • an assignment expression v = e: the underlying value of e.
  • a TypeScript type assertion e as T: the underlying value of e.
  • any other expression: the expression itself.

Also see getUnderlyingReference and stripParens.

Expr getUnderlyingValue()