Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Microsoft.CSharp: Remove check for ExprMemberGroup being used as a lvalue#25214

Merged
VSadov merged 2 commits intodotnet:masterfrom
JonHanna:lvaluemembergroup
Nov 15, 2017
Merged

Microsoft.CSharp: Remove check for ExprMemberGroup being used as a lvalue#25214
VSadov merged 2 commits intodotnet:masterfrom
JonHanna:lvaluemembergroup

Conversation

@JonHanna
Copy link
Contributor

@JonHanna JonHanna commented Nov 13, 2017

ExprMemberGroups only exist within ExprCall and ExprProperty objects and can never be passed as operands, so this is unreachable. (Unlike in static compilation where it would be the result of someone trying e.g. obj.ToString = 3).

Results in removal of ERR_AssgReadonlyLocalCause, contributes to #22470.

  • Remove ErrArgIds class

Only place it was instantiated has now been removed.

Clean-up all unused ErrArgKind as well as Ids that this makes unused.

ExprMemberGroups only exist within ExprCall objects and can never be
passed as operands, so this is unreachable. (Unlike in static
compilation where it would be the result of someone trying e.g.
obj.ToString = 3).

Entails removal of ERR_AssgReadonlyLocalCause, contributes to #22470
Only place it was instantiated has now been removed.

Clean-up all unused ErrArgKind as well as Ids that this makes unused.
@JonHanna
Copy link
Contributor Author

Copy link
Member

@VSadov VSadov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VSadov VSadov merged commit fff6031 into dotnet:master Nov 15, 2017
@JonHanna JonHanna deleted the lvaluemembergroup branch November 15, 2017 04:55
@karelz karelz added this to the 2.1.0 milestone Nov 18, 2017
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/corefx that referenced this pull request Jul 15, 2019
…rvices (dotnet#25214)

* Address nullable feedback for System.Threading.Overlapped

* Address nullable feedback for System.Memory

* Address nullable for System.Runtime.InteropServices

* Update xml comments and make CultureInfo nullable to match String.ToLower/Upper feedback

* PR feedback: revert accepting null comparer in BinarySearch

* Disable test that needs to be updated in corefx

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
stephentoub pushed a commit that referenced this pull request Jul 15, 2019
…rvices (#25214)

* Address nullable feedback for System.Threading.Overlapped

* Address nullable feedback for System.Memory

* Address nullable for System.Runtime.InteropServices

* Update xml comments and make CultureInfo nullable to match String.ToLower/Upper feedback

* PR feedback: revert accepting null comparer in BinarySearch

* Disable test that needs to be updated in corefx

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…alue (dotnet/corefx#25214)

* Remove check for ExprMemberGroup being used as a lvalue.

ExprMemberGroups only exist within ExprCall objects and can never be
passed as operands, so this is unreachable. (Unlike in static
compilation where it would be the result of someone trying e.g.
obj.ToString = 3).

Entails removal of ERR_AssgReadonlyLocalCause, contributes to dotnet/corefx#22470

* Remove ErrArgIds class

Only place it was instantiated has now been removed.

Clean-up all unused ErrArgKind as well as Ids that this makes unused.


Commit migrated from dotnet/corefx@fff6031
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants