Home | History | Annotate | Download | only in Rewrite

Lines Matching defs:Catch

1817     buf = " /* @catch begin */ else {\n";
1822 buf += " else { /* @catch continue */";
1825 } else { /* no catch list */
1833 ObjCAtCatchStmt *Catch = S->getCatchStmt(I);
1834 VarDecl *catchDecl = Catch->getCatchParamDecl();
1837 buf = "if ("; // we are generating code for the first catch clause
1840 startLoc = Catch->getBeginLoc();
1843 assert((*startBuf == '@') && "bogus @catch location");
1847 if (Catch->hasEllipsis()) {
1849 lastCatchBody = Catch->getCatchBody();
1852 assert(*SM->getCharacterData(Catch->getRParenLoc()) == ')' &&
1853 "bogus @catch paren location");
1854 assert((*bodyBuf == '{') && "bogus @catch body location");
1875 lastCatchBody = Catch->getCatchBody();
1876 SourceLocation rParenLoc = Catch->getRParenLoc();
1880 assert((*rParenBuf == ')') && "bogus @catch paren location");
1881 assert((*bodyBuf == '{') && "bogus @catch body location");
1884 // declares the @catch parameter).
1887 llvm_unreachable("@catch rewrite bug");
1890 // Complete the catch list...
1894 "bogus @catch body location");
1898 buf = "} /* last catch end */\n";
1902 buf += "} } /* @catch end */\n";