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

FunctionParameterSyntax line position incorrect for multi-line function declaration.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Component/s: SwiftSyntax
    • Labels:
      None
    • Environment:

      Description

      Given the following code:

       

      class MyClass {
          func myFunc(param1: String,
                      param2: String) {}
      }
      

       

      The line position of the FunctionParameterSyntax for param2 is incorrectly identified as 2, it should be 3. The line for param1 is correctly identified as 2.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: