4 writes to CurrentPropertyGetter
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1139
builder.
CurrentPropertyGetter
= currentPropertyGetter.AsMember((NamedTypeSymbol)enumeratorType);
1161
builder.
CurrentPropertyGetter
= (MethodSymbol)GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__get_Current, diagnostics, errorLocationSyntax);
1301
builder.
CurrentPropertyGetter
= (MethodSymbol)GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__get_Current, diagnostics, syntax);
1673
builder.
CurrentPropertyGetter
= currentPropertyGetterCandidate;
11 references to CurrentPropertyGetter
Microsoft.CodeAnalysis.CSharp (11)
Binder\ForEachEnumeratorInfo.cs (3)
123
Debug.Assert(
CurrentPropertyGetter
!= null);
131
CurrentPropertyGetter
,
143
=> GetEnumeratorInfo is null || MoveNextInfo is null ||
CurrentPropertyGetter
is null;
Binder\ForEachLoopBinder.cs (8)
352
builder.
CurrentPropertyGetter
,
462
ReportDiagnosticsIfObsolete(diagnostics, builder.
CurrentPropertyGetter
, foreachKeyword, hasBaseReceiver: false);
463
ReportDiagnosticsIfObsolete(diagnostics, builder.
CurrentPropertyGetter
.AssociatedSymbol, foreachKeyword, hasBaseReceiver: false);
524
Conversion currentConversionClassification = this.Conversions.ClassifyConversionFromType(builder.
CurrentPropertyGetter
.ReturnType, builder.ElementType, isChecked: CheckOverflowAtRuntime, ref useSiteInfo);
556
builder.CurrentPlaceholder = new BoundValuePlaceholder(_syntax, builder.
CurrentPropertyGetter
.ReturnType).MakeCompilerGenerated();
866
builder.
CurrentPropertyGetter
?.RefKind == (wellKnownSpan == WellKnownType.System_ReadOnlySpan_T ? RefKind.RefReadOnly : RefKind.Ref)) ||
1029
builder.ElementTypeWithAnnotations = ((PropertySymbol)builder.
CurrentPropertyGetter
.AssociatedSymbol).TypeWithAnnotations;
1163
builder.ElementTypeWithAnnotations = builder.
CurrentPropertyGetter
?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax));