Add the correct nullable annotations to generated iterator code#33986
Add the correct nullable annotations to generated iterator code#33986chsienki merged 12 commits intodotnet:masterfrom
Conversation
|
@dotnet/roslyn-compiler for review please |
There was a problem hiding this comment.
TypeSymbolWithAnnotations.Create(null) [](start = 27, length = 38)
default #Closed
There was a problem hiding this comment.
Rather that default should we add a static property with a decent name: Missing, Null, etc ...
There was a problem hiding this comment.
TypeSymbolWithAnnotations.Create(null) [](start = 25, length = 38)
default #Closed
There was a problem hiding this comment.
_iteratorElementType = value; [](start = 16, length = 29)
The assignment is not thread-safe.
_iteratorElementType should probably be a TypeSymbolWithAnnotations.Builder.
Then this property would be:
get => _iteratorElementType.ToType();
set => _iteratorElementType.InterlockedInitialize(value);
``` #Closed
There was a problem hiding this comment.
_iteratorElementType = value [](start = 16, length = 28)
The assignment is not thread-safe. #Closed
|
@dotnet/roslyn-compiler for second review please |
- Use a builder for TSWA safe construction - Use default
0bab959 to
2b3f148
Compare
|
Rebase onto master and fixed up the errors. I also renamed |
* dotnet/master: (345 commits) Update indexers based on analyzer receiver (dotnet#34134) Skip test DecimalBinaryOp_03 (dotnet#34199) Remove earlier nullable documentation (dotnet#34153) Rewrite FindReferencesTests as theories Apply a hang mitigating timeout to ExecuteCommand Warn on __refvalue null dereference: (dotnet#34135) Update dependencies from https://github.com/dotnet/arcade build 20190312.7 (dotnet#34112) Update vs branch for 16.1 Fix struct layout error when nullable enabled: (dotnet#34128) Remove IgnoreInsignificantNullableModifiersDifference (dotnet#34096) Add the correct nullable annotations to generated iterator code (dotnet#33986) Move Rename implementation to new fully loaded document API. handle encapsulate field command change the way extract method handle partial load handle orangize document Add back Go to definition method. Revert "Move Go to definition to new fully loaded document API." Revert "Move Find references implementation to new fully loaded document API." Move Find references implementation to new fully loaded document API. Track nullable state across boxing conversions (dotnet#34087) ...
This is mainly about plumbing through
TypeSymbolWithAnnotationsto the correct point so we can generate the attribute based on it's value.IteratorElementTypeas aTypeSymbolWithAnnotationsFixes #30010