We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Semicolons not handled as expected.
Every const_decl/var_decl which ends with a semicolon is treated as an error.
struct SemicolonIssue { private let issue = ""; }
Command to run swift-ast with the code above: swift-ast SemicolonIssue.swift
swift-ast
swift-ast SemicolonIssue.swift
A successfully parsed TopLevelDeclaration.
The parser failed with a badDeclaration error.
SemicolonIssue.swift:13:25 fatal: badDeclaration
The text was updated successfully, but these errors were encountered:
I'm using SwiftKotlin (https://github.com/angelolloqui/SwiftKotlin) and unfortunately it does not accept semicolons in swift code (see angelolloqui/SwiftKotlin#45). I think it because swift-ast does not accept semicolons. I hope swift-ast can be adjusted to accept semicolons.
Sorry, something went wrong.
No branches or pull requests
Issue Summary
Semicolons not handled as expected.
Environment
Reproduction Steps
Every const_decl/var_decl which ends with a semicolon is treated as an error.
Sample code
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.
The text was updated successfully, but these errors were encountered: