407 references to Insert
Microsoft.CodeAnalysis (3)
Emit\EditAndContinue\SymbolChanges.cs (1)
372
case SemanticEditKind.
Insert
:
Emit\SemanticEdit.cs (2)
99
/// <paramref name="oldSymbol"/> or <paramref name="newSymbol"/> is null and the edit isn't a <see cref="SemanticEditKind.
Insert
"/> or <see cref="SemanticEditKind.Delete"/>, respectively.
111
if (oldSymbol == null && kind is not (SemanticEditKind.
Insert
or SemanticEditKind.Replace))
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (131)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
347
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g2)));
Emit\EditAndContinue\EditAndContinueClosureTests.cs (9)
2482
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_int1)));
2498
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_byte2)));
2599
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_int1)));
2615
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_byte2)));
2732
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1),
2743
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_int2),
3101
SemanticEdit.Create(SemanticEditKind.
Insert
, null, b1),
3196
SemanticEdit.Create(SemanticEditKind.
Insert
, null, b1),
3197
SemanticEdit.Create(SemanticEditKind.
Insert
, null, ctor1, GetSyntaxMapFromMarkers(source0, source1))));
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
274
SemanticEdit.Create(SemanticEditKind.
Insert
, null, b2)));
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (9)
62
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, g1)));
241
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1)));
8710
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1)));
8728
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g3)));
8737
SemanticEdit.Create(SemanticEditKind.
Insert
, null, h4)));
8787
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_int1)));
8792
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_byte2)));
10768
SemanticEdit.Create(SemanticEditKind.
Insert
, null, ism1),
10953
SemanticEdit.Create(SemanticEditKind.
Insert
, null, asm1),
Emit\EditAndContinue\EditAndContinueTests.cs (111)
3161
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, method1)));
3256
SemanticEdit.Create(SemanticEditKind.
Insert
, null, methodG1)));
3675
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1)));
3820
SemanticEdit.Create(SemanticEditKind.
Insert
, null, id1),
3821
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g1)));
3910
SemanticEdit.Create(SemanticEditKind.
Insert
, null, h2)));
4005
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, f3)));
4069
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<FieldSymbol>("C.G")),
4197
? ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, r1), SemanticEdit.Create(SemanticEditKind.
Insert
, null, r1.GetMethod))
4198
: ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, r1)));
4233
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2),
4234
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2.GetMethod),
4235
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2.SetMethod))
4237
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2)));
4401
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.P")),
4569
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.P")),
4735
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
4736
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4737
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4890
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
4891
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4892
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4969
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.P")),
5058
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.P")),
5145
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.P")),
5230
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
5231
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
5232
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
5365
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
5366
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
5367
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
5472
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
5473
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity
5474
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity
5616
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
5617
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
5618
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
5841
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
5842
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity
5944
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
5945
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity
6009
Edit(SemanticEditKind.
Insert
, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(p => p.Parameters is [{ Name: "y" }])),
6010
Edit(SemanticEditKind.
Insert
, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(p => p.Parameters is [{ Name: "y" }]).GetMethod), // the compiler does not need this edit, but the IDE adds it for simplicity
6161
SemanticEdit.Create(SemanticEditKind.
Insert
, null, e1)));
6216
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g2)));
6526
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
6527
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_F")), // the compiler does not need this edit, but the IDE adds it for simplicity
6528
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_F")), // the compiler does not need this edit, but the IDE adds it for simplicity
6709
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.E")),
6710
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_E")), // the compiler does not need this edit, but the IDE adds it for simplicity
6711
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_E")), // the compiler does not need this edit, but the IDE adds it for simplicity
7562
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c1),
7664
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("A.B3")),
7665
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("A.B4"))));
7725
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c1),
7840
SemanticEdit.Create(SemanticEditKind.
Insert
, null, d1)));
7854
SemanticEdit.Create(SemanticEditKind.
Insert
, null, e2)));
7962
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, method1)));
8152
SemanticEdit.Create(SemanticEditKind.
Insert
, null, x1),
8153
SemanticEdit.Create(SemanticEditKind.
Insert
, null, y1),
8154
SemanticEdit.Create(SemanticEditKind.
Insert
, null, m1),
8155
SemanticEdit.Create(SemanticEditKind.
Insert
, null, n1),
8156
SemanticEdit.Create(SemanticEditKind.
Insert
, null, p1),
8157
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q1),
8158
SemanticEdit.Create(SemanticEditKind.
Insert
, null, e1),
8159
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1),
8160
SemanticEdit.Create(SemanticEditKind.
Insert
, null, j1),
8161
SemanticEdit.Create(SemanticEditKind.
Insert
, null, cctor1)));
8316
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.M2")),
8317
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<FieldSymbol>("C.F2")),
8318
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<PropertySymbol>("C.P2")),
8319
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<EventSymbol>("C.E2"))));
8442
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.M"))));
8666
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.puts"))));
8722
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("B"))));
8802
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMembers("M.C.M1")[2])));
9346
SemanticEdit.Create(SemanticEditKind.
Insert
, null, ctor1)));
9963
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, m1, null)));
10298
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("A")),
13413
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.Main"))),
13576
SemanticEdit.Create(SemanticEditKind.
Insert
, null, mA1),
13577
SemanticEdit.Create(SemanticEditKind.
Insert
, null, mX1)),
13586
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilationB1.GetMember<TypeSymbol>("Y"))),
13719
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_byte2)));
16494
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g1)));
16701
Edit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("R")),
16795
Edit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("R"))
16936
Edit(SemanticEditKind.
Insert
, c => c.GetMember("R.Q")),
17414
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("System.Runtime.CompilerServices.HotReloadException")),
17841
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M2")),
18041
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
18192
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
18264
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
18390
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
18555
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.F")),
18710
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
19023
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
19345
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
19522
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M2")),
19545
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
19585
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Boolean)?.ISymbol),
19676
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol),
19749
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol),
19844
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_String)?.ISymbol),
19921
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol),
20016
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol),
20188
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c2_gen1, syntaxMap: null)));
20281
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c1_gen1, syntaxMap: null),
20282
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c2_gen1, syntaxMap: null)));
20370
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c2_gen1, syntaxMap: null)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (260)
EditAndContinue\ActiveStatementTests.cs (1)
3764
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.a")),
EditAndContinue\StatementEditingTests.cs (15)
4773
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
4775
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item"))
4870
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
4903
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
4936
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
4969
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
5413
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
5414
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
5649
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
5691
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C")
6928
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
6961
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
6963
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item"))
6996
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
6998
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
EditAndContinue\TopLevelEditingTests.cs (244)
583
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("N.C.M2"))],
1941
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
1962
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2084
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2112
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2150
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("D"))],
2182
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2639
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C"), preserveLocalVariables: false)],
2652
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("G"), preserveLocalVariables: false)
3048
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
3061
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
3420
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._y")),
3456
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._y")),
3476
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._y")),
3497
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.E")),
3518
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._z")),
3538
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._z")),
4000
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
4015
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y"))
4030
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y"))
4064
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
4203
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
5697
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")));
5736
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D"), preserveLocalVariables: false)
5858
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")),
6075
semanticEdits: [SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)])
6086
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"), partialType: "C")
6090
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"), partialType: "C")
8510
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("N.C"))],
8527
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("N.M.C"))],
8542
[SemanticEdit(SemanticEditKind.
Insert
, c => c.Assembly.GlobalNamespace.GetMember<INamespaceSymbol>("Microsoft").GetMember<INamespaceSymbol>("CodeAnalysis").GetMember("EmbeddedAttribute"))],
8819
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"),
8824
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"),
9396
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol)
9415
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Byte))?.ISymbol)
9434
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetArity() == 1)?.ISymbol)
9697
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
9717
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
9740
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
9763
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
9786
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
10246
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.goo"))],
10693
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
10728
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
10767
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.M").PartialImplementationPart, partialType: "C")
10810
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)
10850
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)
10886
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
10921
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
11103
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.G"))
11152
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.G"))
11202
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.G"))
12310
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
12333
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
12368
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Test.M"))
12531
semanticEdits: [SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart)]),
12656
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C")
12662
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C")
12969
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.op_Subtraction"))
13230
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single())
13251
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
13274
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"), partialType: "C")
13291
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.x")),
13292
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_x")),
13293
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_x")),
13295
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13301
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13350
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()),
13366
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13388
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13394
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13428
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13434
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13456
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13461
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13484
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13486
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13503
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13509
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13527
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13533
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13550
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13556
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13572
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13581
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13605
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13630
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13645
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13655
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13673
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13680
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13714
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
13764
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single())
13789
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
13809
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13843
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
13844
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13850
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Z")),
13851
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.U")),
13853
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13922
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single())
13941
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
13942
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13948
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13963
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
13970
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
13986
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
13993
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
14008
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
14009
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
14016
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
14031
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
14032
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
14039
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
14052
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
14053
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
14060
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
14095
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
14183
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
14222
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
14238
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
14240
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Deconstruct")),
14564
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
14617
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
15084
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }]))
15099
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }]))
15131
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X"}])),
15147
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
15163
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
15164
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
15165
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
15185
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
15186
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
15187
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
15295
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 1), partialType: "C")
15302
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 2), partialType: "C")
15377
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"))],
15393
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"))],
15414
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"), partialType: "C")
15440
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"))
16422
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single(c => c.Parameters.Single().Type.Name == "Byte"), partialType: "C"),
16685
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())],
17431
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())],
17449
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())],
18832
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
18833
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_B")),
19255
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.a")),
19331
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.b")),
19332
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.c")),
19333
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.d")),
19461
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
19505
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
19660
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
19661
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single()),
19942
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
19943
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
20038
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P"), preserveLocalVariables: false)
20351
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
20352
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q"))
20397
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
20398
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Q")),
20399
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
20417
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
20418
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Q")),
20419
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
20435
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
20452
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
20453
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q"))
20763
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
20764
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")),
20765
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")),
20805
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")),
20807
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")),
20808
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
20915
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
20928
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21078
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21097
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21116
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21135
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21154
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21181
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21204
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21231
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
21642
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Test.P")),
21643
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Test.get_P")),
21859
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")),
21860
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_D")),
21861
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_D")),
21901
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")),
21902
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_D")),
21903
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_D")),
21974
semanticEdits: [SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart)]),
22112
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"),
22113
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"),
22120
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"),
22121
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"),
22458
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item"))
22626
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
22627
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
22628
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
22649
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
22650
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
22703
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
22704
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
22705
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
22728
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"),
22729
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"),
22730
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"),
22738
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"),
22739
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"),
22740
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"),
22813
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
22814
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
22815
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
22846
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"),
22847
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"),
22848
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"),
22873
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
22874
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
22875
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
22992
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember<IPropertySymbol>("this[]").SetMethod)],
23130
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
23131
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]"))
23169
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
23170
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
23416
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("E"))
23903
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
23904
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_F")),
23905
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_F")),
23940
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_E")),
23941
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_E")),
24214
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol)
24233
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol)
24252
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
24270
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 0)?.ISymbol)
24289
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol)
24374
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
24457
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
24752
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
24775
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
24798
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
24821
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
25502
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Program.<Main>$"))],
Microsoft.CodeAnalysis.Features (10)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
3062
editKind = SemanticEditKind.
Insert
;
3198
Contract.ThrowIfFalse(editKind == SemanticEditKind.
Insert
);
3345
Contract.ThrowIfFalse(editKind is SemanticEditKind.Update or SemanticEditKind.
Insert
);
3491
SemanticEditKind.
Insert
=> SemanticEditInfo.CreateInsert(symbolKey, partialType),
3958
/// Add <see cref="SemanticEditKind.
Insert
"/> edit for the specified symbol and its accessors.
EditAndContinue\EditSession.cs (2)
849
if (edit.Kind == SemanticEditKind.
Insert
)
981
if (edit.Kind is SemanticEditKind.Update or SemanticEditKind.
Insert
or SemanticEditKind.Replace)
EditAndContinue\SemanticEditInfo.cs (3)
59
=> new(SemanticEditKind.
Insert
, symbol, syntaxMaps: default, partialType, deletedSymbolContainer: null);
92
/// <see cref="SemanticEditKind.
Insert
"/> or <see cref="SemanticEditKind.Update"/> or <see cref="SemanticEditKind.Delete"/>.
97
/// If <see cref="Kind"/> is <see cref="SemanticEditKind.
Insert
"/> represents the inserted symbol in the new compilation.
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
407
case SemanticEditKind.
Insert
or SemanticEditKind.Replace:
Microsoft.CodeAnalysis.UnitTests (2)
Emit\SemanticEditTests.cs (2)
35
Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.
Insert
, oldSymbol: type, newSymbol: null));
40
Assert.Throws<ArgumentOutOfRangeException>("kind", () => new SemanticEdit(SemanticEditKind.
Insert
, oldSymbol: method, newSymbol: method, instrumentation: instrumentation));