You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SwiftDocC/LinkTargets/LinkDestinationSummary.swift
+40-3Lines changed: 40 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,9 @@ public struct LinkDestinationSummary: Codable, Equatable {
135
135
/// The unique, precise identifier for this symbol that you use to reference it across different systems, or `nil` if the summarized element isn't a symbol.
136
136
publicletusr:String?
137
137
138
+
/// The full name of this symbol, derived from its full declaration fragments, or `nil` if the summarized element isn't a symbol.
139
+
publicletfullName:String?
140
+
138
141
/// The rendered fragments of a symbol's declaration.
/// The fragments for this symbol's declaration, or `nil` if the summarized element isn't a symbol.
@@ -193,6 +196,11 @@ public struct LinkDestinationSummary: Codable, Equatable {
193
196
/// If the summarized element has a precise symbol identifier but the variant doesn't, this property will be `Optional.some(nil)`.
194
197
publicletusr:VariantValue<String?>
195
198
199
+
/// The full name of this symbol, derived from its full declaration fragments, or `nil` if the precise symbol identifier is the same as the summarized element.
200
+
///
201
+
/// If the summarized element has a full name but the variant doesn't, this property will be `Optional.some(nil)`.
202
+
publicletfullName:VariantValue<String?>
203
+
196
204
/// The declaration of the variant or `nil` if the declaration is the same as the summarized element.
197
205
///
198
206
/// If the summarized element has a declaration but the variant doesn't, this property will be `Optional.some(nil)`.
@@ -215,6 +223,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
215
223
/// - abstract: The abstract of the variant or `nil` if the abstract is the same as the summarized element.
216
224
/// - taskGroups: The taskGroups of the variant or `nil` if the taskGroups is the same as the summarized element.
217
225
/// - usr: The precise symbol identifier of the variant or `nil` if the precise symbol identifier is the same as the summarized element.
226
+
/// - fullName: The full name of this symbol, derived from its full declaration fragments, or `nil` if the precise symbol identifier is the same as the summarized element.
218
227
/// - declarationFragments: The declaration of the variant or `nil` if the declaration is the same as the summarized element.
219
228
publicinit(
220
229
traits:[RenderNode.Variant.Trait],
@@ -225,6 +234,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
@@ -235,10 +245,11 @@ public struct LinkDestinationSummary: Codable, Equatable {
235
245
self.abstract = abstract
236
246
self.taskGroups = taskGroups
237
247
self.usr = usr
248
+
self.fullName = fullName
238
249
self.declarationFragments = declarationFragments
239
250
}
240
251
241
-
@available(*, deprecated, renamed:"init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:declarationFragments:)", message:"Use `init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:declarationFragments:)` instead. `TopicRenderReference` doesn't support variant specific topic images. This property will be removed after 6.3 is released")
252
+
@available(*, deprecated, renamed:"init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:fullName:declarationFragments:)", message:"Use `init(traits:kind:language:relativePresentationURL:title:abstract:taskGroups:usr:fullName:declarationFragments:)` instead. `TopicRenderReference` doesn't support variant specific topic images. This property will be removed after 6.3 is released")
242
253
publicinit(
243
254
traits:[RenderNode.Variant.Trait],
244
255
kind:VariantValue<DocumentationNode.Kind>=nil,
@@ -248,6 +259,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
@@ -260,6 +272,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
260
272
abstract: abstract,
261
273
taskGroups: taskGroups,
262
274
usr: usr,
275
+
fullName: fullName,
263
276
declarationFragments: declarationFragments
264
277
)
265
278
}
@@ -281,6 +294,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
281
294
/// - platforms: Information about the platforms for which the summarized element is available.
282
295
/// - taskGroups: The reference URLs of the summarized element's children, grouped by their task groups.
283
296
/// - usr: The unique, precise identifier for this symbol that you use to reference it across different systems, or `nil` if the summarized element isn't a symbol.
297
+
/// - fullName: The full name of this symbol, derived from its full declaration fragments, or `nil` if the summarized element isn't a symbol.
284
298
/// - declarationFragments: The fragments for this symbol's declaration, or `nil` if the summarized element isn't a symbol.
285
299
/// - redirects: Any previous URLs for this element, or `nil` if this element has no previous URLs.
286
300
/// - topicImages: Images that are used to represent the summarized element, or `nil` if this element has no topic images.
@@ -296,6 +310,7 @@ public struct LinkDestinationSummary: Codable, Equatable {
0 commit comments