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"/>. 375case SemanticEditKind.Replace:
Emit\SemanticEdit.cs (2)
106if (kind <= SemanticEditKind.None || kind > SemanticEditKind.Replace) 111if (oldSymbol == null && kind is not (SemanticEditKind.Insert or SemanticEditKind.Replace))
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (1)
4750SemanticEdit.Create(SemanticEditKind.Replace, null, c1)));
Emit\EditAndContinue\EditAndContinueTests.cs (7)
6210SemanticEdit.Create(SemanticEditKind.Replace, null, c1))); 6218SemanticEdit.Create(SemanticEditKind.Replace, null, c2))); 6311Edit(SemanticEditKind.Replace, c => null, newSymbolProvider: c => c.GetMember("C")), 6466SemanticEdit.Create(SemanticEditKind.Replace, null, c1))); 6481SemanticEdit.Create(SemanticEditKind.Replace, null, c2))); 6551SemanticEdit.Create(SemanticEditKind.Replace, null, c1))); 6566SemanticEdit.Create(SemanticEditKind.Replace, null, c2)));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (39)
EditAndContinue\LineEditTests.cs (2)
1470SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C")) 1669SemanticEdit(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"))], 1260SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 1264SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 2414[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"))], 2479SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"))); 2581SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 2631SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C")), 4577[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("Color"))], 4954[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("D"))], 5076SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("D"))); 5329SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 5351SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C")), 5369SemanticEdit(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"))], 10336semanticEdits: [SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C")]), 10338semanticEdits: [SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C")]), 10515[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"))], 14392SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 14397SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 14437[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"))], 16503SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 16507SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 16873[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"))], 18176[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"))], 19376semanticEdits: [SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C")]), 19378semanticEdits: [SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C")]), 21456[SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"))], 22610SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C") 22614SemanticEdit(SemanticEditKind.Replace, c => c.GetMember("C"), partialType: "C")
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
3263SemanticEditKind.Replace => SemanticEditInfo.CreateReplace(symbolKey, partialType),
EditAndContinue\EditSession.cs (1)
696if (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)
352case SemanticEditKind.Insert or SemanticEditKind.Replace:
Microsoft.CodeAnalysis.UnitTests (2)
Emit\SemanticEditTests.cs (2)
36Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Replace, oldSymbol: type, newSymbol: null)); 39Assert.Throws<ArgumentOutOfRangeException>("kind", () => new SemanticEdit(SemanticEditKind.Replace, oldSymbol: method, newSymbol: method, instrumentation: instrumentation));
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTests.vb (2)
2001SemanticEdit.Create(SemanticEditKind.Replace, Nothing, c1))) 2009SemanticEdit.Create(SemanticEditKind.Replace, Nothing, c2)))
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (25)
EditAndContinue\LineEditTests.vb (2)
867{SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 1070semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))},
EditAndContinue\TopLevelEditingTests.vb (23)
460semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 537semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 655semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 668semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 713semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 1509semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 1665SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"), partialType:="C") 1742SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C")) 1820semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}) 2253semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("Color"))}, 2465semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("D"))}, 2829semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 2840semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 2851semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 2872semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C.D"))}, 6100semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"), partialType:="C")}), 6102semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"), partialType:="C")}) 6133semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 6395semanticEdits:={SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"))}, 7372SemanticEdit(SemanticEditKind.Replace, Function(c) c.GetMember("C"), partialType:="C") 7377SemanticEdit(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"))},