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
More symbol info about collisions in error message when a link is ambiguous (#398)
* Use full declaration in ambiguous link error message
rdar://100436859
* Remove comment about a resolved issue
* Avoid percent encoding in the description of unresolved references
* Refine phrasing of symbol link collision error message
* Small style changes to map closure argument
letcollisionDescription= collisions.map{"Add \($0.disambiguation.singleQuoted) to refer to \($0.node.fullNameOfValue(context: context).singleQuoted)"}.sorted()
841
+
letcollisionDescription= collisions.map{"Append '-\($0.disambiguation)' to refer to \($0.node.fullNameOfValue(context: context).singleQuoted)"}.sorted()
842
842
return"Reference is ambiguous after \(partialResult.pathWithoutDisambiguation().singleQuoted): \(collisionDescription.joined(separator:". "))."
Copy file name to clipboardExpand all lines: Tests/SwiftDocCTests/Semantics/SymbolTests.swift
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -525,7 +525,7 @@ class SymbolTests: XCTestCase {
525
525
526
526
A cool API to call.
527
527
528
-
This overview has an ``UnresolvableSymbolLinkInMyClassOverview``.
528
+
This overview has an ``UnresolvableSymbolLinkInMyClassOverview<>(_:))``.
529
529
530
530
- Parameters:
531
531
- name: A parameter
@@ -554,14 +554,14 @@ class SymbolTests: XCTestCase {
554
554
555
555
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'doc://com.test.external/ExternalPage' couldn't be resolved. No external resolver registered for 'com.test.external'."}))
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'UnresolvableSymbolLinkInMyClassOverview' couldn't be resolved. Reference at '/MyKit/MyClass' can't resolve 'UnresolvableSymbolLinkInMyClassOverview'. Available children: init(), myFunction()."}))
557
+
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'UnresolvableSymbolLinkInMyClassOverview<>(_:))' couldn't be resolved. Reference at '/MyKit/MyClass' can't resolve 'UnresolvableSymbolLinkInMyClassOverview<>(_:))'. Available children: init(), myFunction()."}))
558
558
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'UnresolvableClassInMyClassTopicCuration' couldn't be resolved. Reference at '/MyKit/MyClass' can't resolve 'UnresolvableClassInMyClassTopicCuration'. Available children: init(), myFunction()."}))
559
559
560
560
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'MyClass/unresolvablePropertyInMyClassTopicCuration' couldn't be resolved. Reference at '/MyKit/MyClass' can't resolve 'unresolvablePropertyInMyClassTopicCuration'. Available children: init(), myFunction()."}))
561
-
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'init()' couldn't be resolved. Reference is ambiguous after '/MyKit/MyClass': Add '33vaw' to refer to 'init()'. Add '3743d' to refer to 'init()'."}))
562
-
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'MyClass/init()-swift.init' couldn't be resolved. Reference is ambiguous after '/MyKit/MyClass': Add '33vaw' to refer to 'init()'. Add '3743d' to refer to 'init()'."}))
561
+
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'init()' couldn't be resolved. Reference is ambiguous after '/MyKit/MyClass': Append '-33vaw' to refer to 'init()'. Append '-3743d' to refer to 'init()'."}))
562
+
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'MyClass/init()-swift.init' couldn't be resolved. Reference is ambiguous after '/MyKit/MyClass': Append '-33vaw' to refer to 'init()'. Append '-3743d' to refer to 'init()'."}))
563
563
}else{
564
-
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'UnresolvableSymbolLinkInMyClassOverview' couldn't be resolved. No local documentation matches this reference."}))
564
+
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'UnresolvableSymbolLinkInMyClassOverview<>(_:))' couldn't be resolved. No local documentation matches this reference."}))
565
565
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'UnresolvableClassInMyClassTopicCuration' couldn't be resolved. No local documentation matches this reference."}))
566
566
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'MyClass/unresolvablePropertyInMyClassTopicCuration' couldn't be resolved. No local documentation matches this reference."}))
567
567
XCTAssertTrue(unresolvedTopicProblems.contains(where:{ $0.diagnostic.localizedSummary =="Topic reference 'init()' couldn't be resolved. No local documentation matches this reference."}))
0 commit comments