Files
swift-mirror/test/SourceKit/Indexing/Inputs/test_module.swift
Jordan Rose 02e1a11e35 [Index] Don't index non-public imported declarations (#25865)
Apart from mildly speeding up indexing, this also keeps the compiler
from running into issues with implementation-only imports that may not
be present while we're trying to index.

rdar://problem/52083709
2019-06-28 16:57:29 -07:00

39 lines
560 B
Swift

public class Empty {}
public class TwoInts {
public var x, y : Int
public init(a : Int, b : Int) {
x = a
y = b
}
}
public class ComputedProperty {
public var value : Int {
get {
var result = 0
return result
}
set(newVal) {
// completely ignore it!
}
}
}
public protocol Prot1 { }
public protocol Prot2 : Prot1 { }
public protocol Prot3 { }
public class C2 { }
extension C2 : Prot3, Prot1, Prot2 { }
public func globalFunc() {}
private func SECRET() {}
extension C2 {
internal func SECRET() {}
}