4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1110
builder.
GetEnumeratorInfo
= BindDefaultArguments(
1160
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics);
1300
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics);
1338
builder.
GetEnumeratorInfo
= getEnumeratorInfo;
20 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (20)
Binder\ForEachEnumeratorInfo.cs (4)
120
Debug.Assert(
GetEnumeratorInfo
!= null, $"'{nameof(
GetEnumeratorInfo
)}' cannot be null");
130
GetEnumeratorInfo
,
143
=>
GetEnumeratorInfo
is null || MoveNextInfo is null || CurrentPropertyGetter is null;
Binder\ForEachLoopBinder.cs (16)
234
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
?.Method;
571
builder.
GetEnumeratorInfo
.Method.IsExtensionMethod)) ||
862
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod);
909
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod);
1018
Debug.Assert((object)builder.
GetEnumeratorInfo
!= null);
1020
Debug.Assert(!(viaExtensionMethod && builder.
GetEnumeratorInfo
.Method.Parameters.IsDefaultOrEmpty));
1024
? builder.
GetEnumeratorInfo
.Method.Parameters[0].Type
1036
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;
1165
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1166
builder.
GetEnumeratorInfo
.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator);
1192
TypeSymbol enumeratorType = builder.
GetEnumeratorInfo
.Method.ReturnType;
1304
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1305
TypeSymbol.Equals(builder.
GetEnumeratorInfo
.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2));
1318
/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.
GetEnumeratorInfo
"/> set if the pattern in satisfied.</param>
1594
Debug.Assert((object)builder.
GetEnumeratorInfo
.Method != null);
1596
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;