File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Sources/SwiftDocC/Model/Rendering/RenderSectionTranslator
Tests/SwiftDocCTests/Rendering Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
This source file is part of the Swift.org open source project
3
3
4
- Copyright (c) 2021-2023 Apple Inc. and the Swift project authors
4
+ Copyright (c) 2021-2024 Apple Inc. and the Swift project authors
5
5
Licensed under Apache License v2.0 with Runtime Library Exception
6
6
7
7
See https://swift.org/LICENSE.txt for license information
@@ -58,6 +58,9 @@ struct DeclarationsSectionTranslator: RenderSectionTranslator {
58
58
identifier: overloadReference. absoluteString
59
59
)
60
60
)
61
+
62
+ // Add a topic reference to the overload
63
+ renderNodeTranslator. collectedTopicReferences. append ( overloadReference)
61
64
}
62
65
return . init( declarations: otherDeclarations, displayIndex: overloads. displayIndex)
63
66
}
Original file line number Diff line number Diff line change 1
1
/*
2
2
This source file is part of the Swift.org open source project
3
3
4
- Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
4
+ Copyright (c) 2021-2024 Apple Inc. and the Swift project authors
5
5
Licensed under Apache License v2.0 with Runtime Library Exception
6
6
7
7
See https://swift.org/LICENSE.txt for license information
@@ -1434,6 +1434,8 @@ class RenderNodeTranslatorTests: XCTestCase {
1434
1434
1435
1435
for (otherIndex, otherReference) in overloadReferences. indexed ( ) where otherIndex != index {
1436
1436
XCTAssertTrue ( otherDeclarations. declarations. contains ( where: { $0. identifier == otherReference. absoluteString } ) )
1437
+
1438
+ XCTAssert ( renderNode. references. keys. contains ( otherReference. absoluteString) )
1437
1439
}
1438
1440
}
1439
1441
}
You can’t perform that action at this time.
0 commit comments