Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

Fixes #79519

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner August 18, 2025 21:31
@CyrusNajmabadi
Copy link
Member Author

@dotnet/roslyn-compiler @RikkiGibson ptal.

@RikkiGibson RikkiGibson self-assigned this Aug 18, 2025

public override SyntaxNode RemapAttributeTarget(SyntaxNode target)
{
return target is VariableDeclaratorSyntax { Parent: VariableDeclarationSyntax { Parent: BaseFieldDeclarationSyntax baseField } }
Copy link
Member

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.

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SyntaxProvider.ForAttributeWithMetadataName returns duplicate values when there are multiple partial classes.

3 participants