mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix build
This commit is contained in:
@@ -319,8 +319,7 @@ struct BridgedDeclObj {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
BridgedDeclObj(SwiftObject obj) : obj(obj) {}
|
BridgedDeclObj(SwiftObject obj) : obj(obj) {}
|
||||||
BridgedDeclObj(BridgedDecl decl)
|
BRIDGED_INLINE BridgedDeclObj(BridgedDecl decl);
|
||||||
: obj(static_cast<SwiftObject>(decl.unbridged())) {}
|
|
||||||
BridgedOwnedString getDebugDescription() const;
|
BridgedOwnedString getDebugDescription() const;
|
||||||
BRIDGED_INLINE swift::SourceLoc getLoc() const;
|
BRIDGED_INLINE swift::SourceLoc getLoc() const;
|
||||||
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj getModuleContext() const;
|
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedDeclObj getModuleContext() const;
|
||||||
|
|||||||
@@ -165,6 +165,9 @@ BridgedFileUnit_castToSourceFile(BridgedFileUnit fileUnit) {
|
|||||||
// MARK: BridgedDeclObj
|
// MARK: BridgedDeclObj
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
BridgedDeclObj::BridgedDeclObj(BridgedDecl decl)
|
||||||
|
: obj(static_cast<SwiftObject>(decl.unbridged())) {}
|
||||||
|
|
||||||
swift::SourceLoc BridgedDeclObj::getLoc() const {
|
swift::SourceLoc BridgedDeclObj::getLoc() const {
|
||||||
return unbridged()->getLoc();
|
return unbridged()->getLoc();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user