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

Remove two checks for EXPRFLAG values in Microsoft.CSharp that are never set#22533

Merged
VSadov merged 2 commits into
dotnet:masterfrom
JonHanna:ms_cs_never_set_exprflag
Jul 27, 2017
Merged

Remove two checks for EXPRFLAG values in Microsoft.CSharp that are never set#22533
VSadov merged 2 commits into
dotnet:masterfrom
JonHanna:ms_cs_never_set_exprflag

Conversation

@JonHanna
Copy link
Copy Markdown
Contributor

  • Remove checks for implicit this.

We never have an implicit this within a dynamic expression (if an argument to an expression with implicit this has a dynamic argument, then the static binder has already selected the correct object or type argument), so don't check for it when checking static-ness (stasis? 😉) is correct

  • Remove check for literal constant.

Literal status is never set (and rather meaningless after static compilation), so remove branch depending on it.

Entails removal of ERR_LiteralDoubleCast, contributes to #22470

We never have an implicit this within a dynamic expression (if an
argument to an expression with implicit this has a dynamic argument,
then the static binder has already selected the correct object or types
argument), so don't check for it when checking static-ness is correct
Literal status is never set (and rather meaningless after static
compilation), so remove branch depending on it.

Entails removal of ERR_LiteralDoubleCast, contributes to #22470
Copy link
Copy Markdown
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 2511abe into dotnet:master Jul 27, 2017
@JonHanna JonHanna deleted the ms_cs_never_set_exprflag branch July 27, 2017 19:54
@karelz karelz modified the milestone: 2.1.0 Aug 14, 2017
Dotnet-GitSync-Bot pushed a commit to Dotnet-GitSync-Bot/corefx that referenced this pull request Feb 12, 2019
* Renaming RuntimeEventSource to NativeRuntimeEventSource

* missed a couple of comments and XPlatEventLogger

* rename DotNETRuntimeEventSource.cs to NativeRuntimeEventSource.cs

* use condition= instead of ifdef

* removing ifdef from NativeRuntimeEventSource.cs

* Fix case for 'eventing' directory in csproj

* Fix unix builds

* This should fix unix build...

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
stephentoub pushed a commit that referenced this pull request Feb 13, 2019
* Renaming RuntimeEventSource to NativeRuntimeEventSource

* missed a couple of comments and XPlatEventLogger

* rename DotNETRuntimeEventSource.cs to NativeRuntimeEventSource.cs

* use condition= instead of ifdef

* removing ifdef from NativeRuntimeEventSource.cs

* Fix case for 'eventing' directory in csproj

* Fix unix builds

* This should fix unix build...

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

* Remove checks for implicit this.

We never have an implicit this within a dynamic expression (if an
argument to an expression with implicit this has a dynamic argument,
then the static binder has already selected the correct object or types
argument), so don't check for it when checking static-ness is correct

* Remove check for literal constant.

Literal status is never set (and rather meaningless after static
compilation), so remove branch depending on it.

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


Commit migrated from dotnet/corefx@2511abe
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