35 references to Delete
Microsoft.CodeAnalysis.CSharp.Features (5)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
1313
case EditKind.
Delete
:
1384
if ((editKind == EditKind.
Delete
? oldSymbol : newSymbol) is null)
1624
(editKind == EditKind.
Delete
? globalStatements.LastOrDefault() : globalStatements.FirstOrDefault()) ??
1737
if (editKind == EditKind.
Delete
)
2347
case EditKind.
Delete
:
Microsoft.CodeAnalysis.Features (17)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (17)
244
AddSymbolEdits(ref result, EditKind.
Delete
, oldNode, oldSymbol, newNode: null, newSymbol: null, oldModel, newModel, topMatch, editMap, symbolCache, cancellationToken);
752
if (edit.Kind is EditKind.
Delete
or EditKind.Update)
1704
return GetDiagnosticSpan(newAncestor, EditKind.
Delete
);
1711
return GetDiagnosticSpan(newAncestor, EditKind.
Delete
);
1744
case EditKind.
Delete
:
1818
[GetDisplayName(oldNode, EditKind.
Delete
)]));
2617
syntacticEditKind = EditKind.
Delete
;
2631
if (containingType != null && (syntacticEditKind != EditKind.
Delete
|| newSymbol == null))
2661
if (syntacticEditKind != EditKind.
Delete
&& oldSymbol is INamedTypeSymbol oldType && newSymbol is INamedTypeSymbol newType && IsReloadable(oldType))
2695
case EditKind.
Delete
:
2742
diagnostics.Add(new RudeEditDiagnostic(RudeEditKind.Delete, diagnosticSpan, edit.OldNode, [GetDisplayName(edit.OldNode!, EditKind.
Delete
)]));
2759
[GetDisplayKindAndName(oldSymbol, GetDisplayName(oldDeclaration, EditKind.
Delete
), fullyQualify: diagnosticSpan.IsEmpty)]));
2786
[GetDisplayKindAndName(oldSymbol, GetDisplayName(oldDeclaration, EditKind.
Delete
), fullyQualify: diagnosticSpan.IsEmpty)]));
3512
result.Add((oldSymbol, null, EditKind.
Delete
));
3852
builder.Add((oldSymbol: oldType, newSymbol: null, EditKind.
Delete
));
4945
locationNode.Span : analyzer.GetDiagnosticSpan(GetDiagnosticNode(out var distance, cancellationToken), distance > 0 ? EditKind.
Delete
: EditKind.Update),
4964
? analyzer.GetDiagnosticSpan(node, (distance > 0 || kind == RudeEditKind.ChangeImplicitMainReturnType) ? EditKind.
Delete
: EditKind.Update)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (5)
816
Case EditKind.
Delete
1185
If editKind = EditKind.
Delete
Then
1750
Case EditKind.
Delete
1914
If edit.Kind = EditKind.
Delete
AndAlso
1918
If HasEdit(editMap, edit.OldNode.Parent.Parent, EditKind.
Delete
) Then
Microsoft.CodeAnalysis.Workspaces (6)
Differencing\Edit.cs (2)
25
Debug.Assert((newNode == null || newNode.Equals(null)) == (kind == EditKind.
Delete
));
96
case EditKind.
Delete
:
Differencing\EditScript.cs (1)
156
edits.Add(new Edit<TNode>(EditKind.
Delete
, Comparer, oldNode: w, newNode: default));
Differencing\SequenceEdit.cs (3)
30
/// The kind of edit: <see cref="EditKind.
Delete
"/>, <see cref="EditKind.Insert"/>, or <see cref="EditKind.Update"/>.
43
return EditKind.
Delete
;
77
case EditKind.
Delete
:
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Differencing\LongestCommonSubsequenceTests.cs (2)
52
Assert.True(edit.Kind is EditKind.
Delete
or EditKind.Insert or EditKind.Update);
55
case EditKind.
Delete
: