-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Support applying attributes to properties and fields that are created to back primary constructor parameters in records. #45908
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
… to back primary constructor parameters in records. Closes dotnet#44691.
|
@cston, @jcouv, @RikkiGibson, @dotnet/roslyn-compiler Please review. #Closed |
|
Looking #Resolved |
| return attributes.Select(a => a.ToString()); | ||
| } | ||
|
|
||
| internal static IEnumerable<string> GetAttributeStrings(IEnumerable<CSharpAttributeData> attributes) |
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.
IEnumerable [](start = 64, length = 11)
nit: Can we remove the ImmuableArray overload since this overload will handle that case too? #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.
Can we remove the ImmuableArray overload since this overload will handle that case too?
I do not think this would be the right thing to do. That overload allocates less.
In reply to: 453887146 [](ancestors = 453887146)
jcouv
left a comment
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 1)
Closes #44691.