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

Member predicate SeqExpr::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()