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

Nested declaration becomes unknown when semicolon is attached

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: SwiftSyntax
    • Labels:
      None
    • Environment:
      • Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
      • SwiftSyntax¬†0.40200.0

      Description

      For example, when `StructDecl`'s inner `VariableDecl` has semicolon, AST will have `UnknownDecl`.

      struct Foo {
          let x = 1;
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            inamiy Yasuhiro Inami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: