mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: add var ClassDecl.isForeign
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user