35 references to Delete
Microsoft.CodeAnalysis.CSharp.Features (5)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
1313case EditKind.Delete: 1384if ((editKind == EditKind.Delete ? oldSymbol : newSymbol) is null) 1624(editKind == EditKind.Delete ? globalStatements.LastOrDefault() : globalStatements.FirstOrDefault()) ?? 1737if (editKind == EditKind.Delete) 2347case EditKind.Delete:
Microsoft.CodeAnalysis.Features (17)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (17)
244AddSymbolEdits(ref result, EditKind.Delete, oldNode, oldSymbol, newNode: null, newSymbol: null, oldModel, newModel, topMatch, editMap, symbolCache, cancellationToken); 752if (edit.Kind is EditKind.Delete or EditKind.Update) 1704return GetDiagnosticSpan(newAncestor, EditKind.Delete); 1711return GetDiagnosticSpan(newAncestor, EditKind.Delete); 1744case EditKind.Delete: 1818[GetDisplayName(oldNode, EditKind.Delete)])); 2617syntacticEditKind = EditKind.Delete; 2631if (containingType != null && (syntacticEditKind != EditKind.Delete || newSymbol == null)) 2661if (syntacticEditKind != EditKind.Delete && oldSymbol is INamedTypeSymbol oldType && newSymbol is INamedTypeSymbol newType && IsReloadable(oldType)) 2695case EditKind.Delete: 2742diagnostics.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)])); 3512result.Add((oldSymbol, null, EditKind.Delete)); 3852builder.Add((oldSymbol: oldType, newSymbol: null, EditKind.Delete)); 4945locationNode.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)
816Case EditKind.Delete 1185If editKind = EditKind.Delete Then 1750Case EditKind.Delete 1914If edit.Kind = EditKind.Delete AndAlso 1918If HasEdit(editMap, edit.OldNode.Parent.Parent, EditKind.Delete) Then
Microsoft.CodeAnalysis.Workspaces (6)
Differencing\Edit.cs (2)
25Debug.Assert((newNode == null || newNode.Equals(null)) == (kind == EditKind.Delete)); 96case EditKind.Delete:
Differencing\EditScript.cs (1)
156edits.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"/>. 43return EditKind.Delete; 77case EditKind.Delete:
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Differencing\LongestCommonSubsequenceTests.cs (2)
52Assert.True(edit.Kind is EditKind.Delete or EditKind.Insert or EditKind.Update); 55case EditKind.Delete: