File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
test/SourceKit/Indexing/Inputs Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 172
172
{
173
173
key.kind: source.lang.swift.decl.extension.class,
174
174
key.name: "C2",
175
- key.usr: "s:e:s:11test_module2C2C6SECRETyyF"
175
+ key.usr: "s:e:s:11test_module2C2C10publicFuncyyF",
176
+ key.entities: [
177
+ {
178
+ key.kind: source.lang.swift.decl.function.method.instance,
179
+ key.name: "publicFunc()",
180
+ key.usr: "s:11test_module2C2C10publicFuncyyF",
181
+ key.is_dynamic: 1,
182
+ key.effective_access: source.decl.effective_access.public
183
+ }
184
+ ]
176
185
}
177
186
]
178
187
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class TwoInts {
12
12
public class ComputedProperty {
13
13
public var value : Int {
14
14
get {
15
- var result = 0
15
+ let result = 0
16
16
return result
17
17
}
18
18
set ( newVal) {
@@ -33,6 +33,16 @@ public func globalFunc() {}
33
33
34
34
private func SECRET( ) { }
35
35
36
+ extension C2 {
37
+ public func publicFunc( ) { }
38
+ }
39
+
40
+ // Don't record extensions with nothing to index.
36
41
extension C2 {
37
42
internal func SECRET( ) { }
43
+ private func SECRET1( ) { }
44
+ fileprivate func SECRET2( ) { }
38
45
}
46
+
47
+ internal protocol InternalProto { }
48
+ extension C2 : InternalProto { }
You can’t perform that action at this time.
0 commit comments