47 references to Nested
Microsoft.CodeAnalysis.CSharp (2)
Compilation\DeconstructionInfo.cs (2)
22
/// The top-level node has a <see cref="Method"/> (Deconstructable1.Deconstruct), no <see cref="Conversion"/>, but has two <see cref="
Nested
"/> nodes.
24
/// Its second nested node has a <see cref="Method"/> (Deconstructable2.Deconstruct), no <see cref="Conversion"/>, and two <see cref="
Nested
"/> nodes.
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
230
foreach (var nested in deconstruction.
Nested
)
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 (17)
CodeGen\CodeGenDeconstructTests.cs (17)
267
var nested = deconstructionInfo.
Nested
;
272
Assert.Empty(nested[0].
Nested
);
276
Assert.Empty(nested[1].
Nested
);
282
Assert.Empty(defaultInfo.
Nested
);
316
Assert.Empty(deconstructionInfo.
Nested
);
1117
var nested = deconstructionInfo.
Nested
;
1122
Assert.Empty(nested[0].
Nested
);
1126
Assert.Empty(nested[1].
Nested
);
2297
var nested = deconstructionInfo.
Nested
;
2302
Assert.Empty(nested[0].
Nested
);
2310
var nested2 = nested[1].
Nested
;
2315
Assert.Empty(nested2[0].
Nested
);
2319
Assert.Empty(nested2[1].
Nested
);
4048
var nested = deconstructionInfo.
Nested
;
4053
Assert.Empty(nested[0].
Nested
);
4057
Assert.Empty(nested[1].
Nested
);
9014
Assert.Empty(info.
Nested
);
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 (22)
Semantics\DeconstructionTests.cs (2)
6556
var nestedConversions = deconstructionInfo.
Nested
;
6558
Assert.All(nestedConversions, n => Assert.Empty(n.
Nested
));
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)
230
foreach (var nested in deconstruction.
Nested
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
137
return !deconstructionInfoOpt.HasValue || !deconstructionInfoOpt.Value.
Nested
.IsEmpty || deconstructionInfoOpt.Value.Method != null;