7 instantiations of Edit
Microsoft.CodeAnalysis.Workspaces (7)
Differencing\EditScript.cs (5)
95
edits.Add(new
Edit
<TNode>(EditKind.Insert, Comparer, oldNode: default, newNode: x));
114
edits.Add(new
Edit
<TNode>(EditKind.Update, Comparer, oldNode: w, newNode: x));
126
edits.Add(new
Edit
<TNode>(EditKind.Move, Comparer, oldNode: w, newNode: x));
156
edits.Add(new
Edit
<TNode>(EditKind.Delete, Comparer, oldNode: w, newNode: default));
236
edits.Add(new
Edit
<TNode>(EditKind.Reorder, Comparer, oldNode: a, newNode: b));
Differencing\MapBasedLongestCommonSubsequence.cs (1)
19
yield return new
Edit
<TNode>(edit.Kind, treeComparer,
Differencing\Match.LongestCommonSubsequence.cs (1)
43
yield return new
Edit
<TNode>(edit.Kind, _match.Comparer,
23 references to Edit
Microsoft.CodeAnalysis.CSharp.Features (3)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
2488
Edit
<SyntaxNode> edit,
2639
IEnumerable<
Edit
<SyntaxNode>> exceptionHandlingEdits,
2643
foreach (
var
edit in exceptionHandlingEdits)
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (6)
397
internal abstract void ReportTopLevelSyntacticRudeEdits(RudeEditDiagnosticsBuilder diagnostics, Match<SyntaxNode> match,
Edit
<SyntaxNode> edit, Dictionary<SyntaxNode, EditKind> editMap);
398
internal abstract void ReportEnclosingExceptionHandlingRudeEdits(RudeEditDiagnosticsBuilder diagnostics, IEnumerable<
Edit
<SyntaxNode>> exceptionHandlingEdits, SyntaxNode oldStatement, TextSpan newStatementSpan);
789
foreach (
var
edit in syntacticEdits.Edits)
799
foreach (
var
edit in editScript.Edits)
1912
protected static bool HasParentEdit(IReadOnlyDictionary<SyntaxNode, EditKind> editMap,
Edit
<SyntaxNode> edit)
2733
foreach (
var
edit in editScript.Edits)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditScriptDescription.cs (1)
21
public ImmutableArray<
Edit
<SyntaxNode>> Edits => Script.Edits;
Microsoft.CodeAnalysis.Workspaces (13)
Differencing\Edit.cs (4)
18
public readonly struct Edit<TNode> : IEquatable<
Edit
<TNode>>
65
=> obj is
Edit
<TNode> && Equals((
Edit
<TNode>)obj);
67
public bool Equals(
Edit
<TNode> other)
Differencing\EditScript.cs (6)
22
var edits = new List<
Edit
<TNode>>();
29
public ImmutableArray<
Edit
<TNode>> Edits { get; }
39
private void AddUpdatesInsertsMoves(List<
Edit
<TNode>> edits)
70
private void ProcessNode(List<
Edit
<TNode>> edits, TNode x)
140
private void AddDeletes(List<
Edit
<TNode>> edits)
161
private void AlignChildren(List<
Edit
<TNode>> edits, TNode w, TNode x)
Differencing\MapBasedLongestCommonSubsequence.cs (1)
15
internal IEnumerable<
Edit
<TNode>> GetEdits(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes, TreeComparer<TNode>? treeComparer = null)
Differencing\Match.cs (1)
369
public IEnumerable<
Edit
<TNode>> GetSequenceEdits(IEnumerable<TNode> oldNodes, IEnumerable<TNode> newNodes)
Differencing\Match.LongestCommonSubsequence.cs (1)
39
internal IEnumerable<
Edit
<TNode>> GetEdits(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes)