Uploaded image for project: 'Swift'
  1. Swift
  2. SR-13792

Index store should relate appendInterpolation from string literals

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Source Tooling
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Leitch Ian Leitch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: