1 write to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (1)
Binder\ForEachEnumeratorInfo.cs (1)
82
this.
GetEnumeratorInfo
= getEnumeratorInfo;
14 references to GetEnumeratorInfo
Microsoft.CodeAnalysis.CSharp (14)
Binder\RefSafetyAnalysis.cs (1)
1055
resultType: node.EnumeratorInfoOpt.
GetEnumeratorInfo
.Method.ContainingType,
Compilation\MemberSemanticModel.cs (1)
988
enumeratorInfoOpt.
GetEnumeratorInfo
.Method.GetPublicSymbol(),
FlowAnalysis\NullableWalker.cs (4)
6682
if (node is BoundForEachStatement { EnumeratorInfoOpt: {
GetEnumeratorInfo
: { Method: { TypeArgumentsWithAnnotations: { IsEmpty: false } } } } })
10900
if (enumeratorInfoOpt?.
GetEnumeratorInfo
is { Method: { IsExtensionMethod: true, Parameters: var parameters } } enumeratorMethodInfo)
10967
bool reportedDiagnostic = enumeratorInfoOpt?.
GetEnumeratorInfo
.Method is { IsExtensionMethod: true }
11011
reinferredGetEnumeratorMethod = (MethodSymbol)AsMemberOfType(getEnumeratorType, enumeratorInfoOpt.
GetEnumeratorInfo
.Method);
FlowAnalysis\NullableWalker.DebugVerifier.cs (2)
234
if (enumeratorInfo.
GetEnumeratorInfo
.Method.IsExtensionMethod)
236
foreach (var arg in enumeratorInfo.
GetEnumeratorInfo
.Arguments)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
178
if (!ShouldUseAddRangeOrToListMethod(singleSpread.Expression.Type, toListOfElementType.Parameters[0].Type, singleSpread.EnumeratorInfoOpt?.
GetEnumeratorInfo
.Method))
1138
if (!ShouldUseAddRangeOrToListMethod(rewrittenSpreadOperand.Type, addRangeMethod.Parameters[0].Type, spreadElement.EnumeratorInfoOpt?.
GetEnumeratorInfo
.Method))
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
153
MethodArgumentInfo getEnumeratorInfo = enumeratorInfo.
GetEnumeratorInfo
;
Operations\CSharpOperationFactory.cs (3)
1902
enumeratorInfoOpt.
GetEnumeratorInfo
.Method.GetPublicSymbol(),
1911
HasImplicitConversionToOrImplementsVarianceCompatibleInterface(enumeratorInfoOpt.
GetEnumeratorInfo
.Method.ReturnType,
1919
getEnumeratorArguments: createArgumentOperations(enumeratorInfoOpt.
GetEnumeratorInfo
),