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

Make the parser understand completely empty single line if statements #6169

Merged

Conversation

MDoerner
Copy link
Contributor

Closes #6163

Yes, the Else part in a single line if statement is optional even if the Then part is empty.
It makes no sense to include this in your code, but technically it is legal.
This PR makes it possible that RD does not choke on it anymore.

@rubberduck-vba-releasebot
Copy link
Member

@codecov
Copy link

codecov bot commented Oct 21, 2023

Codecov Report

Merging #6169 (eb75069) into next (877d0f6) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #6169   +/-   ##
=======================================
  Coverage   97.58%   97.58%           
=======================================
  Files           4        4           
  Lines         413      413           
  Branches       28       28           
=======================================
  Hits          403      403           
  Misses          6        6           
  Partials        4        4           

@retailcoder retailcoder merged commit 415ae07 into rubberduck-vba:next Oct 24, 2023
3 checks passed
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.

Examples of legal single line if statements in VBE, rubberduck parsing failed:
3 participants