18 references to SemanticEdit
Microsoft.CodeAnalysis (2)
Emit\SemanticEdit.cs (2)
75
:
this
(kind, oldSymbol, newSymbol, syntaxMap, runtimeRudeEdit: null, MethodInstrumentation.Empty)
216
=> new
SemanticEdit
(kind, oldSymbol?.GetISymbol(), newSymbol?.GetISymbol(), syntaxMap, instrumentation: default);
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\EditSession.cs (2)
766
mergedEditsBuilder.Add(new
SemanticEdit
(
827
mergedEditsBuilder.Add(new
SemanticEdit
(edit.Kind, oldSymbol, newSymbol, syntaxMaps.matchingNodes, syntaxMaps.runtimeRudeEdits));
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,
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.cs (1)
203
return new
SemanticEdit
(e.Kind, oldSymbol, newSymbol, syntaxMap, e.RudeEdits);