File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -3002,7 +3002,7 @@ struct BridgedASTType {
3002
3002
swift::TypeBase * _Nullable type;
3003
3003
3004
3004
BRIDGED_INLINE swift::Type unbridged () const ;
3005
- BRIDGED_INLINE BridgedOwnedString getDebugDescription () const ;
3005
+ BridgedOwnedString getDebugDescription () const ;
3006
3006
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedCanType getCanonicalType () const ;
3007
3007
BRIDGED_INLINE bool isLegalFormalType () const ;
3008
3008
BRIDGED_INLINE bool hasTypeParameter () const ;
Original file line number Diff line number Diff line change @@ -390,10 +390,6 @@ swift::Type BridgedASTType::unbridged() const {
390
390
return type ;
391
391
}
392
392
393
- BridgedOwnedString BridgedASTType ::getDebugDescription () const {
394
- return BridgedOwnedString (unbridged ().getString ());
395
- }
396
-
397
393
BridgedCanType BridgedASTType ::getCanonicalType () const {
398
394
return unbridged ()-> getCanonicalType ();
399
395
}
Original file line number Diff line number Diff line change @@ -97,6 +97,17 @@ BridgedOwnedString BridgedDeclObj::getDebugDescription() const {
97
97
return BridgedOwnedString (str);
98
98
}
99
99
100
+ // ===----------------------------------------------------------------------===//
101
+ // MARK: BridgedASTType
102
+ // ===----------------------------------------------------------------------===//
103
+
104
+ BridgedOwnedString BridgedASTType::getDebugDescription () const {
105
+ std::string str;
106
+ llvm::raw_string_ostream os (str);
107
+ unbridged ().dump (os);
108
+ return BridgedOwnedString (str);
109
+ }
110
+
100
111
// ===----------------------------------------------------------------------===//
101
112
// MARK: Conformance
102
113
// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments