-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix partial method doc comments #56419
Fix partial method doc comments #56419
Conversation
src/Compilers/CSharp/Test/Symbol/DocumentationComments/DocumentationCommentCompilerTests.cs
Show resolved
Hide resolved
src/Compilers/CSharp/Test/Symbol/DocumentationComments/DocumentationCommentCompilerTests.cs
Show resolved
Hide resolved
src/Compilers/CSharp/Portable/Compiler/DocumentationCommentCompiler.cs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
src/Compilers/CSharp/Test/Symbol/DocumentationComments/DocumentationCommentCompilerTests.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Test/Symbol/DocumentationComments/DocumentationCommentCompilerTests.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Test/Symbol/DocumentationComments/DocumentationCommentCompilerTests.cs
Outdated
Show resolved
Hide resolved
src/Compilers/CSharp/Test/Symbol/DocumentationComments/DocumentationCommentCompilerTests.cs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
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 7)
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 7)
Do we need sign off from @dotnet/roslyn-ide for new tests in the IDE area? |
Yes, we should get a review for the few added IDE tests. |
@"partial class MyClass | ||
{ | ||
///<summary>My Method Definition</summary> | ||
public partial void MyMethod(); |
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.
can you add one more test where there is only an impl, but no def.
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.
Sure thing.
@"partial class MyClass | ||
{ | ||
///<summary>My Method Definition</summary> | ||
public partial void MyMethod(); |
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.
any concern that all thse tests test the public case? i know ublic partials are different from nonpublic ones. would testing that be useful? or is all the same to the compiler?
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.
or is all the same to the compiler?
I think it is, but I added one test where the partial method has no access modifiers for good measure.
Fixes #54103.
The specific rule changes implemented in this PR are laid out in dotnet/csharplang#5193.
Have added tests to ensure that the expected documentation is shown in Quick Info.