@@ -114,7 +114,7 @@ class LinkDestinationSummaryTests: XCTestCase {
114114 XCTAssertEqual ( pageSummary. redirects, nil )
115115 XCTAssertNil ( pageSummary. usr, " Only symbols have USRs " )
116116 XCTAssertNil ( pageSummary. plainTextDeclaration, " Only symbols have a plain text declaration " )
117- XCTAssertNil ( pageSummary. declarationFragments , " Only symbols have declaration fragments " )
117+ XCTAssertNil ( pageSummary. subheadingDeclarationFragments , " Only symbols have subheading declaration fragments " )
118118 XCTAssertNil ( pageSummary. navigatorTitle, " Only symbols have navigator titles " )
119119 XCTAssertNil ( pageSummary. abstract, " There is no text to use as an abstract for the tutorial page " )
120120 XCTAssertNil ( pageSummary. topicImages, " The tutorial page doesn't have any topic images " )
@@ -134,7 +134,7 @@ class LinkDestinationSummaryTests: XCTestCase {
134134 ] )
135135 XCTAssertNil ( sectionSummary. usr, " Only symbols have USRs " )
136136 XCTAssertNil ( sectionSummary. plainTextDeclaration, " Only symbols have a plain text declaration " )
137- XCTAssertNil ( sectionSummary. declarationFragments , " Only symbols have declaration fragments " )
137+ XCTAssertNil ( sectionSummary. subheadingDeclarationFragments , " Only symbols have subheading declaration fragments " )
138138 XCTAssertNil ( sectionSummary. navigatorTitle, " Only symbols have navigator titles " )
139139 XCTAssertEqual ( sectionSummary. abstract, [
140140 . text( " Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt " ) ,
@@ -185,7 +185,7 @@ class LinkDestinationSummaryTests: XCTestCase {
185185 XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
186186 XCTAssertEqual ( summary. usr, " s:5MyKit0A5ClassC " )
187187 XCTAssertEqual ( summary. plainTextDeclaration, " class MyClass " )
188- XCTAssertEqual ( summary. declarationFragments , [
188+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
189189 . init( text: " class " , kind: . keyword, identifier: nil ) ,
190190 . init( text: " " , kind: . text, identifier: nil ) ,
191191 . init( text: " MyClass " , kind: . identifier, identifier: nil ) ,
@@ -228,7 +228,7 @@ class LinkDestinationSummaryTests: XCTestCase {
228228 XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
229229 XCTAssertEqual ( summary. usr, " s:5MyKit0A5ProtocolP " )
230230 XCTAssertEqual ( summary. plainTextDeclaration, " protocol MyProtocol : Hashable " )
231- XCTAssertEqual ( summary. declarationFragments , [
231+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
232232 . init( text: " protocol " , kind: . keyword, identifier: nil ) ,
233233 . init( text: " " , kind: . text, identifier: nil ) ,
234234 . init( text: " MyProtocol " , kind: . identifier, identifier: nil ) ,
@@ -263,7 +263,7 @@ class LinkDestinationSummaryTests: XCTestCase {
263263 XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
264264 XCTAssertEqual ( summary. usr, " s:5MyKit0A5ClassC10myFunctionyyF " )
265265 XCTAssertEqual ( summary. plainTextDeclaration, " func myFunction(for name...) " )
266- XCTAssertEqual ( summary. declarationFragments , [
266+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
267267 . init( text: " func " , kind: . keyword, identifier: nil ) ,
268268 . init( text: " " , kind: . text, identifier: nil ) ,
269269 . init( text: " myFunction " , kind: . identifier, identifier: nil ) ,
@@ -300,7 +300,7 @@ class LinkDestinationSummaryTests: XCTestCase {
300300 XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
301301 XCTAssertEqual ( summary. usr, " s:5MyKit14globalFunction_11consideringy10Foundation4DataV_SitF " )
302302 XCTAssertEqual ( summary. plainTextDeclaration, " func globalFunction(_: Data, considering: Int) " )
303- XCTAssertEqual ( summary. declarationFragments , [
303+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
304304 . init( text: " func " , kind: . keyword, identifier: nil ) ,
305305 . init( text: " " , kind: . text, identifier: nil ) ,
306306 . init( text: " globalFunction " , kind: . identifier, identifier: nil ) ,
@@ -368,7 +368,7 @@ class LinkDestinationSummaryTests: XCTestCase {
368368 XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
369369 XCTAssertEqual ( summary. usr, " s:5MyKit0A5ClassC10myFunctionyyF " )
370370 XCTAssertEqual ( summary. plainTextDeclaration, " func myFunction(for name...) " )
371- XCTAssertEqual ( summary. declarationFragments , [
371+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
372372 . init( text: " func " , kind: . keyword, identifier: nil ) ,
373373 . init( text: " " , kind: . text, identifier: nil ) ,
374374 . init( text: " myFunction " , kind: . identifier, identifier: nil ) ,
@@ -482,7 +482,7 @@ class LinkDestinationSummaryTests: XCTestCase {
482482 XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
483483 XCTAssertEqual ( summary. usr, " c:objc(cs)Bar " )
484484 XCTAssertEqual ( summary. plainTextDeclaration, " class Bar " )
485- XCTAssertEqual ( summary. declarationFragments , [
485+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
486486 . init( text: " class " , kind: . keyword, identifier: nil ) ,
487487 . init( text: " " , kind: . text, identifier: nil ) ,
488488 . init( text: " Bar " , kind: . identifier, identifier: nil )
@@ -499,7 +499,7 @@ class LinkDestinationSummaryTests: XCTestCase {
499499 // Check variant content that is different
500500 XCTAssertEqual ( variant. language, . objectiveC)
501501 XCTAssertEqual ( variant. plainTextDeclaration, " @interface Bar : NSObject " )
502- XCTAssertEqual ( variant. declarationFragments , [
502+ XCTAssertEqual ( variant. subheadingDeclarationFragments , [
503503 . init( text: " @interface " , kind: . keyword, identifier: nil ) ,
504504 . init( text: " " , kind: . text, identifier: nil ) ,
505505 . init( text: " Bar " , kind: . identifier, identifier: nil ) ,
@@ -549,7 +549,7 @@ class LinkDestinationSummaryTests: XCTestCase {
549549 XCTAssertEqual ( summary. platforms, renderNode. metadata. platforms)
550550 XCTAssertEqual ( summary. usr, " c:objc(cs)Bar(cm)myStringFunction:error: " )
551551 XCTAssertEqual ( summary. plainTextDeclaration, " class func myStringFunction(_ string: String) throws -> String " )
552- XCTAssertEqual ( summary. declarationFragments , [
552+ XCTAssertEqual ( summary. subheadingDeclarationFragments , [
553553 . init( text: " class " , kind: . keyword, identifier: nil ) ,
554554 . init( text: " " , kind: . text, identifier: nil ) ,
555555 . init( text: " func " , kind: . keyword, identifier: nil ) ,
@@ -575,7 +575,7 @@ class LinkDestinationSummaryTests: XCTestCase {
575575 XCTAssertEqual ( variant. language, . objectiveC)
576576 XCTAssertEqual ( variant. title, " myStringFunction:error: " )
577577 XCTAssertEqual ( variant. plainTextDeclaration, " + (NSString *) myStringFunction: (NSString *)string error: (NSError **)error; " )
578- XCTAssertEqual ( variant. declarationFragments , [
578+ XCTAssertEqual ( variant. subheadingDeclarationFragments , [
579579 . init( text: " + " , kind: . text, identifier: nil ) ,
580580 . init( text: " myStringFunction:error: " , kind: . identifier, identifier: nil )
581581 ] )
@@ -713,7 +713,7 @@ class LinkDestinationSummaryTests: XCTestCase {
713713 XCTAssertEqual ( decoded. title, " ClassName " )
714714 XCTAssertEqual ( decoded. abstract? . plainText, " A brief explanation of my class. " )
715715 XCTAssertEqual ( decoded. relativePresentationURL. absoluteString, " documentation/MyKit/ClassName " )
716- XCTAssertEqual ( decoded. declarationFragments , [
716+ XCTAssertEqual ( decoded. subheadingDeclarationFragments , [
717717 . init( text: " class " , kind: . keyword, identifier: nil ) ,
718718 . init( text: " " , kind: . text, identifier: nil ) ,
719719 . init( text: " ClassName " , kind: . identifier, identifier: nil ) ,
0 commit comments