-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Add CodeGenerator tests and fix NREs/bugs #40838
Conversation
@buyaa-n your area, could you please help get this in |
product changes LGTM (with one comment) @hughbe does this need rebase on top of that PR? Presumably some changes will disappear |
Thank you @hughbe there is some test failures |
Thanks for your PR @hughbe |
src/System.CodeDom/src/System/CodeDom/Compiler/CodeGenerator.cs
Outdated
Show resolved
Hide resolved
src/System.CodeDom/src/System/CodeDom/Compiler/CodeGenerator.cs
Outdated
Show resolved
Hide resolved
src/System.CodeDom/src/System/CodeDom/Compiler/CodeGenerator.cs
Outdated
Show resolved
Hide resolved
src/System.CodeDom/src/System/CodeDom/Compiler/CodeGenerator.cs
Outdated
Show resolved
Hide resolved
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.
Thanks, @hughbe.
I'm fine with the ArgumentNullException changes and the associated tests, but I think the changes that guard calls based on whether collections are empty should be reverted.
@hughbe if you have no time to apply the requested changes in near future please let me know, I can help wiith that. Thank you! |
@buyaa-n I suggest just making the changes so we can get this one merged... |
Sure |
/azp run corefx-ci |
Azure Pipelines successfully started running 1 pipeline(s). |
@stephentoub reverted collection count checks, do you have any other comment? |
Thank you for your contribution. As announced in dotnet/coreclr#27549 this repository will be moving to dotnet/runtime on November 13. If you would like to continue working on this PR after this date, the easiest way to move the change to dotnet/runtime is:
|
So sorry! I keep getting distracted by winforms stuff and university work. Thanks for taking this on. |
Sure no problem, thank you for your contribution |
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.
Product changes and small tests file LGTM, haven't got time to look at the big tests change
if (member == null) | ||
{ | ||
throw new ArgumentNullException(nameof(member)); | ||
} |
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.
} | |
} | |
{ | ||
GenerateLinePragmaStart(imp.LinePragma); | ||
} | ||
|
||
GenerateNamespaceImport(imp); |
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.
GenerateNamespaceImport(imp); | |
GenerateNamespaceImport(imp); | |
Depends on #39585