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

feat: generate code that uses Array.Empty where possible #1599

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

TimothyMakkison
Copy link
Contributor

@TimothyMakkison TimothyMakkison commented Nov 14, 2023

Use Array.Empty over allocating an empty array where possible. Done for ______arguments and parameterTypes..

See #1598

Copy link
Member

@anaisbetts anaisbetts left a comment

Choose a reason for hiding this comment

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

This is great, thanks for the solid PR. @clairernovotny, can you think of anything this might break?

@TimothyMakkison TimothyMakkison force-pushed the improve_empty_array branch 5 times, most recently from f83b635 to 19870d6 Compare November 15, 2023 11:15
@clairernovotny
Copy link
Member

Can't think of any issues this would cause. Thanks!

@TimothyMakkison
Copy link
Contributor Author

Sorry about that, should be fixed now 🤞

Any chance you'd be open to running a formatter on this repository? A lot of lines appear to have random 4-8 sections of whitespace.

Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (af399f0) 85.45% compared to head (9f8883d) 85.45%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1599   +/-   ##
=======================================
  Coverage   85.45%   85.45%           
=======================================
  Files          33       33           
  Lines        1685     1685           
  Branches      295      295           
=======================================
  Hits         1440     1440           
  Misses        166      166           
  Partials       79       79           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anaisbetts anaisbetts merged commit 66edaaa into reactiveui:main Nov 17, 2023
3 checks passed
Copy link

github-actions bot commented Dec 2, 2023

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 2, 2023
@TimothyMakkison TimothyMakkison deleted the improve_empty_array branch December 2, 2023 00:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants