115 references to GetPrimaryConstructor
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.cs (2)
16238
Edit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("R")),
16329
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),
13052
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13072
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13133
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13153
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
13193
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13194
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
13211
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13217
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"), partialType: "C")
13243
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13244
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13308
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13309
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13336
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13337
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13376
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13377
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13403
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13404
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13428
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13429
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13451
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13452
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13475
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13476
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13498
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13499
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13523
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13524
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13547
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13548
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13572
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13573
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13597
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13598
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13622
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13623
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13656
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13657
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
13731
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13732
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
13751
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13752
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13795
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13796
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13890
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13891
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13912
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13913
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13935
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13936
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13958
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13959
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
13981
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
13982
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14002
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14003
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14037
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14038
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
14125
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14126
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14164
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14165
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C"))
14180
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
14181
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
14370
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
14396
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true)
14561
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), partialType: "C", preserveLocalVariables: true),
14577
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14651
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14664
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14716
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14758
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
14820
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
15090
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
15107
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
15129
SemanticEdit(SemanticEditKind.Insert, c => c.
GetPrimaryConstructor
("C")),
15498
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15539
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15560
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15690
SemanticEdit(SemanticEditKind.Delete, c => c.
GetPrimaryConstructor
("C"), deletedSymbolContainerProvider: c => c.GetMember("C")),
15874
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
15898
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
16900
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true));
21701
SemanticEdit(SemanticEditKind.Update, c => c.
GetPrimaryConstructor
("C"), preserveLocalVariables: true),
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
208
var primaryConstructor = compilation.
GetPrimaryConstructor
(qualifiedTypeName);