79 references to SemanticEdit
Microsoft.CodeAnalysis (2)
Emit\SemanticEdit.cs (2)
63
:
this
(kind, oldSymbol, newSymbol, syntaxMap, preserveLocalVariables, MethodInstrumentation.Empty)
161
=> new
SemanticEdit
(kind, oldSymbol?.GetISymbol(), newSymbol?.GetISymbol(), syntaxMap, preserveLocalVariables, instrumentation: default);
Microsoft.CodeAnalysis.UnitTests (13)
Emit\SemanticEditTests.cs (13)
29
Assert.Throws<ArgumentOutOfRangeException>("kind", () => new
SemanticEdit
(SemanticEditKind.None, oldSymbol: null, newSymbol: null));
31
Assert.Throws<ArgumentNullException>("oldSymbol", () => new
SemanticEdit
(SemanticEditKind.Update, oldSymbol: null, newSymbol: type));
32
Assert.Throws<ArgumentNullException>("oldSymbol", () => new
SemanticEdit
(SemanticEditKind.Delete, oldSymbol: null, newSymbol: type));
34
Assert.Throws<ArgumentNullException>("newSymbol", () => new
SemanticEdit
(SemanticEditKind.Update, oldSymbol: type, newSymbol: null));
35
Assert.Throws<ArgumentNullException>("newSymbol", () => new
SemanticEdit
(SemanticEditKind.Insert, oldSymbol: type, newSymbol: null));
36
Assert.Throws<ArgumentNullException>("newSymbol", () => new
SemanticEdit
(SemanticEditKind.Replace, oldSymbol: type, newSymbol: null));
39
Assert.Throws<ArgumentOutOfRangeException>("kind", () => new
SemanticEdit
(SemanticEditKind.Replace, oldSymbol: method, newSymbol: method, instrumentation: instrumentation));
40
Assert.Throws<ArgumentOutOfRangeException>("kind", () => new
SemanticEdit
(SemanticEditKind.Insert, oldSymbol: method, newSymbol: method, instrumentation: instrumentation));
41
Assert.Throws<ArgumentOutOfRangeException>("kind", () => new
SemanticEdit
(SemanticEditKind.Delete, oldSymbol: method, newSymbol: method, instrumentation: instrumentation));
43
Assert.Throws<ArgumentException>("oldSymbol", () => new
SemanticEdit
(SemanticEditKind.Update, oldSymbol: type, newSymbol: method, instrumentation: instrumentation));
44
Assert.Throws<ArgumentException>("newSymbol", () => new
SemanticEdit
(SemanticEditKind.Update, oldSymbol: method, newSymbol: type, instrumentation: instrumentation));
46
Assert.Throws<ArgumentOutOfRangeException>("Kinds", () => new
SemanticEdit
(SemanticEditKind.Update, oldSymbol: method, newSymbol: method,
49
Assert.Throws<ArgumentOutOfRangeException>("Kinds", () => new
SemanticEdit
(SemanticEditKind.Update, oldSymbol: method, newSymbol: method,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (64)
Emit\EditAndContinue\AssemblyReferencesTests.vb (7)
81
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, f0, f1)))
87
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, f1, f2)))
187
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, f0, f1)))
191
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, f1, f2),
192
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, g2)))
272
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, f0, f1)))
343
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, f0, f1)))
Emit\EditAndContinue\EditAndContinueClosureTests.vb (5)
50
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, compilation1.GetMember(Of MethodSymbol)("C.F"), compilation1.GetMember(Of MethodSymbol)("C.F"))))
1467
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, f_int1)))
1482
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, f_byte2)))
1664
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, b1),
1763
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, b1),
Emit\EditAndContinue\EditAndContinuePdbTests.vb (1)
257
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, b2)))
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (15)
52
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, compilation1.GetMember(Of MethodSymbol)("C.G"))))
403
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, compilation1.GetMember(Of MethodSymbol)("C.F"))))
730
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
838
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
917
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
965
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
1033
New
SemanticEdit
(SemanticEditKind.Update, methodShort0, methodShort1, preserveLocalVariables:=True),
1034
New
SemanticEdit
(SemanticEditKind.Update, methodInt0, methodInt1, preserveLocalVariables:=True),
1035
New
SemanticEdit
(SemanticEditKind.Update, methodLong0, methodLong1, preserveLocalVariables:=True)))
1105
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
1255
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
8057
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, f1)))
8075
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, g3)))
8084
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, h4)))
8977
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, ism1),
Emit\EditAndContinue\EditAndContinueTests.vb (36)
156
Dim diff1 = compilation1.EmitDifference(generation0, ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
218
Dim diff1 = compilation1.EmitDifference(generation0, ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
275
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
359
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, type1)))
402
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method1, method2)))
425
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, type3)))
491
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
567
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, compilation1.GetMembers("M.C.M1")(2)),
568
New
SemanticEdit
(SemanticEditKind.Update, compilation0.GetMembers("M.C.M2")(0), compilation1.GetMembers("M.C.M2")(0))))
622
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, compilation1.GetMembers("M.C.M2")(0), compilation2.GetMembers("M.C.M2")(0))))
852
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, compilation1.GetMember("M.G"))))
1476
New
SemanticEdit
(SemanticEditKind.Update, f0, f1, preserveLocalVariables:=True)))
1907
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, method1, preserveLocalVariables:=True)))
1967
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, getter0, getter1, preserveLocalVariables:=True)))
2028
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
2553
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
2639
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
2733
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
2818
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
2953
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
3134
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
3313
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
3509
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)))
3662
Dim edit = New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)
3763
Dim edit = New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)
3864
Dim edit = New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)
3980
Dim edit = New
SemanticEdit
(SemanticEditKind.Update, method0, method1, preserveLocalVariables:=True)
5130
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
5215
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, compilation1.GetMember(Of MethodSymbol)("C.Main"))),
5260
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Update, method0, method1)))
5330
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, mA1),
5331
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, mX1)),
5339
New
SemanticEdit
(SemanticEditKind.Update, compilationB0.GetMember(Of MethodSymbol)("B.F"), compilationB1.GetMember(Of MethodSymbol)("B.F")),
5340
New
SemanticEdit
(SemanticEditKind.Insert, Nothing, compilationB1.GetMember(Of TypeSymbol)("Y"))),
5769
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Insert, Nothing, g1)))
5819
ImmutableArray.Create(New
SemanticEdit
(SemanticEditKind.Delete, m0, c0)))