• Simplifies a statement like:

    x = y ? a : b;
    

    Into:

    if (y) {
       x = a;
    } else {
       x = b;
    }
    

    $assignmentStmt must be an expression statement (not an inline expression, such as in a varDecl or within another expression). The expression statement must only contain an assignment operator, and the rvalue must be a ternary operator.

    Otherwise the function will immediately return.

    Parameters

    • $assignmentStmt: ExprStmt

      Expression statement containing an assignment where the right hand side is a ternary operator

    Returns void