61 references to Replace
Microsoft.CodeAnalysis (5)
Emit\EditAndContinue\EmitBaseline.cs (1)
231
/// The latest generation number of each symbol added via <see cref="SemanticEditKind.
Replace
"/> edit.
Emit\EditAndContinue\SymbolChanges.cs (2)
32
/// Populated based on semantic edits with <see cref="SemanticEditKind.
Replace
"/>.
376
case SemanticEditKind.
Replace
:
Emit\SemanticEdit.cs (2)
106
if (kind <= SemanticEditKind.None || kind > SemanticEditKind.
Replace
)
111
if (oldSymbol == null && kind is not (SemanticEditKind.Insert or SemanticEditKind.
Replace
))
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (1)
4750
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c1)));
Emit\EditAndContinue\EditAndContinueTests.cs (7)
7143
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c1)));
7151
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c2)));
7244
Edit(SemanticEditKind.
Replace
, c => null, newSymbolProvider: c => c.GetMember("C")),
7399
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c1)));
7414
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c2)));
7484
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c1)));
7499
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c2)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (42)
EditAndContinue\LineEditTests.cs (2)
1686
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))
1917
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))
EditAndContinue\TopLevelEditingTests.cs (40)
743
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
836
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1114
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1248
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1261
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1288
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1331
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
1335
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
2525
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
2592
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C")));
2669
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
2721
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C")),
4659
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("Color"))],
5036
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("D"))],
5158
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("D")));
5411
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
5415
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
5433
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C")),
5450
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))
5658
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
5671
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
5684
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
5709
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C.D"))],
5893
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
5906
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
12544
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
12546
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
12707
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
16627
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
16632
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
16672
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
18849
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
18853
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
19236
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
20718
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
21987
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
21989
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
24110
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
25248
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
25252
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
3492
SemanticEditKind.
Replace
=> SemanticEditInfo.CreateReplace(symbolKey, partialType),
EditAndContinue\EditSession.cs (1)
981
if (edit.Kind is SemanticEditKind.Update or SemanticEditKind.Insert or SemanticEditKind.
Replace
)
EditAndContinue\SemanticEditInfo.cs (1)
79
=> new(SemanticEditKind.
Replace
, symbol, syntaxMaps: default, partialType, deletedSymbolContainer: null);
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)
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));