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