4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1130
builder.
GetEnumeratorInfo
= BindDefaultArguments(
1180
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics);
1312
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics);
1350
builder.
GetEnumeratorInfo
= getEnumeratorInfo;
28 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (28)
Binder\ForEachEnumeratorInfo.cs (4)
129
Debug.Assert(
GetEnumeratorInfo
!= null, $"'{nameof(
GetEnumeratorInfo
)}' cannot be null");
139
GetEnumeratorInfo
,
153
=>
GetEnumeratorInfo
is null || MoveNextInfo is null || CurrentPropertyGetter is null;
Binder\ForEachLoopBinder.cs (24)
234
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
?.Method;
589
builder.
GetEnumeratorInfo
.Method.IsExtensionMethod ||
590
builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember())) ||
882
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember());
929
Debug.Assert(!builder.ViaExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionMethod || builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember());
1029
Debug.Assert((object)builder.
GetEnumeratorInfo
!= null);
1031
Debug.Assert(!(viaExtensionMethod && builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && builder.
GetEnumeratorInfo
.Method.Parameters.IsDefaultOrEmpty));
1032
Debug.Assert(!(viaExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember()));
1038
if (builder.
GetEnumeratorInfo
.Method.IsExtensionMethod)
1040
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.Parameters[0].Type;
1044
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.ContainingType.ExtensionParameter.Type;
1061
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;
1185
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1186
builder.
GetEnumeratorInfo
.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator);
1201
TypeSymbol enumeratorType = builder.
GetEnumeratorInfo
.Method.ReturnType;
1316
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1317
TypeSymbol.Equals(builder.
GetEnumeratorInfo
.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2));
1330
/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.
GetEnumeratorInfo
"/> set if the pattern in satisfied.</param>
1634
Debug.Assert((object)builder.
GetEnumeratorInfo
.Method != null);
1636
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;