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

Fix crash when func has no block #774

Merged
merged 2 commits into from
Feb 21, 2023
Merged

Fix crash when func has no block #774

merged 2 commits into from
Feb 21, 2023

Conversation

TwitchBronBron
Copy link
Member

Fixes a crash in the parser when a function body fails to parse. Allows the diagnostics to happen, but still adds an empty Block entry to function.body so ast walkers have a better time.

@TwitchBronBron TwitchBronBron merged commit 4b22eb6 into master Feb 21, 2023
@TwitchBronBron TwitchBronBron deleted the empty-func-block branch February 21, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants