23 references to ComputeMatch
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
EditAndContinue\Helpers\EditingTestBase.cs (1)
95var match = SyntaxComparer.TopLevel.ComputeMatch(tree1.GetRoot(), tree2.GetRoot());
EditAndContinue\StatementMatchingTests.cs (3)
41var match = SyntaxComparer.Statement.ComputeMatch(m1, m2, knownMatches); 55match = SyntaxComparer.Statement.ComputeMatch(m1, m2); 83var match = SyntaxComparer.Statement.ComputeMatch(m1, m2, knownMatches);
Microsoft.CodeAnalysis.CSharp.Features (5)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
565=> SyntaxComparer.TopLevel.ComputeMatch(oldCompilationUnit, newCompilationUnit); 572return comparer.ComputeMatch(oldDeclaration.Parent, newDeclaration.Parent); 609return new SyntaxComparer(oldRoot, newRoot, GetChildNodes(oldRoot, oldBody), GetChildNodes(newRoot, newBody), compareStatementSyntax: true).ComputeMatch(oldRoot, newRoot, knownMatches); 621return SyntaxComparer.Statement.ComputeMatch(oldBody.Parent, newBody.Parent, knownMatches); 624return SyntaxComparer.Statement.ComputeMatch(oldBody, newBody, knownMatches);
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (4)
EditAndContinue\Helpers\EditingTestBase.vb (1)
124Dim match = SyntaxComparer.TopLevel.ComputeMatch(tree1.GetRoot(), tree2.GetRoot())
EditAndContinue\StatementMatchingTests.vb (3)
75Dim match = SyntaxComparer.Statement.ComputeMatch(m1, m2, knownMatches) 1333Dim match = SyntaxComparer.Statement.ComputeMatch(m1, m2, knownMatches) 1347match = SyntaxComparer.Statement.ComputeMatch(m1, m2)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (5)
657Return SyntaxComparer.TopLevel.ComputeMatch(oldCompilationUnit, newCompilationUnit) 673Return comparer.ComputeMatch(oldDeclaration.Parent, newDeclaration.Parent) 687ComputeMatch(oldBody.Parent, newBody.Parent, knownMatches) 696ComputeMatch(oldBody.Parent, newBody.Parent, knownMatches) 701Return SyntaxComparer.Statement.ComputeMatch(oldBody, newBody, knownMatches)
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Differencing\MatchTests.cs (5)
26var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, 31Assert.Throws<ArgumentException>(() => TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, new[] { KeyValuePairUtil.Create(x1, x1) })); 33Assert.Throws<ArgumentException>(() => TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, new[] { KeyValuePairUtil.Create(x1, x2), KeyValuePairUtil.Create(x1, new TestNode(0, 0)) })); 49var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, new[] 75var m = TestTreeComparer.Instance.ComputeMatch(oldRoot, newRoot, new[]