Implement CapturingExpr. In addition to unifying the hierarchy between FuncExpr and ClosureExpr, this introduces a DeclContext for ClosureExprs. <rdar://problem/11076715>

Swift SVN r1240
This commit is contained in:
Eli Friedman
2012-03-20 01:08:04 +00:00
parent bd12853be7
commit d39a7abe36
8 changed files with 70 additions and 19 deletions

View File

@@ -167,6 +167,8 @@ Type FuncDecl::getExtensionType() const {
case DeclContextKind::TranslationUnit:
case DeclContextKind::BuiltinModule:
case DeclContextKind::FuncExpr:
case DeclContextKind::ExplicitClosureExpr:
case DeclContextKind::ImplicitClosureExpr:
case DeclContextKind::OneOfType:
return Type();