27 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)
CSharpSemanticFacts.cs (1)
225
var method = deconstruction.
Method
;
CSharpTypeStyleHelper.cs (1)
136
return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.Nested.IsEmpty || deconstructionInfoOpt.Value.
Method
!= null;
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)
CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (1)
95
if (info.
Method
!= null || !info.Nested.IsEmpty)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
CSharpSemanticFacts.cs (1)
225
var method = deconstruction.
Method
;
CSharpTypeStyleHelper.cs (1)
136
return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.Nested.IsEmpty || deconstructionInfoOpt.Value.
Method
!= null;