26 references to ComputeDistance
Microsoft.CodeAnalysis.CSharp.Features (25)
EditAndContinue\SyntaxComparer.cs (25)
841
ComputeDistance
(leftUsing.Alias, rightUsing.Alias) +
842
ComputeDistance
(leftUsing.NamespaceOrType, rightUsing.NamespaceOrType);
906
distance =
ComputeDistance
((TypeParameterConstraintClauseSyntax)leftNode, (TypeParameterConstraintClauseSyntax)rightNode);
910
distance =
ComputeDistance
((TypeParameterSyntax)leftNode, (TypeParameterSyntax)rightNode);
914
distance =
ComputeDistance
((ParameterSyntax)leftNode, (ParameterSyntax)rightNode);
918
distance =
ComputeDistance
((AttributeListSyntax)leftNode, (AttributeListSyntax)rightNode);
922
distance =
ComputeDistance
((AttributeSyntax)leftNode, (AttributeSyntax)rightNode);
926
distance =
ComputeDistance
((ExtensionBlockDeclarationSyntax)leftNode, (ExtensionBlockDeclarationSyntax)rightNode);
958
var returnTypeDistance =
ComputeDistance
(leftReturnType, rightReturnType);
960
var typeParameterDistance =
ComputeDistance
(leftTypeParameters, rightTypeParameters);
962
var bodyDistance =
ComputeDistance
(leftBody, rightBody);
1124
var distance =
ComputeDistance
(leftNode, rightNode);
1131
parentDistance =
ComputeDistance
(leftNode.Parent, rightNode.Parent);
1153
var blockDistance =
ComputeDistance
(left.Block, right.Block);
1162
var statementDistance =
ComputeDistance
(leftCommonForEach.Statement, rightCommonForEach.Statement);
1163
var expressionDistance =
ComputeDistance
(leftCommonForEach.Expression, rightCommonForEach.Expression);
1178
var statementDistance =
ComputeDistance
(left.Statement, right.Statement);
1179
var conditionDistance =
ComputeDistance
(left.Condition, right.Condition);
1199
var distance =
ComputeDistance
(leftStatement, rightStatement);
1217
var headerDistance =
ComputeDistance
(leftHeader, rightHeader);
1218
var statementDistance =
ComputeDistance
(leftStatement, rightStatement);
1400
var distance1 =
ComputeDistance
(left1, right1);
1401
var distance2 =
ComputeDistance
(left2, right2);
1547
var distance =
ComputeDistance
(oldNode, newNode);
1572
distance =
ComputeDistance
(leftNode, rightNode);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\SyntaxComparerTests.cs (1)
118
var distance = SyntaxComparer.
ComputeDistance
(MakeLiteral(101), MakeLiteral(150));