2 writes to _lazyIteratorElementType
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\LocalFunctionOrSourceMemberMethodSymbol.cs (2)
19
_lazyIteratorElementType
= TypeWithAnnotations.Boxed.Sentinel;
36
Interlocked.CompareExchange(ref
_lazyIteratorElementType
, new TypeWithAnnotations.Boxed(elementType), TypeWithAnnotations.Boxed.Sentinel);
4 references to _lazyIteratorElementType
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Source\LocalFunctionOrSourceMemberMethodSymbol.cs (4)
27
if (
_lazyIteratorElementType
== TypeWithAnnotations.Boxed.Sentinel)
38
Debug.Assert(TypeSymbol.Equals(
_lazyIteratorElementType
.Value.Type, elementType.Type, TypeCompareKind.ConsiderEverything));
41
return
_lazyIteratorElementType
?.Value ?? default;
45
internal sealed override bool IsIterator =>
_lazyIteratorElementType
is object;