Share via


TreeComparer<TNode>.ComputeMatch Method

Definition

Returns a match map of oldRoot descendants to newRoot descendants.

public Microsoft.CodeAnalysis.Differencing.Match<TNode> ComputeMatch (TNode oldRoot, TNode newRoot, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TNode,TNode>> knownMatches = default);
public Microsoft.CodeAnalysis.Differencing.Match<TNode> ComputeMatch (TNode oldRoot, TNode newRoot, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TNode,TNode>>? knownMatches = default);
member this.ComputeMatch : 'Node * 'Node * seq<System.Collections.Generic.KeyValuePair<'Node, 'Node>> -> Microsoft.CodeAnalysis.Differencing.Match<'Node>
Public Function ComputeMatch (oldRoot As TNode, newRoot As TNode, Optional knownMatches As IEnumerable(Of KeyValuePair(Of TNode, TNode)) = Nothing) As Match(Of TNode)

Parameters

oldRoot
TNode
newRoot
TNode
knownMatches
IEnumerable<KeyValuePair<TNode,TNode>>

Returns

Applies to