-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Enforce more code style in Compilers area #47148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not make code style changes to the compiler. If you want, you can open an issue where the topic can be discussed and the compiler team can make a decision here
@CyrusNajmabadi I believe this is something that the compiler has already shown interest in - uniform code style enforcement in the Roslyn repo. |
@Youssef1313 Can you fix each ID using a FixAll application in a single commit instead of separate individual fixes? |
Yes we have shown this interest and there are a number of styles we're going to be making uniform. At the same time though we don't generally accept PRs that are style only. It's actively called out in our Contributing document.
Was this discussed somewhere I missed? |
Sure. I've selected a FixAll for solution in Visual Studio, but seems to be taking too long. |
@jaredpar Hmm, So I should close the PR? or enforcing styles with .editorconfig will be an exception? |
Good point @Youssef1313. I'll let @CyrusNajmabadi @333fred chime in, I am personally fine with any option here. |
Alright. The pretty printer (the thing that formats VB code on line commit) is the source of truth here. It says |
bf95214
to
589e8e9
Compare
Mostly looking good. The BoundNodeWriter will have to be updated for Correctness to pass: https://github.com/dotnet/roslyn/blob/master/src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/BoundNodeClassWriter.cs#L311 |
@333fred I updated it. This is used for auto-generated code right? |
src/Tools/Source/CompilerGeneratorTools/Source/BoundTreeGenerator/BoundNodeClassWriter.cs
Outdated
Show resolved
Hide resolved
Yes, it generates the bound nodes based on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (commit 37). @dotnet/roslyn-compiler for a second review.
@dotnet/roslyn-compiler for a second review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thanks (iteration 38)
I'm going to run CI again to make sure that there were no conflicts introduced between the last update and now. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Hello @333fred! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
Argh, the bot doesn't know to squash... Let's try to squash next time. Thanks |
Thanks Youssef! |
No description provided.