Skip to content

Support parsing of shortened function bodies#439

Merged
WebFreak001 merged 2 commits intomasterfrom
shortened_function_bodies
Jan 30, 2022
Merged

Support parsing of shortened function bodies#439
WebFreak001 merged 2 commits intomasterfrom
shortened_function_bodies

Conversation

@Hackerpilot
Copy link
Collaborator

Support for 2.096.0's new -preview=shortenedMethods syntax.

@Hackerpilot
Copy link
Collaborator Author

Looks like the CI is failing because we're still using an ancient version of the allocators. We really need to fix that.

@ghost
Copy link

ghost commented May 27, 2021

That will pass if you rebase as @RazvanN7 has deactivated the tests relying on Meson in fbdf71b.

src/dparse/ast.d Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

startLocation & endLocation never actually assigned (and obsolete since the introduction of the tokens slice)

@codecov
Copy link

codecov bot commented May 28, 2021

Codecov Report

Merging #439 (511a0cc) into master (6f0893f) will increase coverage by 0.93%.
The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #439      +/-   ##
==========================================
+ Coverage   81.86%   82.79%   +0.93%     
==========================================
  Files          11       11              
  Lines        8454     8290     -164     
==========================================
- Hits         6921     6864      -57     
+ Misses       1533     1426     -107     
Impacted Files Coverage Δ
src/dparse/ast.d 70.25% <0.00%> (-0.48%) ⬇️
src/dparse/astprinter.d 94.76% <ø> (-0.01%) ⬇️
src/dparse/formatter.d 43.92% <0.00%> (+2.34%) ⬆️
src/dparse/parser.d 91.24% <80.00%> (+0.04%) ⬆️
src/std/experimental/lexer.d 84.61% <0.00%> (-0.17%) ⬇️
src/dparse/strings.d 98.70% <0.00%> (-0.02%) ⬇️
src/dparse/trivia.d 99.44% <0.00%> (-0.02%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f0893f...511a0cc. Read the comment docs.

Not needed since they can be obtained by the tokens slice.
@WebFreak001 WebFreak001 merged commit 413a416 into master Jan 30, 2022
@Geod24 Geod24 deleted the shortened_function_bodies branch January 31, 2022 09:42
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

Comments