25 references to ComputeDistance
Microsoft.CodeAnalysis.CSharp.Features (24)
EditAndContinue\SyntaxComparer.cs (24)
836
ComputeDistance
(leftUsing.Alias, rightUsing.Alias) +
837
ComputeDistance
(leftUsing.NamespaceOrType, rightUsing.NamespaceOrType);
901
distance =
ComputeDistance
((TypeParameterConstraintClauseSyntax)leftNode, (TypeParameterConstraintClauseSyntax)rightNode);
905
distance =
ComputeDistance
((TypeParameterSyntax)leftNode, (TypeParameterSyntax)rightNode);
909
distance =
ComputeDistance
((ParameterSyntax)leftNode, (ParameterSyntax)rightNode);
913
distance =
ComputeDistance
((AttributeListSyntax)leftNode, (AttributeListSyntax)rightNode);
917
distance =
ComputeDistance
((AttributeSyntax)leftNode, (AttributeSyntax)rightNode);
949
var returnTypeDistance =
ComputeDistance
(leftReturnType, rightReturnType);
951
var typeParameterDistance =
ComputeDistance
(leftTypeParameters, rightTypeParameters);
953
var bodyDistance =
ComputeDistance
(leftBody, rightBody);
1115
var distance =
ComputeDistance
(leftNode, rightNode);
1122
parentDistance =
ComputeDistance
(leftNode.Parent, rightNode.Parent);
1144
var blockDistance =
ComputeDistance
(left.Block, right.Block);
1153
var statementDistance =
ComputeDistance
(leftCommonForEach.Statement, rightCommonForEach.Statement);
1154
var expressionDistance =
ComputeDistance
(leftCommonForEach.Expression, rightCommonForEach.Expression);
1169
var statementDistance =
ComputeDistance
(left.Statement, right.Statement);
1170
var conditionDistance =
ComputeDistance
(left.Condition, right.Condition);
1190
var distance =
ComputeDistance
(leftStatement, rightStatement);
1208
var headerDistance =
ComputeDistance
(leftHeader, rightHeader);
1209
var statementDistance =
ComputeDistance
(leftStatement, rightStatement);
1391
var distance1 =
ComputeDistance
(left1, right1);
1392
var distance2 =
ComputeDistance
(left2, right2);
1535
var distance =
ComputeDistance
(oldNode, newNode);
1560
distance =
ComputeDistance
(leftNode, rightNode);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\SyntaxComparerTests.cs (1)
118
var distance = SyntaxComparer.
ComputeDistance
(MakeLiteral(101), MakeLiteral(150));