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

UnknownSyntax found for syntax tree generated from sourcekitd but not from swiftc

    XMLWordPrintable

    Details

      Description

      For a file containing the following code:

      #if swift(<4)
       print(1)
      #endif
      

      a Syntax tree produced using sourcekitd generates an UnknownSyntax node but with swiftc -emit-syntax it works fine.

        Attachments

          Activity

            People

            Assignee:
            nkcsgexi Xi Ge
            Reporter:
            nathawes Nathan Hawes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: