8
8
// RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes BONUS-DOCS
9
9
// RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes EXTRA
10
10
// RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes LOCAL
11
+ // RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes SUPER
11
12
12
13
// RUN: %target-swift-symbolgraph-extract -module-name InheritedDocs -I %t -pretty-print -output-dir %t -skip-inherited-docs
13
14
// RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes CHECK,SKIP
16
17
// RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes BONUS-SKIP
17
18
// RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes EXTRA
18
19
// RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes LOCAL
20
+ // RUN: %FileCheck %s --input-file %t/InheritedDocs.symbols.json --check-prefixes SUPER
19
21
20
22
// RUN: %empty-directory(%t)
21
23
// RUN: %target-build-swift %s -module-name InheritedDocs -emit-module -emit-module-path %t/InheritedDocs.swiftmodule -emit-symbol-graph -emit-symbol-graph-dir %t/ -skip-inherited-docs
60
62
61
63
// local implementations of a local protocol still need to a relation to that protocol
62
64
63
- // LOCAL: "source": "s:13InheritedDocs1SV9localFuncyyF"
65
+ // LOCAL: "source": "s:13InheritedDocs1SV9localFuncyyF"
64
66
// LOCAL-NEXT: "target": "s:13InheritedDocs1SV"
65
67
// LOCAL-NEXT: "sourceOrigin"
66
68
// LOCAL-NEXT: "identifier": "s:13InheritedDocs1PP9localFuncyyF"
67
69
// LOCAL-NEXT: "displayName": "P.localFunc()"
68
70
71
+ // ...both with and without docs
72
+
73
+ // SUPER: "source": "s:13InheritedDocs1SV9superFuncyyF"
74
+ // SUPER-NEXT: "target": "s:13InheritedDocs1SV"
75
+ // SUPER-NEXT: "sourceOrigin"
76
+ // SUPER-NEXT: "identifier": "s:13InheritedDocs1PP9superFuncyyF"
77
+ // SUPER-NEXT: "displayName": "P.superFunc()"
78
+
69
79
/// Protocol P
70
80
public protocol P {
71
81
/// Some Function
72
82
func someFunc( )
73
83
74
84
/// It's a local function!
75
85
func localFunc( )
86
+
87
+ func superFunc( )
76
88
}
77
89
78
90
public extension P {
@@ -86,4 +98,6 @@ public extension P {
86
98
87
99
public struct S : P {
88
100
public func localFunc( ) { }
101
+
102
+ public func superFunc( ) { }
89
103
}
0 commit comments