-
Notifications
You must be signed in to change notification settings - Fork 59
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
prevent invalid scope when parsing bodies containing erroneous decls #359
Conversation
this breaks the arbitrary lookups required by the language. |
if
Because of this PR I also found the following potential null-reference-errors which would be fixed by this: formatter.d:616 ( formatter.d:1036 ( nvm stopping checking this out if it's deleted then |
Yeah the formatter bugs are not a surprise, see #346. |
@WebFreak001, I have maybe a working fix coming. |
Codecov Report
@@ Coverage Diff @@
## master #359 +/- ##
==========================================
+ Coverage 74.16% 74.17% +0.01%
==========================================
Files 8 8
Lines 6874 6877 +3
==========================================
+ Hits 5098 5101 +3
Misses 1776 1776
Continue to review full report at Codecov.
|
Okay it seems to work and doesn't break dparse test suite. This time the approach is more pragmatic. The case that breaks DCD, i.e a syntax error, is exactly detected. |
DCD test suite works too now. |
Required to fix ... dlang-community/DCD#600