115 references to GetPrimaryConstructor
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.cs (2)
16701
Edit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("R")),
16795
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)
3477
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)
3498
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)
3539
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), syntaxMap[0]),
3738
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3761
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3791
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3814
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
3840
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3880
expectedEdits.Add(SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3910
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType : "C", preserveLocalVariables: true),
3934
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3960
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4065
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4099
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4119
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4141
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4226
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
4252
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
4274
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
4299
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
4322
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4348
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13109
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13129
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13190
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13210
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13250
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13251
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
13268
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13274
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"), partialType: "C")
13300
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13301
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13365
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13366
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13393
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13394
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13433
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13434
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13460
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13461
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13485
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13486
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13508
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13509
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13532
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13533
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13555
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13556
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13580
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13581
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13604
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13605
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13629
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13630
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13654
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13655
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13679
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13680
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13713
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13714
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
13788
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13789
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
13808
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13809
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13852
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13853
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13947
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13948
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13969
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13970
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13992
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13993
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14015
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14016
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14038
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14039
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14059
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14060
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14094
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14095
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
14182
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14183
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14221
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14222
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
14237
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14238
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14427
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
14453
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
14618
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true),
14634
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14708
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14721
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14773
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14815
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14877
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
15147
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
15164
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
15186
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
15555
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15596
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15617
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15747
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15931
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
15955
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
17042
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
21897
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
208
var primaryConstructor = compilation.
GetPrimaryConstructor
(qualifiedTypeName);