48 references to Method
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.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
223
var method = deconstruction.
Method
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
137
return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.Nested.IsEmpty || deconstructionInfoOpt.Value.
Method
!= null;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
95
if (info.
Method
!= null || !info.Nested.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (18)
CodeGen\CodeGenDeconstructTests.cs (18)
261
Assert.Equal(firstDeconstructMethod.GetPublicSymbol(), deconstructionInfo.
Method
);
264
deconstructionInfo.
Method
.ToTestDisplayString());
270
Assert.Null(nested[0].
Method
);
274
Assert.Null(nested[1].
Method
);
281
Assert.Null(defaultInfo.
Method
);
315
Assert.Null(deconstructionInfo.
Method
);
1114
Assert.Null(deconstructionInfo.
Method
);
1120
Assert.Null(nested[0].
Method
);
1124
Assert.Null(nested[1].
Method
);
2294
deconstructionInfo.
Method
.ToTestDisplayString());
2300
Assert.Null(nested[0].
Method
);
2307
nested[1].
Method
.ToTestDisplayString());
2313
Assert.Null(nested2[0].
Method
);
2317
Assert.Null(nested2[1].
Method
);
4045
Assert.Null(deconstructionInfo.
Method
);
4051
Assert.Null(nested[0].
Method
);
4055
Assert.Null(nested[1].
Method
);
9013
Assert.Null(info.
Method
);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
95
if (info.
Method
!= null || !info.Nested.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\DynamicTests.cs (20)
10042
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10170
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10298
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10452
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsIdentity: true }, Nested: [] }, _] });
10586
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: not null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsBoxing: true }, Nested: [] }, _] });
10734
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: not null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsBoxing: true }, Nested: [] }, _] });
11004
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: not null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsBoxing: true }, Nested: [] }, _] });
11127
Assert.True(model.GetDeconstructionInfo(assignment) is {
Method
: null, Conversion: null, Nested: [{
Method
: null, Conversion: null, Nested: [{
Method
: null, Conversion: { IsIdentity: true }, Nested: [] }, _] }, _] });
11211
Assert.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)
223
var method = deconstruction.
Method
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
137
return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.Nested.IsEmpty || deconstructionInfoOpt.Value.
Method
!= null;