File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
SwiftCompilerSources/Sources/AST Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ public class NominalTypeDecl: GenericTypeDecl {
58
58
}
59
59
}
60
60
61
- final public class EnumDecl : NominalTypeDecl { }
61
+ final public class EnumDecl : NominalTypeDecl {
62
+ public var hasRawType : Bool { bridged. Enum_hasRawType ( ) }
63
+ }
62
64
63
65
final public class StructDecl : NominalTypeDecl {
64
66
public var hasUnreferenceableStorage : Bool { bridged. Struct_hasUnreferenceableStorage ( ) }
Original file line number Diff line number Diff line change @@ -402,6 +402,7 @@ struct BridgedDeclObj {
402
402
BRIDGED_INLINE bool GenericType_isGenericAtAnyLevel () const ;
403
403
BRIDGED_INLINE bool NominalType_isGlobalActor () const ;
404
404
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE OptionalBridgedDeclObj NominalType_getValueTypeDestructor () const ;
405
+ BRIDGED_INLINE bool Enum_hasRawType () const ;
405
406
BRIDGED_INLINE bool Struct_hasUnreferenceableStorage () const ;
406
407
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedASTType Class_getSuperclass () const ;
407
408
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj Class_getDestructor () const ;
Original file line number Diff line number Diff line change @@ -221,6 +221,10 @@ OptionalBridgedDeclObj BridgedDeclObj::NominalType_getValueTypeDestructor() cons
221
221
return {getAs < swift ::NominalTypeDecl > ( )-> getValueTypeDestructor ()};
222
222
}
223
223
224
+ bool BridgedDeclObj ::Enum_hasRawType () const {
225
+ return getAs < swift ::EnumDecl > ()-> hasRawType ();
226
+ }
227
+
224
228
bool BridgedDeclObj ::Struct_hasUnreferenceableStorage () const {
225
229
return getAs < swift ::StructDecl > ()-> hasUnreferenceableStorage ();
226
230
}
You can’t perform that action at this time.
0 commit comments