Widen RefKindVector to hold RefReadonlyParameter#69034
Widen RefKindVector to hold RefReadonlyParameter#69034jjonescz merged 4 commits intodotnet:features/RefReadonlyfrom
RefKindVector to hold RefReadonlyParameter#69034Conversation
1d5ccce to
a257170
Compare
a257170 to
79e0e84
Compare
| } | ||
| } | ||
|
|
||
| // PROTOTYPE: RefKindVector does not support RefReadOnlyParameter. |
Do we need to worry about change in interpretation across compiler versions? Is there a scenario when an old compiler has to parse a name generated by new compiler and vise versa? In reply to: 1638050803 Refers to: src/Compilers/CSharp/Portable/Symbols/Synthesized/RefKindVector.cs:109 in 79e0e84. [](commit_id = 79e0e84, deletion_comment = False) |
It looks like we should never get here with In reply to: 1638065309 Refers to: src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LoweredDynamicOperationFactory.cs:806 in 79e0e84. [](commit_id = 79e0e84, deletion_comment = False) |
|
Done with review pass (commit 1) |
I don't think so. The only usage I found is in anonymous type manager which parses names from the current module being built. In reply to: 1638050803 Refers to: src/Compilers/CSharp/Portable/Symbols/Synthesized/RefKindVector.cs:109 in 79e0e84. [](commit_id = 79e0e84, deletion_comment = False) |
I am not sure if this is the case. It enumerates In reply to: 1638088633 Refers to: src/Compilers/CSharp/Portable/Symbols/Synthesized/RefKindVector.cs:109 in 79e0e84. [](commit_id = 79e0e84, deletion_comment = False) |
Yes, but that's used during Edit & Continue, which I hope cannot span across different compiler versions. But if we don't want to change In reply to: 1638269099 Refers to: src/Compilers/CSharp/Portable/Symbols/Synthesized/RefKindVector.cs:109 in 79e0e84. [](commit_id = 79e0e84, deletion_comment = False) |
| } | ||
| catch (Microsoft.CSharp.RuntimeBinder.RuntimeBinderException) | ||
| { | ||
| System.Console.Write("exception"); |
There was a problem hiding this comment.
nit: in the future, consider adding spaces at the end of such strings (that are meant to be concatenated into the output), I was looking for "exception2" in the source and couldn't find it, haha
Follow up on #68179 (comment).
Test plan: #68056