4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1139builder.GetEnumeratorInfo = BindDefaultArguments( 1189builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics); 1329builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics); 1367builder.GetEnumeratorInfo = getEnumeratorInfo;
28 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (28)
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 (24)
234MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo?.Method; 585builder.GetEnumeratorInfo.Method.IsExtensionMethod || 586builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember())) || 877Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod || builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember()); 924Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod || builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember()); 1033Debug.Assert((object)builder.GetEnumeratorInfo != null); 1035Debug.Assert(!(viaExtensionMethod && builder.GetEnumeratorInfo.Method.IsExtensionMethod && builder.GetEnumeratorInfo.Method.Parameters.IsDefaultOrEmpty)); 1036Debug.Assert(!(viaExtensionMethod && !builder.GetEnumeratorInfo.Method.IsExtensionMethod && !builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember())); 1042if (builder.GetEnumeratorInfo.Method.IsExtensionMethod) 1044builder.CollectionType = builder.GetEnumeratorInfo.Method.Parameters[0].Type; 1048builder.CollectionType = builder.GetEnumeratorInfo.Method.ContainingType.ExtensionParameter.Type; 1065MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method; 1194Debug.Assert((object)builder.GetEnumeratorInfo == null || 1195builder.GetEnumeratorInfo.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator); 1221TypeSymbol enumeratorType = builder.GetEnumeratorInfo.Method.ReturnType; 1333Debug.Assert((object)builder.GetEnumeratorInfo == null || 1334TypeSymbol.Equals(builder.GetEnumeratorInfo.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2)); 1347/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.GetEnumeratorInfo"/> set if the pattern in satisfied.</param> 1645Debug.Assert((object)builder.GetEnumeratorInfo.Method != null); 1647MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method;