// ObjcAtTryStmt
Stmt::child_iterator ObjcAtTryStmt::child_begin() { return &SubStmts[0]; }
Stmt::child_iterator ObjcAtTryStmt::child_end() {
- return &SubStmts[0]+END_TRY;
+ return &SubStmts[0]+END_EXPR;
}
// ObjcAtThrowStmt
: Stmt(ObjcAtCatchStmtClass) {
SubExprs[SELECTOR] = catchVarStmtDecl;
SubExprs[BODY] = atCatchStmt;
- SubExprs[END_EXPR] = NULL;
if (!atCatchList)
NextAtCatchStmt = NULL;
else {
/// @try ... @catch ... @finally statement.
class ObjcAtTryStmt : public Stmt {
private:
- enum { TRY, CATCH, FINALLY, END_TRY };
- Stmt* SubStmts[END_TRY];
+ enum { TRY, CATCH, FINALLY, END_EXPR };
+ Stmt* SubStmts[END_EXPR];
SourceLocation AtTryLoc;
SubStmts[TRY] = atTryStmt;
SubStmts[CATCH] = atCatchStmt;
SubStmts[FINALLY] = atFinallyStmt;
- SubStmts[END_TRY] = NULL;
AtTryLoc = atTryLoc;
}