14 references to SyntaxComparer
Microsoft.CodeAnalysis.CSharp.Features (14)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (10)
227if (isBody || SyntaxComparer.Statement.HasLabel(node)) 414=> SyntaxComparer.TopLevel.ComputeMatch(oldCompilationUnit, newCompilationUnit); 418BidirectionalMap<SyntaxNode>.FromMatch(SyntaxComparer.TopLevel.ComputeMatch(oldParameterList, newParameterList)) : null; 465var comparer = new SyntaxComparer(oldRoot, newRoot, GetChildNodes(oldRoot, oldBody), GetChildNodes(newRoot, newBody), compareStatementSyntax: true); 470return SyntaxComparer.Statement.ComputeMatch(oldBody, newBody, knownMatches); 580=> SyntaxComparer.GetSequenceEdits(oldNodes, newNodes); 590=> SyntaxComparer.Statement.GetLabel(node1) == SyntaxComparer.Statement.GetLabel(node2); 909SyntaxComparer.GetLocalNames(oldNode, ref oldTokens); 910SyntaxComparer.GetLocalNames(newNode, ref newTokens);
EditAndContinue\DeclarationBody\InstanceConstructorDeclarationBody.cs (1)
104? SyntaxComparer.Statement.ComputeMatch(oldRoot, newRoot, knownMatches)
EditAndContinue\DeclarationBody\PropertyOrIndexerAccessorDeclarationBody.cs (1)
151? SyntaxComparer.Statement.ComputeMatch(oldRoot, newRoot, knownMatches)
EditAndContinue\SyntaxComparer.cs (2)
33internal static readonly SyntaxComparer TopLevel = new(null, null, null, null, compareStatementSyntax: false); 34internal static readonly SyntaxComparer Statement = new(null, null, null, null, compareStatementSyntax: true);