AST: add var ClassDecl.isForeign

This commit is contained in:
Erik Eckstein
2025-11-21 16:33:06 +01:00
parent fa55b2520d
commit a371aecb95
3 changed files with 7 additions and 0 deletions

View File

@@ -346,6 +346,7 @@ struct BridgedDeclObj {
BRIDGED_INLINE bool Struct_hasUnreferenceableStorage() const;
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedASTType Class_getSuperclass() const;
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj Class_getDestructor() const;
BRIDGED_INLINE bool Class_isForeign() const;
BRIDGED_INLINE bool ProtocolDecl_requiresClass() const;
BRIDGED_INLINE bool AbstractFunction_isOverridden() const;
BRIDGED_INLINE bool Destructor_isIsolated() const;

View File

@@ -256,6 +256,10 @@ BridgedDeclObj BridgedDeclObj::Class_getDestructor() const {
return {getAs<swift::ClassDecl>()->getDestructor()};
}
bool BridgedDeclObj::Class_isForeign() const {
return getAs<swift::ClassDecl>()->isForeign();
}
bool BridgedDeclObj::ProtocolDecl_requiresClass() const {
return getAs<swift::ProtocolDecl>()->requiresClass();
}