85 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
"/>.
375
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)
6210
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c1)));
6218
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c2)));
6311
Edit(SemanticEditKind.
Replace
, c => null, newSymbolProvider: c => c.GetMember("C")),
6466
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c1)));
6481
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c2)));
6551
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c1)));
6566
SemanticEdit.Create(SemanticEditKind.
Replace
, null, c2)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (39)
EditAndContinue\LineEditTests.cs (2)
1470
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))
1669
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))
EditAndContinue\TopLevelEditingTests.cs (37)
667
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
762
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1043
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1173
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1186
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1213
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
1260
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
1264
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
2414
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
2479
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C")));
2581
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
2631
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C")),
4577
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("Color"))],
4954
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("D"))],
5076
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("D")));
5329
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
5351
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C")),
5369
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C")),
5578
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
5591
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
5604
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
5629
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C.D"))],
10336
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
10338
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
10515
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
14392
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
14397
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
14437
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
16503
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
16507
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
16873
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
18176
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
19376
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
19378
semanticEdits: [SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")]),
21456
[SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"))],
22610
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
22614
SemanticEdit(SemanticEditKind.
Replace
, c => c.GetMember("C"), partialType: "C")
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
3263
SemanticEditKind.
Replace
=> SemanticEditInfo.CreateReplace(symbolKey, partialType),
EditAndContinue\EditSession.cs (1)
696
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)
352
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));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.vb (2)
2001
SemanticEdit.Create(SemanticEditKind.
Replace
, Nothing, c1)))
2009
SemanticEdit.Create(SemanticEditKind.
Replace
, Nothing, c2)))
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (25)
EditAndContinue\LineEditTests.vb (2)
867
{SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
1070
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
EditAndContinue\TopLevelEditingTests.vb (23)
460
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
537
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
655
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
668
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
713
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
1509
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
1665
SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"), partialType:="C")
1742
SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))
1820
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))})
2253
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("Color"))},
2465
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("D"))},
2829
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
2840
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
2851
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
2872
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C.D"))},
6100
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"), partialType:="C")}),
6102
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"), partialType:="C")})
6133
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
6395
semanticEdits:={SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
7372
SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"), partialType:="C")
7377
SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"), partialType:="C")
7850
{SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember("C"))},
8733
{SemanticEdit(SemanticEditKind.
Replace
, Function(c) c.GetMember(Of NamedTypeSymbol)("C"))},