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());
14268
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
14609
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
14976
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());
15319
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());
15667
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
16105
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());
17772
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
17969
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18193
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18389
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18590
AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());
18874
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", op.Info.
GetEnumeratorMethod
.ToTestDisplayString());