[SR-13792] Index store should relate appendInterpolation from string literals
swift-ci opened this issue · 3 comments
swift-ci commented
Previous ID | SR-13792 |
Radar | rdar://problem/70820224 |
Original Reporter | Leitch (JIRA User) |
Type | New Feature |
Additional Detail from JIRA
Votes | 0 |
Component/s | Source Tooling |
Labels | New Feature |
Assignee | Leitch (JIRA) |
Priority | Medium |
md5: 0896b2e76fc58c37c42a995dde600eea
Issue Description:
Given the following code:
extension String.StringInterpolation {
mutating func appendInterpolation(test value: Int) {
appendInterpolation(value)
}
}
public struct Fixture112 {
public func someFunc() {
print("test: \(test: 1)")
}
}
The index store could include a relation from the someFunc()
occurrence to appendInterpolation(test:)
. For the purposes of identifying unused code, it's not currently possible to identify that appendInterpolation(test:)
is used in the string interpolation.
swift-ci commented
Comment by Ian Leitch (JIRA)
/cc @benlangmuir
benlangmuir commented
@swift-ci create