-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix results streamed by ForAttributeWithMetadataName with multiple parts #79947
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
Conversation
|
@dotnet/roslyn-compiler @RikkiGibson ptal. |
|
|
||
| public override SyntaxNode RemapAttributeTarget(SyntaxNode target) | ||
| { | ||
| return target is VariableDeclaratorSyntax { Parent: VariableDeclarationSyntax { Parent: BaseFieldDeclarationSyntax baseField } } |
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.
Main thing I would want to make sure of is: are we sure that this is the only special case we need to handle? e.g. there's no other symbol kind, where the syntax which is considered to declare the symbol, isn't actually the target of the attributes in syntax, and some parent node is instead.
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.
so, as part of the original work, we tested all cases where attributes can appear. so all of those exercised these codepaths.
Fixes #79519