Annotate bound nodes and local lowering.#42068
Conversation
|
@dotnet/roslyn-compiler May I please have a couple of reviews of this? #Resolved |
|
Looking |
| /// that it may return true when the statement actually may have no side effects. | ||
| /// </summary> | ||
| private static bool HasSideEffects(BoundStatement statement) | ||
| private static bool HasSideEffects(BoundStatement? statement) |
There was a problem hiding this comment.
Consider annotated with NotNullWhen(true) #WontFix
There was a problem hiding this comment.
I could not find any client who would benefit from that.
In reply to: 390545649 [](ancestors = 390545649)
There was a problem hiding this comment.
I could not find any client who would benefit from that.
The point is not about today's clients. Someone might benefit from this in the future, and the condition is already met by the implementation. #Resolved
|
Done review pass (commit 3) #Resolved |
…te-local-lowering
I don't know why this works in master.
|
|
||
| #nullable enable | ||
|
|
||
| using System.Diagnostics; |
There was a problem hiding this comment.
nit: unnecessary using? #Resolved
| /// that it may return true when the statement actually may have no side effects. | ||
| /// </summary> | ||
| private static bool HasSideEffects(BoundStatement statement) | ||
| private static bool HasSideEffects(BoundStatement? statement) |
There was a problem hiding this comment.
I could not find any client who would benefit from that.
The point is not about today's clients. Someone might benefit from this in the future, and the condition is already met by the implementation. #Resolved
|
@gafter waiting for response to my latest comments. #Resolved |
|
@333fred I think I've responded to your latest round of comments. |
No description provided.