Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Swift] Some minor tidyups. #2115

Merged
merged 3 commits into from
Nov 29, 2017
Merged

Conversation

ewanmellor
Copy link
Contributor

@ewanmellor ewanmellor commented Nov 9, 2017

Minor tidyups in the Swift runtime. No semantic change.

Depends on PR #2102 due to merge conflicts.

@ewanmellor ewanmellor force-pushed the swift-minor-tidups branch 2 times, most recently from 8a48a8c to b51def4 Compare November 11, 2017 01:57
Change the initializer to ANTLRFileStream so that it throws any errors that
occur while reading the file.  Previously, it was just dropping any errors on
the floor (inside Utils.readFile).

Remove Utils.readFile, it's not used anywhere else.
Minor tidyups in the Swift runtime.  No semantic change.
Remove pointless do block from LexerATNSimulator.  This is a translation
from Java of a try/finally block, but we have the finally clause in a
defer block so we don't need the do block.
@parrt parrt added this to the 4.7.1 milestone Nov 29, 2017
@parrt parrt merged commit ed37fa2 into antlr:master Nov 29, 2017
@ewanmellor ewanmellor deleted the swift-minor-tidups branch November 30, 2017 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants