IfStmt.conditionVariable

Retrieve the variable declared in this "if" statement, if any.

Kind VarDecl.

In the following example, "x" is the condition variable.

if (int x = foo()) {
  printf("x is %d", x);
}
struct IfStmt
const
conditionVariable
()

Meta