33 references to GetDeconstructionInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
203FlattenDeconstructionMethods(semanticModel.GetDeconstructionInfo(assignment), ref builder.AsRef());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
126deconstructionInfoOpt = semanticModel.GetDeconstructionInfo(assignmentExpression);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
67info = model.GetDeconstructionInfo(assignment);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
CodeGen\CodeGenDeconstructTests.cs (5)
257var deconstructionInfo = model.GetDeconstructionInfo(deconstruction); 280var defaultInfo = model.GetDeconstructionInfo(assignment); 1112var deconstructionInfo = model.GetDeconstructionInfo(deconstruction); 2289var deconstructionInfo = model.GetDeconstructionInfo(deconstruction); 9012var info = model.GetDeconstructionInfo(node);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Semantics\ExtensionTests.cs (10)
25538model.GetDeconstructionInfo(deconstruction).Method.ToTestDisplayString()); 25656model.GetDeconstructionInfo(deconstruction).Method.ToTestDisplayString()); 25691model.GetDeconstructionInfo(deconstruction).Method.ToTestDisplayString()); 25748Assert.Null(model.GetDeconstructionInfo(deconstruction).Method); 25787Assert.Null(model.GetDeconstructionInfo(deconstruction).Method); 25838model.GetDeconstructionInfo(deconstruction).Method.ToTestDisplayString()); 46520model.GetDeconstructionInfo(assignment1).Method.ToTestDisplayString(includeNonNullable: true)); 46525model.GetDeconstructionInfo(assignment2).Method.ToTestDisplayString(includeNonNullable: true)); 46530model.GetDeconstructionInfo(assignment3).Method.ToTestDisplayString(includeNonNullable: true)); 46563model.GetDeconstructionInfo(assignment1).Method.ToTestDisplayString(includeNonNullable: true));
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
67info = model.GetDeconstructionInfo(assignment);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\DeconstructionTests.cs (1)
6555var deconstructionInfo = model.GetDeconstructionInfo(assignment);
Semantics\DynamicTests.cs (9)
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: [] }, _] }, _] });
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
203FlattenDeconstructionMethods(semanticModel.GetDeconstructionInfo(assignment), ref builder.AsRef());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
126deconstructionInfoOpt = semanticModel.GetDeconstructionInfo(assignmentExpression);
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
203FlattenDeconstructionMethods(semanticModel.GetDeconstructionInfo(assignment), ref builder.AsRef());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
126deconstructionInfoOpt = semanticModel.GetDeconstructionInfo(assignmentExpression);