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 172172 {
173173 key.kind: source.lang.swift.decl.extension.class,
174174 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+ ]
176185 }
177186 ]
178187}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class TwoInts {
1212public class ComputedProperty {
1313 public var value : Int {
1414 get {
15- var result = 0
15+ let result = 0
1616 return result
1717 }
1818 set ( newVal) {
@@ -33,6 +33,16 @@ public func globalFunc() {}
3333
3434private func SECRET( ) { }
3535
36+ extension C2 {
37+ public func publicFunc( ) { }
38+ }
39+
40+ // Don't record extensions with nothing to index.
3641extension C2 {
3742 internal func SECRET( ) { }
43+ private func SECRET1( ) { }
44+ fileprivate func SECRET2( ) { }
3845}
46+
47+ internal protocol InternalProto { }
48+ extension C2 : InternalProto { }
You can’t perform that action at this time.
0 commit comments