1 write to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
69this.GetEnumeratorInfo = getEnumeratorInfo;
48 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (11)
Compilation\MemberSemanticModel.cs (1)
979enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(),
FlowAnalysis\NullableWalker.cs (4)
6077if (node is BoundForEachStatement { EnumeratorInfoOpt: { GetEnumeratorInfo: { Method: { TypeArgumentsWithAnnotations: { IsEmpty: false } } } } }) 9998if (node.EnumeratorInfoOpt?.GetEnumeratorInfo is { Method: { IsExtensionMethod: true, Parameters: var parameters } } enumeratorMethodInfo) 10065bool reportedDiagnostic = node.EnumeratorInfoOpt?.GetEnumeratorInfo.Method is { IsExtensionMethod: true } 10094reinferredGetEnumeratorMethod ??= (MethodSymbol)AsMemberOfType(convertedResult.Type, node.EnumeratorInfoOpt.GetEnumeratorInfo.Method);
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
140if (node.EnumeratorInfoOpt.GetEnumeratorInfo.Method.IsExtensionMethod) 142foreach (var arg in node.EnumeratorInfoOpt.GetEnumeratorInfo.Arguments)
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
118MethodArgumentInfo getEnumeratorInfo = enumeratorInfo.GetEnumeratorInfo;
Operations\CSharpOperationFactory.cs (3)
1795enumeratorInfoOpt.GetEnumeratorInfo.Method.GetPublicSymbol(), 1802ClassifyImplicitConversionFromType(enumeratorInfoOpt.GetEnumeratorInfo.Method.ReturnType, 1809getEnumeratorArguments: CreateArgumentOperations(enumeratorInfoOpt.GetEnumeratorInfo, boundForEachStatement.Expression.Syntax),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\ForEachTests.cs (37)
1208Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1209Assert.Empty(info.GetEnumeratorInfo.Arguments); 1246Assert.Equal("System.CharEnumerator System.String.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1247Assert.Empty(info.GetEnumeratorInfo.Arguments); 1290Assert.Equal("Enumerator Enumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1291Assert.Empty(info.GetEnumeratorInfo.Arguments); 1334Assert.Equal("Enumerator Enumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1335Assert.Empty(info.GetEnumeratorInfo.Arguments); 1367Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1368Assert.Empty(info.GetEnumeratorInfo.Arguments); 1407Assert.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1408Assert.Empty(info.GetEnumeratorInfo.Arguments); 1449Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1450Assert.Empty(info.GetEnumeratorInfo.Arguments); 1488Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1489Assert.Empty(info.GetEnumeratorInfo.Arguments); 1521Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1522Assert.Empty(info.GetEnumeratorInfo.Arguments); 1552Assert.Equal("System.CharEnumerator System.String.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1553Assert.Empty(info.GetEnumeratorInfo.Arguments); 1638Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1639Assert.Empty(info.GetEnumeratorInfo.Arguments); 1669Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1670Assert.Empty(info.GetEnumeratorInfo.Arguments); 1702Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1703Assert.Empty(info.GetEnumeratorInfo.Arguments); 1743Assert.Equal("T Enumerable<T>.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1744Assert.Empty(info.GetEnumeratorInfo.Arguments); 1827Assert.Equal("T Enumerable<T>.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1828Assert.Empty(info.GetEnumeratorInfo.Arguments); 1874Assert.Equal("Enumerator Enumerable.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 1875Assert.Empty(info.GetEnumeratorInfo.Arguments); 3118Assert.Equal("System.CharEnumerator System.String.GetEnumerator()", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 3119Assert.Empty(info.GetEnumeratorInfo.Arguments); 3236Assert.Equal("C.Enumerator Extensions.GetEnumerator(this C self)", info.GetEnumeratorInfo.Method.ToTestDisplayString()); 3237Assert.Equal("C", info.GetEnumeratorInfo.Arguments.Single().Type.ToTestDisplayString()); 3275Assert.Equal(enumeratorInfo.GetEnumeratorInfo.Method.GetPublicSymbol(), statementInfo.GetEnumeratorMethod);