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

UnresolvedPatternExprSyntax for value bindings

    XMLWordPrintable

    Details

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

      Description

      Hi, 

      I tried to parse the following file Signal-iOS/ProfileFetcherJob.swift at master · signalapp/Signal-iOS · GitHub with SwiftSyntax and received multiple errors about unresolved syntax (especially in value bindings)

       

      E.g. the highlighted snippet on the code was marked as UnresolvedPatternExprSyntax. It can be reproduced using code:

              let sourceSyntax: SourceFileSyntax = try SyntaxParser.parse(URL(fileURLWithPath: source))
              class UnresolvedSyntaxVisitor: SyntaxVisitor {
                  override func visit(_ node: UnresolvedPatternExprSyntax) -> SyntaxVisitorContinueKind {
                      print(node)
                      return .skipChildren
                  }
              }
              UnresolvedSyntaxVisitor().walk(sourceSyntax)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bagipro Sergey Toshin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: