8000 [MilCodeGen] Allow emitting empty-lines via NULL, including conditionals by h3xds1nz · Pull Request #10856 · dotnet/wpf · GitHub
[go: up one dir, main page]

Skip to content

[MilCodeGen] Allow emitting empty-lines via NULL, including conditionals #10856

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

Open
wants to merge 109 commits into
base: main
Choose a base branch
from

Conversation

h3xds1nz
Copy link
Member
@h3xds1nz h3xds1nz commented May 18, 2025

Supersedes #10762

Description

Removes most of the empty lines that are present due to generating methods returning string.Empty as they're not applicable and interpreter then just emitting empty lines by simply using a magic string for null in the parser.

The added whitespaces are mostly wanted (e.g. newline after '}' is something that's enforced by StyleCop).

The only changes that matter (all those files are at the bottom):

  • This allows for the NULL support

    • CsPrimeRuntime
    • CsPrimeParser
    • CodeSink
  • These are the templating changes (note that "WriteParse" has no real changes, its just a whitespace move).

    • CollectionHelper
    • CodeGenHelpers
    • ManagedStruct
    • ManagedResource

Customer Impact

None, whitespace changes only.

Regression

No.

Testing

Local build.

Risk

None, there are only whitespace changes.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested a review from a team as a code owner May 18, 2025 00:44
@h3xds1nz
Copy link
Member Author

@dipeshmsft I've done mostly everything that I could find.

@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels May 18, 2025
Copy link
codecov bot commented May 18, 2025

Codecov Report

Attention: Patch coverage is 1.01010% with 98 lines in your changes missing coverage. Please review.

Project coverage is 13.47349%. Comparing base (57fe8ac) to head (3aca357).

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #10856         +/-   ##
===================================================
- Coverage   13.48885%   13.47349%   -0.01536%     
===================================================
  Files           3317        3317                 
  Lines         664749      664913        +164     
  Branches       74643       74654         +11     
===================================================
- Hits           89667       89587         -80     
- Misses        572488      572727        +239     
- Partials        2594        2599          +5     
Flag Coverage Δ
Debug 13.47349% <1.01010%> (-0.01536%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0