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)
3473
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)
3494
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true)
3535
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), syntaxMap[0]),
3734
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3757
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3787
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3810
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
3836
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3876
expectedEdits.Add(SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
3906
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType : "C", preserveLocalVariables: true),
3930
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
3956
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4061
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4095
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4115
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4137
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4222
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
4248
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
4270
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
4295
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
4318
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
4344
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
10954
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
10974
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11035
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11055
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
11095
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11096
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
11113
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11119
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"), partialType: "C")
11145
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11146
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11210
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11211
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11238
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11239
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11278
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11279
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11305
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11306
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11330
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11331
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11353
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11354
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11377
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11378
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11400
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11401
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11425
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11426
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11449
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11450
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11474
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11475
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11499
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11500
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11524
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11525
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11558
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11559
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
11633
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11634
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
11653
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11654
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11697
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11698
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11792
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11793
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11814
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11815
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11837
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11838
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11860
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11861
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11883
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11884
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11904
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11905
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
11939
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
11940
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
12027
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12028
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
12066
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12067
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
12082
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
12083
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
12272
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
12298
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
12463
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true),
12479
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12553
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12566
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12618
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12660
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12722
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
12992
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13009
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13031
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13400
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13441
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13462
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")),
13776
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
13800
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14802
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
19603
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
208
var primaryConstructor = compilation.
GetPrimaryConstructor
(qualifiedTypeName);