mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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"
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user