115 references to GetPrimaryConstructor
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.cs (2)
15920
Edit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("R")),
16011
Edit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("R"))
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (112)
EditAndContinue\LineEditTests.cs (6)
1089
semanticEdits: [SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)]);
1109
semanticEdits: [SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)]);
1132
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
1154
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)
1180
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
1206
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
EditAndContinue\TopLevelEditingTests.cs (106)
3493
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)
3514
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)
3555
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), syntaxMap[0]),
3754
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3777
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3807
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3830
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
3856
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3896
expectedEdits.Add(SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3926
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType : "C", preserveLocalVariables: true),
3950
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3976
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4081
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4115
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4135
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4157
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4242
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
4268
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
4290
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
4315
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
4338
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4364
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11062
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11082
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11143
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11163
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11203
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11204
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
11222
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11228
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"), partialType: "C")
11255
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11256
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11320
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11321
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11348
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11349
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11388
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11389
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11415
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11416
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11440
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11441
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11463
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11464
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11487
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11488
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11510
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11511
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11535
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11536
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11559
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11560
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11584
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11585
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11609
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11610
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11634
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11635
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11668
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11669
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
11743
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11744
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
11763
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11764
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11807
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11808
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11902
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11903
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11924
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11925
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11947
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11948
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11970
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11971
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11993
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11994
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
12015
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12016
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
12051
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12052
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
12139
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12140
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
12178
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12179
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
12194
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12195
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
12384
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
12410
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
12586
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true),
12603
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12677
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12690
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12742
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12784
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12846
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
13116
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13133
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13155
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13530
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13571
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13592
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13722
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13910
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
13934
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14976
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
19789
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
208
var primaryConstructor = compilation.
GetPrimaryConstructor
(qualifiedTypeName);