Skip to content

[SR-13792] Index store should relate appendInterpolation from string literals #56189

Open
@swift-ci

Description

@swift-ci
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

No one assigned

    Labels

    StringArea → standard library: The `String` typeexpressionsFeature: expressionsfeatureA feature request or implementationindexingArea → source tooling: AST indexinginterpolated stringsFeature → expressions → literals → string literals: interpolated stringsliteralsFeature → expressions: Literals such as an integer or string literalsource toolingArea: IDE support, SourceKit, and other source toolingstring literalsFeature → expressions → literals: String literalsswift 5.9

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions