4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1144
builder.
GetEnumeratorInfo
= BindDefaultArguments(
1194
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics);
1331
builder.
GetEnumeratorInfo
= GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics);
1369
builder.
GetEnumeratorInfo
= getEnumeratorInfo;
25 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (25)
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 (20)
234
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
?.Method;
591
builder.
GetEnumeratorInfo
.Method.IsExtensionMethod ||
592
builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember())) ||
1043
Debug.Assert((object)builder.
GetEnumeratorInfo
!= null);
1045
Debug.Assert(!(viaExtensionMethod && builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && builder.
GetEnumeratorInfo
.Method.Parameters.IsDefaultOrEmpty));
1046
Debug.Assert(!(viaExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionMethod && !builder.
GetEnumeratorInfo
.Method.IsExtensionBlockMember()));
1052
if (builder.
GetEnumeratorInfo
.Method.IsExtensionMethod)
1054
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.Parameters[0].Type;
1058
builder.CollectionType = builder.
GetEnumeratorInfo
.Method.ContainingType.ExtensionParameter.Type;
1075
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;
1199
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1200
builder.
GetEnumeratorInfo
.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator);
1215
TypeSymbol enumeratorType = builder.
GetEnumeratorInfo
.Method.ReturnType;
1335
Debug.Assert((object)builder.
GetEnumeratorInfo
== null ||
1336
TypeSymbol.Equals(builder.
GetEnumeratorInfo
.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2));
1349
/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.
GetEnumeratorInfo
"/> set if the pattern in satisfied.</param>
1654
Debug.Assert((object)builder.
GetEnumeratorInfo
.Method != null);
1656
MethodSymbol getEnumeratorMethod = builder.
GetEnumeratorInfo
.Method;