Closed keeptyping closed 6 years ago
I'm using SwiftKotlin (https://github.com/angelolloqui/SwiftKotlin) and unfortunately it does not accept semicolons in swift code (see https://github.com/angelolloqui/SwiftKotlin/issues/45). I think it because swift-ast does not accept semicolons. I hope swift-ast can be adjusted to accept semicolons.
Issue Summary
Semicolons not handled as expected.
Environment
Reproduction Steps
Every _const_decl/vardecl which ends with a semicolon is treated as an error.
Sample code
``` struct SemicolonIssue { private let issue = ""; } ``` Command to run `swift-ast` with the code above: `swift-ast SemicolonIssue.swift`Expected Result
A successfully parsed TopLevelDeclaration.
Actual Behavior
The parser failed with a badDeclaration error.