4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1128builder.GetEnumeratorInfo = BindDefaultArguments( 1178builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics); 1310builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics); 1348builder.GetEnumeratorInfo = getEnumeratorInfo;
28 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (28)
Binder\ForEachEnumeratorInfo.cs (4)
129Debug.Assert(GetEnumeratorInfo != null, $"'{nameof(GetEnumeratorInfo)}' cannot be null"); 139GetEnumeratorInfo, 153=> GetEnumeratorInfo is null || MoveNextInfo is null || CurrentPropertyGetter is null;
Binder\ForEachLoopBinder.cs (24)
234MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo?.Method; 589builder.GetEnumeratorInfo.Method.IsExtensionMethod || 590builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember())) || 880Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod || builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember()); 927Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod || builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember()); 1027Debug.Assert((object)builder.GetEnumeratorInfo != null); 1029Debug.Assert(!(viaExtensionMethod && builder.GetEnumeratorInfo.Method.IsExtensionMethod && builder.GetEnumeratorInfo.Method.Parameters.IsDefaultOrEmpty)); 1030Debug.Assert(!(viaExtensionMethod && !builder.GetEnumeratorInfo.Method.IsExtensionMethod && !builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember())); 1036if (builder.GetEnumeratorInfo.Method.IsExtensionMethod) 1038builder.CollectionType = builder.GetEnumeratorInfo.Method.Parameters[0].Type; 1042builder.CollectionType = builder.GetEnumeratorInfo.Method.ContainingType.ExtensionParameter.Type; 1059MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method; 1183Debug.Assert((object)builder.GetEnumeratorInfo == null || 1184builder.GetEnumeratorInfo.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator); 1199TypeSymbol enumeratorType = builder.GetEnumeratorInfo.Method.ReturnType; 1314Debug.Assert((object)builder.GetEnumeratorInfo == null || 1315TypeSymbol.Equals(builder.GetEnumeratorInfo.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2)); 1328/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.GetEnumeratorInfo"/> set if the pattern in satisfied.</param> 1631Debug.Assert((object)builder.GetEnumeratorInfo.Method != null); 1633MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method;