-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Labels
StringArea → standard library: The `String` typeArea → standard library: The `String` typeexpressionsFeature: expressionsFeature: expressionsfeatureA feature request or implementationA feature request or implementationindexingArea → source tooling: AST indexingArea → source tooling: AST indexinginterpolated stringsFeature → expressions → literals → string literals: interpolated stringsFeature → expressions → literals → string literals: interpolated stringsliteralsFeature → expressions: Literals such as an integer or string literalFeature → expressions: Literals such as an integer or string literalsource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source toolingstring literalsFeature → expressions → literals: String literalsFeature → expressions → literals: String literalsswift 5.9
Description
| 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.
Metadata
Metadata
Assignees
Labels
StringArea → standard library: The `String` typeArea → standard library: The `String` typeexpressionsFeature: expressionsFeature: expressionsfeatureA feature request or implementationA feature request or implementationindexingArea → source tooling: AST indexingArea → source tooling: AST indexinginterpolated stringsFeature → expressions → literals → string literals: interpolated stringsFeature → expressions → literals → string literals: interpolated stringsliteralsFeature → expressions: Literals such as an integer or string literalFeature → expressions: Literals such as an integer or string literalsource toolingArea: IDE support, SourceKit, and other source toolingArea: IDE support, SourceKit, and other source toolingstring literalsFeature → expressions → literals: String literalsFeature → expressions → literals: String literalsswift 5.9