Skip to content

Commit 4d915c5

Browse files
authored
Support multiple paragraphs (and other block content) for all tags (#1014)
* Support multiple paragraphs (and other blocks content) for all tags rdar://134439521 rdar://134356001 * Code review: Add documentation for private helper functions
1 parent a08f470 commit 4d915c5

File tree

3 files changed

+803
-638
lines changed

3 files changed

+803
-638
lines changed

Sources/SwiftDocC/Model/DocumentationNode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public struct DocumentationNode {
425425
// The property list symbol's allowed values.
426426
let symbolAllowedValues = symbol![mixin: SymbolGraph.Symbol.AllowedValues.self]
427427

428-
if let possibleValues = markupModel.discussionTags?.possibleValues, !possibleValues.isEmpty {
428+
if let possibleValues = markupModel.discussionTags?.possiblePropertyListValues, !possibleValues.isEmpty {
429429
let validator = PropertyListPossibleValuesSection.Validator(diagnosticEngine: engine)
430430
guard let symbolAllowedValues else {
431431
possibleValues.forEach {
@@ -714,7 +714,7 @@ public struct DocumentationNode {
714714
returnsSectionVariants: .init(swiftVariant: markupModel.discussionTags.flatMap({ $0.returns.isEmpty ? nil : ReturnsSection(content: $0.returns[0].contents) })),
715715
parametersSectionVariants: .init(swiftVariant: markupModel.discussionTags.flatMap({ $0.parameters.isEmpty ? nil : ParametersSection(parameters: $0.parameters) })),
716716
dictionaryKeysSectionVariants: .init(swiftVariant: markupModel.discussionTags.flatMap({ $0.dictionaryKeys.isEmpty ? nil : DictionaryKeysSection(dictionaryKeys: $0.dictionaryKeys) })),
717-
possibleValuesSectionVariants: .init(swiftVariant: markupModel.discussionTags.flatMap({ $0.possibleValues.isEmpty ? nil : PropertyListPossibleValuesSection(possibleValues: $0.possibleValues) })),
717+
possibleValuesSectionVariants: .init(swiftVariant: markupModel.discussionTags.flatMap({ $0.possiblePropertyListValues.isEmpty ? nil : PropertyListPossibleValuesSection(possibleValues: $0.possiblePropertyListValues) })),
718718
httpEndpointSectionVariants: .empty,
719719
httpBodySectionVariants: .empty,
720720
httpParametersSectionVariants: .empty,

0 commit comments

Comments
 (0)