1 write to CurrentConversion
Microsoft.CodeAnalysis.CSharp (1)
Compilation\ForEachStatementInfo.cs (1)
81this.CurrentConversion = currentConversion;
27 references to CurrentConversion
Microsoft.CodeAnalysis.CSharp (3)
Compilation\ForEachStatementInfo.cs (3)
98&& this.CurrentConversion == other.CurrentConversion; 110CurrentConversion.GetHashCode())))))));
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
881return ConversionsAreCompatible(originalInfo.CurrentConversion, newInfo.CurrentConversion)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenAwaitForeachTests.cs (10)
946Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 1670Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 3727Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 4475Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 4548Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 4658Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 4757Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 5061Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 5142Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind); 6448Assert.Equal(ConversionKind.Identity, info.CurrentConversion.Kind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\InlineArrayTests.cs (3)
18602Assert.True(forEachInfo.CurrentConversion.IsIdentity); 18928Assert.True(forEachInfo.CurrentConversion.IsIdentity); 19265Assert.True(forEachInfo.CurrentConversion.IsIdentity);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ForEachTests.cs (4)
2191Assert.Equal(ConversionKind.ExplicitReference, loopInfo0.CurrentConversion.Kind); 2200Assert.Equal(ConversionKind.Identity, loopInfo1.CurrentConversion.Kind); // Now identity. 3303Assert.Equal(BoundNode.GetConversion(enumeratorInfo.CurrentConversion, enumeratorInfo.CurrentPlaceholder), statementInfo.CurrentConversion); 3362Assert.Equal(Conversion.Identity, info.CurrentConversion);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\GetSemanticInfoTests.cs (3)
5991Assert.Equal(Conversion.UnsetConversion, foreachSymbolInfo.CurrentConversion); 5992Assert.True(foreachSymbolInfo.CurrentConversion.Exists); 5993Assert.False(foreachSymbolInfo.CurrentConversion.IsImplicit);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
881return ConversionsAreCompatible(originalInfo.CurrentConversion, newInfo.CurrentConversion)