4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1110builder.GetEnumeratorInfo = BindDefaultArguments( 1160builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics); 1300builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics); 1338builder.GetEnumeratorInfo = getEnumeratorInfo;
20 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (20)
Binder\ForEachEnumeratorInfo.cs (4)
120Debug.Assert(GetEnumeratorInfo != null, $"'{nameof(GetEnumeratorInfo)}' cannot be null"); 130GetEnumeratorInfo, 143=> GetEnumeratorInfo is null || MoveNextInfo is null || CurrentPropertyGetter is null;
Binder\ForEachLoopBinder.cs (16)
234MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo?.Method; 571builder.GetEnumeratorInfo.Method.IsExtensionMethod)) || 862Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod); 909Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod); 1018Debug.Assert((object)builder.GetEnumeratorInfo != null); 1020Debug.Assert(!(viaExtensionMethod && builder.GetEnumeratorInfo.Method.Parameters.IsDefaultOrEmpty)); 1024? builder.GetEnumeratorInfo.Method.Parameters[0].Type 1036MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method; 1165Debug.Assert((object)builder.GetEnumeratorInfo == null || 1166builder.GetEnumeratorInfo.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator); 1192TypeSymbol enumeratorType = builder.GetEnumeratorInfo.Method.ReturnType; 1304Debug.Assert((object)builder.GetEnumeratorInfo == null || 1305TypeSymbol.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> 1594Debug.Assert((object)builder.GetEnumeratorInfo.Method != null); 1596MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method;