Skip to content

Conversation

@AlekseyTs
Copy link
Contributor

Closes #44691.

… to back primary constructor parameters in records.

Closes dotnet#44691.
@AlekseyTs
Copy link
Contributor Author

AlekseyTs commented Jul 13, 2020

@cston, @jcouv, @RikkiGibson, @dotnet/roslyn-compiler Please review. #Closed

@AlekseyTs
Copy link
Contributor Author

AlekseyTs commented Jul 13, 2020

@cston, @jcouv, @dotnet/roslyn-compiler Please review, need a second sign-off. #Closed

@jcouv
Copy link
Member

jcouv commented Jul 13, 2020

Looking #Resolved

return attributes.Select(a => a.ToString());
}

internal static IEnumerable<string> GetAttributeStrings(IEnumerable<CSharpAttributeData> attributes)
Copy link
Member

@jcouv jcouv Jul 13, 2020

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

Copy link
Contributor Author

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)

Copy link
Member

@jcouv jcouv left a 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)

@jcouv jcouv self-assigned this Jul 13, 2020
@AlekseyTs AlekseyTs merged commit ba014d9 into dotnet:master Jul 13, 2020
@ghost ghost added this to the Next milestone Jul 13, 2020
@JoeRobich JoeRobich modified the milestones: Next, 16.8.P1 Jul 20, 2020
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.

Declare attributes on positional record property

4 participants