4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1138
builder.
GetEnumeratorInfo
= BindDefaultArguments(
1188
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics);
1325
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics);
1363
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())) ||
890
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember());
937
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember());
1037
Debug.Assert((object)builder.
GetEnumeratorInfo
!= null);
1039
Debug.Assert(!(viaExtensionMethod && builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && builder.
GetEnumeratorInfo
.Method.Parameters.IsDefaultOrEmpty));
1040
Debug.Assert(!(viaExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember()));
1046
if (builder.
GetEnumeratorInfo
.Method.IsExtensionMethod)
1048
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.Parameters[0].Type;
1052
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.ContainingType.ExtensionParameter.Type;
1069
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;
1193
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1194
builder.
GetEnumeratorInfo
.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator);
1209
TypeSymbol enumeratorType = builder.
GetEnumeratorInfo
.Method.ReturnType;
1329
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1330
TypeSymbol.Equals(builder.
GetEnumeratorInfo
.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2));
1343
/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.
GetEnumeratorInfo
"/> set if the pattern in satisfied.</param>
1648
Debug.Assert((object)builder.
GetEnumeratorInfo
.Method != null);
1650
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;