@@ -25,6 +25,12 @@ @interface Derived: Base
25
25
- (void )derivedMethodWithValue : (id <Protocol>)value ;
26
26
@end
27
27
28
+ // / This won't show up in docs because we can't serialize it
29
+ @interface Derived ()
30
+ // / Derived method in category docs, won't show up either.
31
+ - (void )derivedMethodInCategory ;
32
+ @end
33
+
28
34
// RUN: c-index-test -single-symbol-sgfs local %s | FileCheck %s
29
35
30
36
// Checking for Foo
@@ -53,7 +59,7 @@ - (void)derivedMethodWithValue:(id<Protocol>)value;
53
59
54
60
// Checking for baseProperty
55
61
// CHECK-NEXT: "parentContexts":[{"kind":"objective-c.class","name":"Base","usr":"c:objc(cs)Base"}]
56
- // CHECK-SAME:"relatedSymbols":[{"accessLevel":"public","declarationLanguage":"objective-c"
62
+ // CHECK-SAME: "relatedSymbols":[{"accessLevel":"public","declarationLanguage":"objective-c"
57
63
// CHECK-SAME: "isSystem":false
58
64
// CHECK-SAME: "usr":"c:@S@Foo"}]
59
65
// CHECK-SAME: "relationships":[{"kind":"memberOf","source":"c:objc(cs)Base(py)baseProperty","target":"c:objc(cs)Base"
@@ -63,7 +69,7 @@ - (void)derivedMethodWithValue:(id<Protocol>)value;
63
69
64
70
// Checking for baseMethodWithArg
65
71
// CHECK-NEXT: "parentContexts":[{"kind":"objective-c.class","name":"Base","usr":"c:objc(cs)Base"}]
66
- // CHECK-SAME:"relatedSymbols":[]
72
+ // CHECK-SAME: "relatedSymbols":[]
67
73
// CHECK-SAME: "relationships":[{"kind":"memberOf","source":"c:objc(cs)Base(im)baseMethodWithArg:","target":"c:objc(cs)Base"
68
74
// CHECK-SAME: "text":"Base method docs"
69
75
// CHECK-SAME: "kind":{"displayName":"Instance Method","identifier":"objective-c.method"}
@@ -79,7 +85,7 @@ - (void)derivedMethodWithValue:(id<Protocol>)value;
79
85
80
86
// Checking for protocolProperty
81
87
// CHECK-NEXT: "parentContexts":[{"kind":"objective-c.protocol","name":"Protocol","usr":"c:objc(pl)Protocol"}]
82
- // CHECK-SAME:"relatedSymbols":[{"accessLevel":"public","declarationLanguage":"objective-c"
88
+ // CHECK-SAME: "relatedSymbols":[{"accessLevel":"public","declarationLanguage":"objective-c"
83
89
// CHECK-SAME: "isSystem":false
84
90
// CHECK-SAME: "usr":"c:@S@Foo"}]
85
91
// CHECK-SAME: "relationships":[{"kind":"memberOf","source":"c:objc(pl)Protocol(py)protocolProperty","target":"c:objc(pl)Protocol"
@@ -89,7 +95,7 @@ - (void)derivedMethodWithValue:(id<Protocol>)value;
89
95
90
96
// Checking for Derived
91
97
// CHECK-NEXT: "parentContexts":[]
92
- // CHECK-SAME:"relatedSymbols":[{"accessLevel":"public","declarationLanguage":"objective-c"
98
+ // CHECK-SAME: "relatedSymbols":[{"accessLevel":"public","declarationLanguage":"objective-c"
93
99
// CHECK-SAME: "isSystem":false
94
100
// CHECK-SAME: "usr":"c:objc(cs)Base"}]
95
101
// CHECK-SAME: "relationships":[{"kind":"inheritsFrom","source":"c:objc(cs)Derived","target":"c:objc(cs)Base"
@@ -99,8 +105,11 @@ - (void)derivedMethodWithValue:(id<Protocol>)value;
99
105
100
106
// Checking for derivedMethodWithValue
101
107
// CHECK-NEXT: "parentContexts":[{"kind":"objective-c.class","name":"Derived","usr":"c:objc(cs)Derived"}]
102
- // CHECK-SAME:"relatedSymbols":[]
108
+ // CHECK-SAME: "relatedSymbols":[]
103
109
// CHECK-SAME: "relationships":[{"kind":"memberOf","source":"c:objc(cs)Derived(im)derivedMethodWithValue:","target":"c:objc(cs)Derived"
104
110
// CHECK-SAME: "text":"Derived method docs"
105
111
// CHECK-SAME: "kind":{"displayName":"Instance Method","identifier":"objective-c.method"}
106
112
// CHECK-SAME: "title":"derivedMethodWithValue:"
113
+
114
+ // CHECK-NOT: This won't show up in docs because we can't serialize it
115
+ // CHECK-NOT: Derived method in category docs, won't show up either.
0 commit comments