feat: Implement a more legible Source Code - #2282
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2282 +/- ##
=======================================
Coverage 99.96% 99.96%
=======================================
Files 191 191
Lines 9945 9981 +36
Branches 1912 1914 +2
=======================================
+ Hits 9942 9978 +36
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Looks better agreed reading the end output. Probably just more indenting on method parameters. Source generator itself is a bit harder, I would group together on the same line together which are generated on the same line. |
That last line I didn´t get it. When generating the SendAsync on the source generated file it looks just beautiful. I tried doing on the path. If you agree that the source generated file should be more readable I continue with this. I just looked at some examples of the generated methods and there are some of them that are 6XX chars long |
Sorry crazy time with work
.Append(indent).Append(variable).Append(' ').Append(name).Append(" = ").AppendLine("0;);Just so you can track in the source generator where the lines are. |
|



What kind of change does this PR introduce?
Feature implement a more legible Source code, see the verified files for example
What is the new behavior?
The source code generated is more legible
What is the current behavior?
The source code generated when building the HttpRequestMessage it was a long line hard to see
What might this PR break?
N/A all test are passed
Checklist
mainbranch