4 writes to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (4)
Binder\ForEachLoopBinder.cs (4)
1135builder.GetEnumeratorInfo = BindDefaultArguments( 1185builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, errorLocationSyntax, diagnostics); 1325builder.GetEnumeratorInfo = GetParameterlessSpecialTypeMemberInfo(SpecialMember.System_Collections_IEnumerable__GetEnumerator, syntax, diagnostics); 1363builder.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; 581builder.GetEnumeratorInfo.Method.IsExtensionMethod || 582builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember())) || 873Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod || builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember()); 920Debug.Assert(!builder.ViaExtensionMethod || builder.GetEnumeratorInfo.Method.IsExtensionMethod || builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember()); 1029Debug.Assert((object)builder.GetEnumeratorInfo != null); 1031Debug.Assert(!(viaExtensionMethod && builder.GetEnumeratorInfo.Method.IsExtensionMethod && builder.GetEnumeratorInfo.Method.Parameters.IsDefaultOrEmpty)); 1032Debug.Assert(!(viaExtensionMethod && !builder.GetEnumeratorInfo.Method.IsExtensionMethod && !builder.GetEnumeratorInfo.Method.GetIsNewExtensionMember())); 1038if (builder.GetEnumeratorInfo.Method.IsExtensionMethod) 1040builder.CollectionType = builder.GetEnumeratorInfo.Method.Parameters[0].Type; 1044builder.CollectionType = builder.GetEnumeratorInfo.Method.ContainingType.ExtensionParameter.Type; 1061MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method; 1190Debug.Assert((object)builder.GetEnumeratorInfo == null || 1191builder.GetEnumeratorInfo.Method.ReturnType.SpecialType == SpecialType.System_Collections_IEnumerator); 1217TypeSymbol enumeratorType = builder.GetEnumeratorInfo.Method.ReturnType; 1329Debug.Assert((object)builder.GetEnumeratorInfo == null || 1330TypeSymbol.Equals(builder.GetEnumeratorInfo.Method.ReturnType, this.Compilation.GetSpecialType(SpecialType.System_Collections_IEnumerator), TypeCompareKind.ConsiderEverything2)); 1343/// <param name="builder">Builder to fill in. <see cref="ForEachEnumeratorInfo.Builder.GetEnumeratorInfo"/> set if the pattern in satisfied.</param> 1641Debug.Assert((object)builder.GetEnumeratorInfo.Method != null); 1643MethodSymbol getEnumeratorMethod = builder.GetEnumeratorInfo.Method;