(De-)serialization for foreign error conventions.

Currently untestable (due to SILGen's inability to handle throwing
@objc methods), but testing will become trivial once that's in place.

Swift SVN r27290
This commit is contained in:
Doug Gregor
2015-04-14 21:11:28 +00:00
parent f1de46300a
commit f1d4293210
6 changed files with 167 additions and 1 deletions

View File

@@ -660,6 +660,9 @@ public:
GenericParamList *maybeReadGenericParams(DeclContext *DC,
llvm::BitstreamCursor &Cursor,
GenericParamList *outerParams = nullptr);
/// Reads a foreign error conformance from \c DeclTypeCursor, if present.
Optional<ForeignErrorConvention> maybeReadForeignErrorConvention();
};
} // end namespace swift