5 instantiations of Edit
Microsoft.CodeAnalysis.Workspaces (5)
Differencing\EditScript.cs (5)
95edits.Add(new Edit<TNode>(EditKind.Insert, Comparer, oldNode: default, newNode: x)); 114edits.Add(new Edit<TNode>(EditKind.Update, Comparer, oldNode: w, newNode: x)); 126edits.Add(new Edit<TNode>(EditKind.Move, Comparer, oldNode: w, newNode: x)); 156edits.Add(new Edit<TNode>(EditKind.Delete, Comparer, oldNode: w, newNode: default)); 236edits.Add(new Edit<TNode>(EditKind.Reorder, Comparer, oldNode: a, newNode: b));
25 references to Edit
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
2480Edit<SyntaxNode> edit, 2631IEnumerable<Edit<SyntaxNode>> exceptionHandlingEdits, 2635foreach (var edit in exceptionHandlingEdits)
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (6)
408internal abstract void ReportTopLevelSyntacticRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, Match<SyntaxNode> match, Edit<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap); 409internal abstract void ReportEnclosingExceptionHandlingRudeEdits(ArrayBuilder<RudeEditDiagnostic> diagnostics, IEnumerable<Edit<SyntaxNode>> exceptionHandlingEdits, SyntaxNode oldStatement, TextSpan newStatementSpan); 738foreach (var edit in syntacticEdits.Edits) 748foreach (var edit in editScript.Edits) 1735protected static bool HasParentEdit(IReadOnlyDictionary<SyntaxNode, EditKind> editMap, Edit<SyntaxNode> edit) 2539foreach (var edit in editScript.Edits)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditScriptDescription.cs (1)
20public ImmutableArray<Edit<SyntaxNode>> Edits => Script.Edits;
Microsoft.CodeAnalysis.VisualBasic.Features (2)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
1906edit As Edit(Of SyntaxNode), 2093exceptionHandlingEdits As IEnumerable(Of Edit(Of SyntaxNode)),
Microsoft.CodeAnalysis.Workspaces (13)
Differencing\Edit.cs (4)
18public readonly struct Edit<TNode> : IEquatable<Edit<TNode>> 65=> obj is Edit<TNode> && Equals((Edit<TNode>)obj); 67public bool Equals(Edit<TNode> other)
Differencing\EditScript.cs (6)
22var edits = new List<Edit<TNode>>(); 29public ImmutableArray<Edit<TNode>> Edits { get; } 39private void AddUpdatesInsertsMoves(List<Edit<TNode>> edits) 70private void ProcessNode(List<Edit<TNode>> edits, TNode x) 140private void AddDeletes(List<Edit<TNode>> edits) 161private void AlignChildren(List<Edit<TNode>> edits, TNode w, TNode x)
Differencing\MapBasedLongestCommonSubsequence.cs (1)
15internal IEnumerable<Edit<TNode>> GetEdits(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes, TreeComparer<TNode>? treeComparer = null)
Differencing\Match.cs (1)
369public IEnumerable<Edit<TNode>> GetSequenceEdits(IEnumerable<TNode> oldNodes, IEnumerable<TNode> newNodes)
Differencing\Match.LongestCommonSubsequence.cs (1)
39internal IEnumerable<Edit<TNode>> GetEdits(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes)