Skip to content

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
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