Serialize @required as a DeclAttribute

Also introduce an invalid bit on a DeclAttribute for use by semantic analysis.

This fixes AST printing for @required.


Swift SVN r15938
This commit is contained in:
Dmitri Hrybenko
2014-04-04 15:24:47 +00:00
parent 2238a0b0af
commit f198c28d75
14 changed files with 208 additions and 185 deletions

View File

@@ -653,7 +653,6 @@ namespace decls_block {
BCFixed<1>, // has selector-style signature?
BCFixed<1>, // objc?
BCFixed<1>, // transparent?
BCFixed<1>, // required?
BCFixed<1>, // complete object init?
TypeIDField, // type (signature)
TypeIDField, // type (interface)
@@ -978,8 +977,11 @@ namespace decls_block {
BCArray<IdentifierIDField>
>;
#define SIMPLE_DECL_ATTR(X, CLASS, ...)\
using CLASS##DeclAttrLayout = BCRecordLayout<CLASS##_DECL_ATTR>;
#define SIMPLE_DECL_ATTR(X, CLASS, ...) \
using CLASS##DeclAttrLayout = BCRecordLayout< \
CLASS##_DECL_ATTR, \
BCFixed<1> /* implicit flag */ \
>;
#include "swift/AST/Attr.def"
}