1 write to GetEnumeratorMethod
Microsoft.CodeAnalysis.CSharp (1)
Compilation\ForEachStatementInfo.cs (1)
75
this.
GetEnumeratorMethod
= getEnumeratorMethod;
52 references to GetEnumeratorMethod
Microsoft.CodeAnalysis.CSharp (3)
Compilation\ForEachStatementInfo.cs (3)
92
&& object.Equals(this.
GetEnumeratorMethod
, other.
GetEnumeratorMethod
)
104
Hash.Combine(
GetEnumeratorMethod
,
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
175
info.
GetEnumeratorMethod
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
893
getEnumeratorMethod = info.
GetEnumeratorMethod
;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenAwaitForeachTests.cs (14)
940
Assert.Equal("C.Enumerator C.GetAsyncEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
1664
Assert.Equal("C.Enumerator C.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.
GetEnumeratorMethod
.ToTestDisplayString());
3719
info.
GetEnumeratorMethod
.ToTestDisplayString());
4466
info.
GetEnumeratorMethod
.ToTestDisplayString());
4540
info.
GetEnumeratorMethod
.ToTestDisplayString());
4650
info.
GetEnumeratorMethod
.ToTestDisplayString());
4749
info.
GetEnumeratorMethod
.ToTestDisplayString());
5053
info.
GetEnumeratorMethod
.ToTestDisplayString());
5134
info.
GetEnumeratorMethod
.ToTestDisplayString());
6442
Assert.Equal("C.Enumerator Extensions.GetAsyncEnumerator(this C self)", info.
GetEnumeratorMethod
.ToTestDisplayString());
9112
info.
GetEnumeratorMethod
.ToTestDisplayString());
9188
info.
GetEnumeratorMethod
.ToTestDisplayString());
9266
info.
GetEnumeratorMethod
.ToTestDisplayString());
9398
info.
GetEnumeratorMethod
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
RefStructInterfacesTests.cs (21)
7579
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
7769
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> S.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
7989
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
8179
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
8372
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> IMyEnumerable<System.Int32>.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
8447
Assert.Null(info.
GetEnumeratorMethod
);
8651
AssertEx.Equal("System.Collections.Generic.IEnumerator<System.Int32> System.Collections.Generic.IEnumerable<System.Int32>.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
14262
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.
GetEnumeratorMethod
.ToTestDisplayString());
14603
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> S.GetAsyncEnumerator([System.Threading.CancellationToken token = default(System.Threading.CancellationToken)])", info.
GetEnumeratorMethod
.ToTestDisplayString());
14970
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.
GetEnumeratorMethod
.ToTestDisplayString());
15313
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.
GetEnumeratorMethod
.ToTestDisplayString());
15661
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> IMyAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.
GetEnumeratorMethod
.ToTestDisplayString());
15738
Assert.Null(info.
GetEnumeratorMethod
);
16099
AssertEx.Equal("System.Collections.Generic.IAsyncEnumerator<System.Int32> System.Collections.Generic.IAsyncEnumerable<System.Int32>.GetAsyncEnumerator([System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)])", info.
GetEnumeratorMethod
.ToTestDisplayString());
17766
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
17963
AssertEx.Equal("System.Collections.IEnumerator S.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
18187
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
18383
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
18584
AssertEx.Equal("System.Collections.IEnumerator IMyEnumerable.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
18658
Assert.Null(info.
GetEnumeratorMethod
);
18868
AssertEx.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
Semantics\InlineArrayTests.cs (3)
18596
Assert.Equal("System.Span<System.Int32>.Enumerator System.Span<System.Int32>.GetEnumerator()", forEachInfo.
GetEnumeratorMethod
.ToTestDisplayString());
18922
Assert.Equal("System.ReadOnlySpan<System.Int32>.Enumerator System.ReadOnlySpan<System.Int32>.GetEnumerator()", forEachInfo.
GetEnumeratorMethod
.ToTestDisplayString());
19259
Assert.Equal("System.ReadOnlySpan<System.Int32>.Enumerator System.ReadOnlySpan<System.Int32>.GetEnumerator()", forEachInfo.
GetEnumeratorMethod
.ToTestDisplayString());
Semantics\OutVarTests.cs (1)
35653
info.
GetEnumeratorMethod
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\ForEachTests.cs (5)
2133
Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator).GetPublicSymbol(), loopInfo.
GetEnumeratorMethod
);
2185
Assert.Equal<ISymbol>(comp.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator).GetPublicSymbol(), loopInfo0.
GetEnumeratorMethod
);
2194
Assert.Equal(loopInfo0.
GetEnumeratorMethod
, loopInfo1.
GetEnumeratorMethod
);
3276
Assert.Equal(enumeratorInfo.GetEnumeratorInfo.Method.GetPublicSymbol(), statementInfo.
GetEnumeratorMethod
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2001
Assert.Equal("System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()", info.
GetEnumeratorMethod
.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
175
info.
GetEnumeratorMethod
,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
893
getEnumeratorMethod = info.
GetEnumeratorMethod
;