1 write to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
89this.GetEnumeratorInfo = getEnumeratorInfo;
14 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (14)
Binder\RefSafetyAnalysis.cs (1)
1271resultType: node.EnumeratorInfoOpt.GetEnumeratorInfo.Method.ContainingType,
Compilation\MemberSemanticModel.cs (1)
1025enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(),
FlowAnalysis\NullableWalker.cs (3)
12403if (enumeratorInfoOpt?.GetEnumeratorInfo is { } enumeratorMethodInfo 12475bool reportedDiagnostic = enumeratorInfoOpt?.GetEnumeratorInfo.Method is { } getEnumeratorMethod 12520reinferredGetEnumeratorMethod = (MethodSymbol)AsMemberOfType(getEnumeratorType, enumeratorInfoOpt.GetEnumeratorInfo.Method);
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
246if (enumeratorInfo.GetEnumeratorInfo.Method.IsExtensionMethod) // Tracked by https://github.com/dotnet/roslyn/issues/78828: Test this code path with new extensions 248foreach (var arg in enumeratorInfo.GetEnumeratorInfo.Arguments)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
187if (!ShouldUseIEnumerableBulkAddMethod(singleSpread.Expression.Type, toListOfElementType.Parameters[0].Type, singleSpread.EnumeratorInfoOpt?.GetEnumeratorInfo.Method)) 787&& ShouldUseIEnumerableBulkAddMethod(spreadExpression.Type!, linqToArrayMethod.Parameters[0].Type, spreadElement.EnumeratorInfoOpt?.GetEnumeratorInfo.Method)) 1350if (!ShouldUseIEnumerableBulkAddMethod(rewrittenSpreadOperand.Type, addRangeMethod.Parameters[0].Type, spreadElement.EnumeratorInfoOpt?.GetEnumeratorInfo.Method))
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
157MethodArgumentInfo getEnumeratorInfo = enumeratorInfo.GetEnumeratorInfo;
Operations\CSharpOperationFactory.cs (3)
1968enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(), 1977HasImplicitConversionToOrImplementsVarianceCompatibleInterface(enumeratorInfoOpt.GetEnumeratorInfo.Method.ReturnType, 1985getEnumeratorArguments: createArgumentOperations(enumeratorInfoOpt.GetEnumeratorInfo),