1 write to Kind
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\SemanticEditInfo.cs (1)
51
Kind
= kind;
17 references to Kind
Microsoft.CodeAnalysis.Features (12)
EditAndContinue\EditSession.cs (8)
849
if (edit.
Kind
== SemanticEditKind.Insert)
856
edit.
Kind
,
876
.Where(static edit => edit is { PartialType: not null,
Kind
: SemanticEditKind.Update })
951
var syntaxMaps = (edit.
Kind
== SemanticEditKind.Update) ? mergedUpdateEditSyntaxMaps[edit.PartialType.Value] : default;
952
mergedEditsBuilder.Add(new SemanticEdit(edit.
Kind
, oldSymbol, newSymbol, syntaxMaps.matchingNodes, syntaxMaps.runtimeRudeEdits));
970
if (edit.
Kind
is SemanticEditKind.Update or SemanticEditKind.Delete)
981
if (edit.
Kind
is SemanticEditKind.Update or SemanticEditKind.Insert or SemanticEditKind.Replace)
986
else if (edit.
Kind
== SemanticEditKind.Delete && edit.DeletedSymbolContainer is not null)
EditAndContinue\SemanticEditInfo.cs (4)
97
/// If <see cref="
Kind
"/> is <see cref="SemanticEditKind.Insert"/> represents the inserted symbol in the new compilation.
98
/// If <see cref="
Kind
"/> is <see cref="SemanticEditKind.Update"/> represents the updated symbol in both compilations.
99
/// If <see cref="
Kind
"/> is <see cref="SemanticEditKind.Delete"/> represents the deleted symbol in the old compilation.
108
/// If <see cref="
Kind
"/> is <see cref="SemanticEditKind.Delete"/> represents the containing symbol in the new compilation.
Microsoft.CodeAnalysis.Features.Test.Utilities (5)
EditAndContinue\EditAndContinueTestVerifier.cs (5)
340
actualSemanticEdits = actualSemanticEdits.Sort((x, y) => CompareEdits(x.Symbol, x.
Kind
, y.Symbol, y.
Kind
));
351
actualSemanticEdits.Select(e => $"{e.
Kind
}: {e.Symbol.Resolve(e.
Kind
== SemanticEditKind.Delete ? oldCompilation : newCompilation).Symbol}"),
360
Assert.Equal(editKind, actualSemanticEdit.
Kind
);