4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1132
builder.
GetEnumeratorInfo
= BindDefaultArguments(
1182
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics);
1314
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics);
1352
builder.
GetEnumeratorInfo
= getEnumeratorInfo;
29 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (29)
Binder\ForEachEnumeratorInfo.cs (5)
129
Debug.Assert(
GetEnumeratorInfo
!= null, $"'{nameof(
GetEnumeratorInfo
)}' cannot be null");
139
GetEnumeratorInfo
,
153
=>
GetEnumeratorInfo
is null || MoveNextInfo is null || CurrentPropertyGetter is null;
157
var getEnumeratorMethod = this.
GetEnumeratorInfo
?.Method;
Binder\ForEachLoopBinder.cs (24)
234
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
?.Method;
591
builder.
GetEnumeratorInfo
.Method.IsExtensionMethod ||
592
builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember())) ||
884
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember());
931
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember());
1031
Debug.Assert((object)builder.
GetEnumeratorInfo
!= null);
1033
Debug.Assert(!(viaExtensionMethod && builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && builder.
GetEnumeratorInfo
.Method.Parameters.IsDefaultOrEmpty));
1034
Debug.Assert(!(viaExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember()));
1040
if (builder.
GetEnumeratorInfo
.Method.IsExtensionMethod)
1042
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.Parameters[0].Type;
1046
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.ContainingType.ExtensionParameter.Type;
1063
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;
1187
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1188
builder.
GetEnumeratorInfo
.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator);
1203
TypeSymbol enumeratorType = builder.
GetEnumeratorInfo
.Method.ReturnType;
1318
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1319
TypeSymbol.Equals(builder.
GetEnumeratorInfo
.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2));
1332
/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.
GetEnumeratorInfo
"/> set if the pattern in satisfied.</param>
1636
Debug.Assert((object)builder.
GetEnumeratorInfo
.Method != null);
1638
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;