12 references to ComputeMatch
Microsoft.CodeAnalysis.CSharp.Features (6)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (4)
398
=> SyntaxComparer.TopLevel.
ComputeMatch
(oldCompilationUnit, newCompilationUnit);
402
BidirectionalMap<SyntaxNode>.FromMatch(SyntaxComparer.TopLevel.
ComputeMatch
(oldParameterList, newParameterList)) : null;
451
return comparer.
ComputeMatch
(oldRoot, newRoot, knownMatches);
454
return SyntaxComparer.Statement.
ComputeMatch
(oldBody, newBody, knownMatches);
EditAndContinue\DeclarationBody\InstanceConstructorDeclarationBody.cs (1)
104
? SyntaxComparer.Statement.
ComputeMatch
(oldRoot, newRoot, knownMatches)
EditAndContinue\DeclarationBody\PropertyOrIndexerAccessorDeclarationBody.cs (1)
152
? SyntaxComparer.Statement.
ComputeMatch
(oldRoot, newRoot, knownMatches)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\Helpers\EditingTestBase.cs (1)
157
var match = SyntaxComparer.TopLevel.
ComputeMatch
(tree1.GetRoot(), tree2.GetRoot());
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Differencing\MatchTests.cs (5)
24
var m = TestTreeComparer.Instance.
ComputeMatch
(oldRoot, newRoot,
29
Assert.Throws<ArgumentException>(() => TestTreeComparer.Instance.
ComputeMatch
(oldRoot, newRoot, [KeyValuePair.Create(x1, x1)]));
31
Assert.Throws<ArgumentException>(() => TestTreeComparer.Instance.
ComputeMatch
(oldRoot, newRoot, [KeyValuePair.Create(x1, x2), KeyValuePair.Create(x1, new TestNode(0, 0))]));
47
var m = TestTreeComparer.Instance.
ComputeMatch
(oldRoot, newRoot,
73
var m = TestTreeComparer.Instance.
ComputeMatch
(oldRoot, newRoot,