542 references to Insert
Microsoft.CodeAnalysis (3)
Emit\EditAndContinue\SymbolChanges.cs (1)
371
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 (128)
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
339
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)
61
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, g1)));
240
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1)));
8705
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1)));
8723
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g3)));
8732
SemanticEdit.Create(SemanticEditKind.
Insert
, null, h4)));
8782
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_int1)));
8787
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_byte2)));
10763
SemanticEdit.Create(SemanticEditKind.
Insert
, null, ism1),
10948
SemanticEdit.Create(SemanticEditKind.
Insert
, null, asm1),
Emit\EditAndContinue\EditAndContinueTests.cs (108)
2916
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, method1)));
3011
SemanticEdit.Create(SemanticEditKind.
Insert
, null, methodG1)));
3454
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1)));
3599
SemanticEdit.Create(SemanticEditKind.
Insert
, null, id1),
3600
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g1)));
3689
SemanticEdit.Create(SemanticEditKind.
Insert
, null, h2)));
3784
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, f3)));
3848
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<FieldSymbol>("C.G")),
3976
? ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, r1), SemanticEdit.Create(SemanticEditKind.
Insert
, null, r1.GetMethod))
3977
: ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, r1)));
4012
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2),
4013
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2.GetMethod),
4014
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2.SetMethod))
4016
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q2)));
4149
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.P")),
4291
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.P")),
4440
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
4441
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4442
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4576
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
4577
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4578
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4656
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
4657
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4658
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4767
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
4768
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4769
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4861
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
4862
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity
4863
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Q")), // the compiler does not need this edit, but the IDE adds it for simplicity
4969
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
4970
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
4971
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")), // the compiler does not need this edit, but the IDE adds it for simplicity
5145
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
5146
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity
5230
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
5231
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")), // the compiler does not need this edit, but the IDE adds it for simplicity
5290
Edit(SemanticEditKind.
Insert
, c => c.GetMembers<IPropertySymbol>("C.this[]").Single(p => p.Parameters is [{ Name: "y" }])),
5291
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
5438
SemanticEdit.Create(SemanticEditKind.
Insert
, null, e1)));
5493
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g2)));
5654
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
5655
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_F")), // the compiler does not need this edit, but the IDE adds it for simplicity
5656
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_F")), // the compiler does not need this edit, but the IDE adds it for simplicity
5799
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.E")),
5800
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_E")), // the compiler does not need this edit, but the IDE adds it for simplicity
5801
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_E")), // the compiler does not need this edit, but the IDE adds it for simplicity
6629
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c1),
6731
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("A.B3")),
6732
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("A.B4"))));
6792
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c1),
6907
SemanticEdit.Create(SemanticEditKind.
Insert
, null, d1)));
6921
SemanticEdit.Create(SemanticEditKind.
Insert
, null, e2)));
7029
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, method1)));
7219
SemanticEdit.Create(SemanticEditKind.
Insert
, null, x1),
7220
SemanticEdit.Create(SemanticEditKind.
Insert
, null, y1),
7221
SemanticEdit.Create(SemanticEditKind.
Insert
, null, m1),
7222
SemanticEdit.Create(SemanticEditKind.
Insert
, null, n1),
7223
SemanticEdit.Create(SemanticEditKind.
Insert
, null, p1),
7224
SemanticEdit.Create(SemanticEditKind.
Insert
, null, q1),
7225
SemanticEdit.Create(SemanticEditKind.
Insert
, null, e1),
7226
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f1),
7227
SemanticEdit.Create(SemanticEditKind.
Insert
, null, j1),
7228
SemanticEdit.Create(SemanticEditKind.
Insert
, null, cctor1)));
7383
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.M2")),
7384
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<FieldSymbol>("C.F2")),
7385
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<PropertySymbol>("C.P2")),
7386
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<EventSymbol>("C.E2"))));
7526
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.M"))));
7750
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.puts"))));
7806
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("B"))));
7886
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMembers("M.C.M1")[2])));
8430
SemanticEdit.Create(SemanticEditKind.
Insert
, null, ctor1)));
9047
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, m1, null)));
9382
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<NamedTypeSymbol>("A")),
12413
ImmutableArray.Create(SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilation1.GetMember<MethodSymbol>("C.Main"))),
12576
SemanticEdit.Create(SemanticEditKind.
Insert
, null, mA1),
12577
SemanticEdit.Create(SemanticEditKind.
Insert
, null, mX1)),
12586
SemanticEdit.Create(SemanticEditKind.
Insert
, null, compilationB1.GetMember<TypeSymbol>("Y"))),
12719
SemanticEdit.Create(SemanticEditKind.
Insert
, null, f_byte2)));
15494
SemanticEdit.Create(SemanticEditKind.
Insert
, null, g1)));
15701
Edit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("R")),
15792
Edit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("R"))
15929
Edit(SemanticEditKind.
Insert
, c => c.GetMember("R.Q")),
16340
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("System.Runtime.CompilerServices.HotReloadException")),
16571
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M2")),
16748
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
16883
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
16957
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
17069
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
17216
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.F")),
17366
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
17647
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
17928
Edit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
18087
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M2")),
18110
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMember("C.M1")),
18150
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Boolean)?.ISymbol),
18225
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterTypes()[0].SpecialType == SpecialType.System_Int32)?.ISymbol),
18296
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_Int32)?.ISymbol),
18375
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetTypeOrReturnType().SpecialType == SpecialType.System_String)?.ISymbol),
18449
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol),
18528
Edit(SemanticEditKind.
Insert
, symbolProvider: c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol),
18698
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c2_gen1, syntaxMap: null)));
18791
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c1_gen1, syntaxMap: null),
18792
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c2_gen1, syntaxMap: null)));
18880
SemanticEdit.Create(SemanticEditKind.
Insert
, null, c2_gen1, syntaxMap: null)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (254)
EditAndContinue\ActiveStatementTests.cs (1)
3204
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.a")),
EditAndContinue\StatementEditingTests.cs (15)
4423
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
4425
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item"))
4508
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
4537
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
4566
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
4595
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
5003
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
5004
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
5211
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
5249
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C")
6382
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
6411
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
6413
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item"))
6442
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
6444
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
EditAndContinue\TopLevelEditingTests.cs (238)
507
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("N.C.M2"))],
1872
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
1994
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2022
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2060
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("D"))],
2092
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2540
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C"), preserveLocalVariables: false)],
2560
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("G"), preserveLocalVariables: false)
2962
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
2975
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"))],
3322
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._y")),
3354
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._y")),
3374
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._y")),
3395
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.E")),
3416
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._z")),
3436
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C._z")),
3903
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
3918
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y"))
3933
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y"))
3963
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
4098
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
5617
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")));
5652
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D"), preserveLocalVariables: false)
5766
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")),
6014
semanticEdits: [SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.C.F2").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)])
6033
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"), partialType: "C")
6037
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C"), partialType: "C")
6438
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("N.C"))],
6455
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("N.M.C"))],
6733
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"),
6738
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("M.C"), partialType: "M.C"),
7405
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol)
7431
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Byte))?.ISymbol)
7457
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("S.F").FirstOrDefault(m => m.GetArity() == 1)?.ISymbol)
7697
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
7717
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
7740
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
7763
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
7786
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
8198
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.goo"))],
8613
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
8644
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
8679
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.M").PartialImplementationPart, partialType: "C")
8718
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)
8754
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.Main").FirstOrDefault(m => m.GetParameterTypes().Any(t => t.SpecialType == SpecialType.System_Int32))?.ISymbol)
8786
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
8817
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
8929
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.G"))
8974
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.G"))
9020
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.G"))
10048
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
10071
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
10106
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Test.M"))
10318
semanticEdits: [SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart)]),
10464
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C")
10470
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.F").PartialImplementationPart, partialType: "C")
10753
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.op_Subtraction"))
11006
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single())
11027
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
11057
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"), partialType: "C")
11075
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.x")),
11076
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_x")),
11077
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_x")),
11079
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11085
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11134
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single()),
11150
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11172
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11178
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11208
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11214
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11236
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11241
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11264
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11266
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11283
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11289
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11307
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11313
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11330
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11336
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11352
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11361
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11385
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11410
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11425
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11435
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11453
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11460
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11490
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
11536
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single())
11561
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
11581
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11615
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
11616
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11622
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Z")),
11623
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.U")),
11625
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11686
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single())
11705
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
11706
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11712
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11727
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
11734
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11750
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
11757
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11772
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11773
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
11780
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11795
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
11796
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11803
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11823
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Y")),
11824
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
11831
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11867
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
11947
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
11986
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C"))
12002
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
12004
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Deconstruct")),
12339
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
12408
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
12840
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }]))
12855
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X" }]))
12887
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(c => c.Parameters is [{ Name: "X"}])),
12903
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
12919
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
12920
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
12921
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
12941
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
12942
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryConstructor("C")),
12943
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetPrimaryDeconstructor("C")),
13058
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 1), partialType: "C")
13065
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").InstanceConstructors.Single(m => m.Parameters.Length == 2), partialType: "C")
13149
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"))],
13165
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"))],
13186
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"), partialType: "C")
13212
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetParameterlessConstructor("C"))
14245
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single(c => c.Parameters.Single().Type.Name == "Byte"), partialType: "C"),
14450
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())],
15155
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())]);
15172
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").StaticConstructors.Single())],
16482
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
16483
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_B")),
16892
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.a")),
16960
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.b")),
16961
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.c")),
16962
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.d")),
17078
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
17118
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
17261
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.B")),
17262
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").Constructors.Single()),
17539
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
17540
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
17614
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P"), preserveLocalVariables: false)
17809
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
17810
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q"))
17855
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
17856
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Q")),
17857
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
17875
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
17876
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Q")),
17877
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q")),
17893
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
17910
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Q")),
17911
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.Q"))
18221
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
18222
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")),
18223
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")),
18263
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_P")),
18265
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_P")),
18266
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.P")),
18373
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
18386
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
18526
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
18539
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
18552
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
18573
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("P"))],
18952
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Test.P")),
18953
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Test.get_P")),
19187
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")),
19188
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_D")),
19189
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_D")),
19225
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.D")),
19226
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_D")),
19227
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_D")),
19358
semanticEdits: [SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart)]),
19517
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"),
19518
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"),
19525
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_P").PartialImplementationPart, partialType: "C"),
19526
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.P").PartialImplementationPart, partialType: "C"),
19863
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item"))
20031
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
20032
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
20033
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
20054
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
20055
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
20108
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
20109
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
20110
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
20133
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"),
20134
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"),
20135
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"),
20143
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"),
20144
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"),
20145
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"),
20218
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
20219
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
20220
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
20251
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IPropertySymbol>("C.this[]").PartialImplementationPart, partialType: "C"),
20252
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.get_Item").PartialImplementationPart, partialType: "C"),
20253
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<IMethodSymbol>("C.set_Item").PartialImplementationPart, partialType: "C"),
20278
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
20279
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
20280
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.set_Item")),
20381
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember<IPropertySymbol>("this[]").SetMethod)],
20507
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
20508
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]"))
20546
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.this[]")),
20547
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.get_Item")),
20802
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember<INamedTypeSymbol>("C").GetMember("E"))
21249
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F")),
21250
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_F")),
21251
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_F")),
21286
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.add_E")),
21287
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.remove_E")),
21568
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol)
21587
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 2)?.ISymbol)
21606
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
21624
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 0)?.ISymbol)
21643
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMembers("C.M").FirstOrDefault(m => m.GetParameterCount() == 1)?.ISymbol)
21728
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M"))
21811
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.F"))
22110
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
22133
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
22156
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
22179
SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("C.M")),
22848
[SemanticEdit(SemanticEditKind.
Insert
, c => c.GetMember("Program.<Main>$"))],
Microsoft.CodeAnalysis.Features (10)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (5)
2850
editKind = SemanticEditKind.
Insert
;
2974
Contract.ThrowIfFalse(editKind == SemanticEditKind.
Insert
);
3123
Contract.ThrowIfFalse(editKind is SemanticEditKind.Update or SemanticEditKind.
Insert
);
3262
SemanticEditKind.
Insert
=> SemanticEditInfo.CreateInsert(symbolKey, partialType),
3737
/// Add <see cref="SemanticEditKind.
Insert
"/> edit for the specified symbol and its accessors.
EditAndContinue\EditSession.cs (2)
696
if (edit.Kind is SemanticEditKind.Update or SemanticEditKind.
Insert
or SemanticEditKind.Replace)
723
if (edit.Kind == SemanticEditKind.
Insert
)
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)
352
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));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (43)
Emit\EditAndContinue\AssemblyReferencesTests.vb (1)
192
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, g2)))
Emit\EditAndContinue\EditAndContinueClosureTests.vb (5)
1477
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, f_int1)))
1492
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, f_byte2)))
1674
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, b1),
1773
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, b1),
1774
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, ctor1)))
Emit\EditAndContinue\EditAndContinuePdbTests.vb (1)
257
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, b2)))
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (6)
60
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, compilation1.GetMember(Of MethodSymbol)("C.G"))))
411
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, compilation1.GetMember(Of MethodSymbol)("C.F"))))
8060
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, f1)))
8078
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, g3)))
8087
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, h4)))
8980
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, ism1),
Emit\EditAndContinue\EditAndContinueTests.vb (30)
442
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, type1)))
508
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, type3)))
650
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, compilation1.GetMembers("M.C.M1")(2)),
774
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, compilation1.GetMember("M.G"))))
1072
SemanticEdit.Create(SemanticEditKind.
Insert
, Nothing, d1)))
1087
SemanticEdit.Create(SemanticEditKind.
Insert
, Nothing, e2)))
1517
Edit(SemanticEditKind.
Insert
, symbolProvider:=Function(c) c.GetMember("C.E"))
1614
Edit(SemanticEditKind.
Insert
, symbolProvider:=Function(c) c.GetMember("C.add_E")),
1615
Edit(SemanticEditKind.
Insert
, symbolProvider:=Function(c) c.GetMember("C.remove_E"))
1711
Edit(SemanticEditKind.
Insert
, symbolProvider:=Function(c) c.GetMember("C.add_E")),
1712
Edit(SemanticEditKind.
Insert
, symbolProvider:=Function(c) c.GetMember("C.remove_E"))
2174
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, method1)))
2298
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.P")),
2299
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_P")),
2300
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.set_P"))
2403
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.P")),
2404
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_P")),
2405
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.set_P"))
2562
Edit(SemanticEditKind.
Insert
, symbolProvider:=Function(c) c.GetMember("C.get_P"))
2689
Edit(SemanticEditKind.
Insert
, symbolProvider:=Function(c) c.GetMember("C.get_P"))
3132
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, method1, Nothing)))
6130
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
6285
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
6521
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
6669
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, compilation1.GetMember(Of MethodSymbol)("C.Main"))),
6784
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, mA1),
6785
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, mX1)),
6794
New SemanticEdit(SemanticEditKind.
Insert
, Nothing, compilationB1.GetMember(Of TypeSymbol)("Y"))),
7223
ImmutableArray.Create(New SemanticEdit(SemanticEditKind.
Insert
, Nothing, g1)))
7364
Edit(SemanticEditKind.
Insert
, Function(c) c.GetMember("System.Runtime.CompilerServices.HotReloadException")),
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (101)
EditAndContinue\StatementEditingTests.vb (11)
2226
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_Item")),
2228
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.Item"))
2378
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
2405
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
2433
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
2461
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
2816
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.Item")),
2817
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_Item"))
3093
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
3132
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of MethodSymbol)("C.F").PartialImplementationPart, partialType:="C")
3861
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
EditAndContinue\TopLevelEditingTests.vb (90)
831
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C"))},
852
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C"))},
867
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C"))},
1149
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C"))},
1596
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C"), preserveLocalVariables:=False)},
1627
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("G"), preserveLocalVariables:=False)
2862
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.D"))})
2883
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.D"), preserveLocalVariables:=False)})
2893
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.D"), preserveLocalVariables:=False)})
3060
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.D")),
3252
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("S").GetMember(Of NamedTypeSymbol)("C").GetMembers("F2").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Int32)))
3522
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("N.C"))},
3537
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("N.M.C"))},
3770
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("M.C"), partialType:="M.C")
3775
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("M.C"), partialType:="M.C")
4618
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetParameters().Length = 1))
4657
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetParameters().Any(Function(p) p.Type.SpecialType = SpecialType.System_Byte)))
4696
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMembers("S.F").FirstOrDefault(Function(m) m.GetArity() = 1))
4982
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))},
5001
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("F"))},
5017
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("F"))},
5220
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.D.f")),
5240
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.Bar"))
5277
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.G"))
5319
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.G"))
6083
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of MethodSymbol)("F").PartialImplementationPart)})
6364
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMembers("C..ctor").FirstOrDefault(Function(m) m.GetParameters().Length = 2))
6469
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())},
6481
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())},
6523
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").InstanceConstructors.Single(Function(m) m.Parameters.IsEmpty))
6541
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").InstanceConstructors.Single(Function(m) m.Parameters.IsEmpty), partialType:="C")}),
6579
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").
7163
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").Constructors.Single(Function(m) m.Parameters.Single().Type.Name = "Byte"), partialType:="C")
8171
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.b")),
8172
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.c")),
8173
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.d"))},
8342
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.B")),
8383
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.B")),
8525
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.B")),
8526
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").Constructors.Single()),
8764
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.P")),
8765
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_P")),
8766
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.set_P"))
8789
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("P"))},
8806
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("P"))},
8946
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.Q")),
8947
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_Q"))
8966
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.Q")),
8967
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_Q"))
9701
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())})
9711
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())})
9721
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())})
9731
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())})
9742
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())},
9754
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())},
9766
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())},
9778
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").SharedConstructors.Single())},
9978
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("a")),
9999
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("a")),
10017
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.b")),
10034
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.b")),
10137
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.a")),
10153
{SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.a")),
11196
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.add_F")),
11197
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.remove_F")),
11198
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.raise_F")),
11199
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.F"))
11248
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.add_E")),
11249
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.remove_E")),
11285
semanticEdits:={SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember("E"))},
11373
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.E"))
11393
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.E"))
11631
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_P")),
11632
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.P"))
11652
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_P")),
11653
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.P"))
11673
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.get_P")),
11674
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.P"))
11719
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
11739
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
11771
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
11790
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
11814
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
11850
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
11903
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("M.F"))
12123
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
12150
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
12173
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
12196
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))
12219
SemanticEdit(SemanticEditKind.
Insert
, Function(c) c.GetMember("C.M"))