Skip to content

Commit 8156ed0

Browse files
update SymbolKit to include swiftlang/swift-docc-symbolkit#44 (#326)
rdar://96216773
1 parent 34b237a commit 8156ed0

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/SwiftDocCTests/Model/SemaToRenderNodeTests.swift

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2651,6 +2651,22 @@ Document @1:1-11:19
26512651
""",
26522652
expectedRenderedAbstract: [.text("Authored abstract")]
26532653
),
2654+
TestData(
2655+
docCommentJSON: """
2656+
{
2657+
"lines": [{
2658+
"text": "Authored abstract",
2659+
"range": {
2660+
"start": {"line": 1, "character": 4},
2661+
"end": {"line": 1, "character": 21}
2662+
}
2663+
}],
2664+
"module": "SideKit",
2665+
"uri": "file://path/with spaces/to/file.swift"
2666+
}
2667+
""",
2668+
expectedRenderedAbstract: [.text("Authored abstract")]
2669+
),
26542670
TestData(
26552671
docCommentJSON: """
26562672
{
@@ -2667,6 +2683,22 @@ Document @1:1-11:19
26672683
""",
26682684
expectedRenderedAbstract: [.text("Inherited from "), .codeVoice(code: "Module.Protocol.inherited()"), .text(".")]
26692685
),
2686+
TestData(
2687+
docCommentJSON: """
2688+
{
2689+
"lines": [{
2690+
"text": "Authored abstract",
2691+
"range": {
2692+
"start": {"line": 1, "character": 4},
2693+
"end": {"line": 1, "character": 21}
2694+
}
2695+
}],
2696+
"module": "OtherModule",
2697+
"uri": "file://path/with spaces/to/file.swift"
2698+
}
2699+
""",
2700+
expectedRenderedAbstract: [.text("Inherited from "), .codeVoice(code: "Module.Protocol.inherited()"), .text(".")]
2701+
),
26702702
// Without the new module information
26712703
TestData(
26722704
docCommentJSON: """

0 commit comments

Comments
 (0)