25 references to ComputeDistance
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
EditAndContinue\SyntaxComparerTests.cs (1)
136
var distance = SyntaxComparer.
ComputeDistance
(MakeLiteral(101), MakeLiteral(150));
Microsoft.CodeAnalysis.CSharp.Features (24)
EditAndContinue\SyntaxComparer.cs (24)
827
ComputeDistance
(leftUsing.Alias, rightUsing.Alias) +
828
ComputeDistance
(leftUsing.NamespaceOrType, rightUsing.NamespaceOrType);
892
distance =
ComputeDistance
((TypeParameterConstraintClauseSyntax)leftNode, (TypeParameterConstraintClauseSyntax)rightNode);
896
distance =
ComputeDistance
((TypeParameterSyntax)leftNode, (TypeParameterSyntax)rightNode);
900
distance =
ComputeDistance
((ParameterSyntax)leftNode, (ParameterSyntax)rightNode);
904
distance =
ComputeDistance
((AttributeListSyntax)leftNode, (AttributeListSyntax)rightNode);
908
distance =
ComputeDistance
((AttributeSyntax)leftNode, (AttributeSyntax)rightNode);
940
var returnTypeDistance =
ComputeDistance
(leftReturnType, rightReturnType);
942
var typeParameterDistance =
ComputeDistance
(leftTypeParameters, rightTypeParameters);
944
var bodyDistance =
ComputeDistance
(leftBody, rightBody);
1106
var distance =
ComputeDistance
(leftNode, rightNode);
1113
parentDistance =
ComputeDistance
(leftNode.Parent, rightNode.Parent);
1135
var blockDistance =
ComputeDistance
(left.Block, right.Block);
1144
var statementDistance =
ComputeDistance
(leftCommonForEach.Statement, rightCommonForEach.Statement);
1145
var expressionDistance =
ComputeDistance
(leftCommonForEach.Expression, rightCommonForEach.Expression);
1160
var statementDistance =
ComputeDistance
(left.Statement, right.Statement);
1161
var conditionDistance =
ComputeDistance
(left.Condition, right.Condition);
1181
var distance =
ComputeDistance
(leftStatement, rightStatement);
1199
var headerDistance =
ComputeDistance
(leftHeader, rightHeader);
1200
var statementDistance =
ComputeDistance
(leftStatement, rightStatement);
1382
var distance1 =
ComputeDistance
(left1, right1);
1383
var distance2 =
ComputeDistance
(left2, right2);
1526
var distance =
ComputeDistance
(oldNode, newNode);
1551
distance =
ComputeDistance
(leftNode, rightNode);