40 references to Conversion
Microsoft.CodeAnalysis.CSharp (4)
Compilation\DeconstructionInfo.cs (4)
22/// The top-level node has a <see cref="Method"/> (Deconstructable1.Deconstruct), no <see cref="Conversion"/>, but has two <see cref="Nested"/> nodes. 23/// Its first nested node has no <see cref="Method"/>, but has a <see cref="Conversion"/> (Identity). 24/// Its second nested node has a <see cref="Method"/> (Deconstructable2.Deconstruct), no <see cref="Conversion"/>, and two <see cref="Nested"/> nodes. 25/// Those last two nested nodes have no <see cref="Method"/>, but each have a <see cref="Conversion"/> (ImplicitNumeric, from int to long).
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (16)
CodeGen\CodeGenDeconstructTests.cs (16)
265Assert.Null(deconstructionInfo.Conversion); 271Assert.Equal(ConversionKind.ImplicitNumeric, nested[0].Conversion.Value.Kind); 275Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind); 283Assert.Equal(ConversionKind.UnsetConversionKind, defaultInfo.Conversion.Value.Kind); 314Assert.Equal(Conversion.UnsetConversion, deconstructionInfo.Conversion); 1115Assert.Null(deconstructionInfo.Conversion); 1121Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind); 1125Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind); 2295Assert.Null(deconstructionInfo.Conversion); 2301Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind); 2308Assert.Null(nested[1].Conversion); 2314Assert.Equal(ConversionKind.Identity, nested2[0].Conversion.Value.Kind); 2318Assert.Equal(ConversionKind.Identity, nested2[1].Conversion.Value.Kind); 4046Assert.Null(deconstructionInfo.Conversion); 4052Assert.Equal(ConversionKind.Identity, nested[0].Conversion.Value.Kind); 4056Assert.Equal(ConversionKind.Identity, nested[1].Conversion.Value.Kind);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\DynamicTests.cs (20)
10042Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] }); 10170Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] }); 10298Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] }); 10452Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] }); 10586Assert.True(model.GetDeconstructionInfo(assignment) is { Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] }); 10734Assert.True(model.GetDeconstructionInfo(assignment) is { Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] }); 11004Assert.True(model.GetDeconstructionInfo(assignment) is { Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] }); 11127Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: null, Conversion: null, Nested: [{ Method: null, Conversion: { IsIdentity: true }, Nested: [] }, _] }, _] }); 11211Assert.True(model.GetDeconstructionInfo(assignment) is { Method: null, Conversion: null, Nested: [{ Method: not null, Conversion: null, Nested: [{ Method: null, Conversion: { IsBoxing: true }, Nested: [] }, _] }, _] });