1 write to GetEnumeratorMethod
Microsoft.CodeAnalysis (1)
Operations\Loops\ForEachLoopOperationInfo.cs (1)
64
GetEnumeratorMethod
= getEnumeratorMethod;
23 references to GetEnumeratorMethod
Microsoft.CodeAnalysis (5)
Operations\ControlFlowGraphBuilder.cs (5)
4575
if (info?.
GetEnumeratorMethod
!= null)
4577
IOperation? collection = info.
GetEnumeratorMethod
.IsStatic ? null : Visit(operation.Collection);
4590
collection = applyConversion(inlineArrayConversion, collection, info.
GetEnumeratorMethod
.ContainingType);
4594
info.
GetEnumeratorMethod
,
4601
result = new FlowCaptureReferenceOperation(enumeratorCaptureId, operation.Collection.Syntax, info.
GetEnumeratorMethod
.ReturnType, constantValue: null);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (18)
RefStructInterfacesTests.cs (18)
7585
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
7775
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
7995
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
8185
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
8378
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
8657
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
14666
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
15007
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
15374
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
15717
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
16065
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
16503
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18170
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18367
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18591
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18787
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18988
AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
19272
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());