File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
SwiftCompilerSources/Sources/AST Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ final public class ClassDecl: NominalTypeDecl {
7676
7777final public class ProtocolDecl : NominalTypeDecl {
7878 public var requiresClass : Bool { bridged. ProtocolDecl_requiresClass ( ) }
79+ public var isMarkerProtocol : Bool { bridged. ProtocolDecl_isMarkerProtocol ( ) }
7980}
8081
8182final public class BuiltinTupleDecl : NominalTypeDecl { }
Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ struct BridgedDeclObj {
335335 SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedASTType Class_getSuperclass () const ;
336336 SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj Class_getDestructor () const ;
337337 BRIDGED_INLINE bool ProtocolDecl_requiresClass () const ;
338+ BRIDGED_INLINE bool ProtocolDecl_isMarkerProtocol () const ;
338339 BRIDGED_INLINE bool AbstractFunction_isOverridden () const ;
339340 BRIDGED_INLINE bool Destructor_isIsolated () const ;
340341 BRIDGED_INLINE bool EnumElementDecl_hasAssociatedValues () const ;
Original file line number Diff line number Diff line change @@ -222,6 +222,10 @@ bool BridgedDeclObj::ProtocolDecl_requiresClass() const {
222222 return getAs < swift ::ProtocolDecl > ( )-> requiresClass ();
223223}
224224
225+ bool BridgedDeclObj ::ProtocolDecl_isMarkerProtocol () const {
226+ return getAs < swift ::ProtocolDecl > ( )-> isMarkerProtocol ();
227+ }
228+
225229bool BridgedDeclObj ::AbstractFunction_isOverridden () const {
226230 return getAs < swift ::AbstractFunctionDecl > ( )-> isOverridden ();
227231}
You can’t perform that action at this time.
0 commit comments