implement parsing, AST, and basic Sema support for 'defer'.

SILGen support and diagnosing jumps out of a defer aren't done
yet.



Swift SVN r27759
This commit is contained in:
Chris Lattner
2015-04-26 15:16:37 +00:00
parent 79b976dfc3
commit ee96164996
16 changed files with 118 additions and 0 deletions

View File

@@ -1153,6 +1153,7 @@ public:
ParserResult<Stmt> parseStmtBreak();
ParserResult<Stmt> parseStmtContinue();
ParserResult<Stmt> parseStmtReturn();
ParserResult<Stmt> parseStmtDefer();
ParserStatus parseStmtCondition(StmtCondition &Result, Diag<> ID);
ParserResult<Stmt> parseStmtIf(LabeledStmtInfo LabelInfo);
ParserResult<Stmt> parseStmtIfConfig(BraceItemListKind Kind