30 references to IsEquivalentTo
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
1422return IsEquivalentTo(other);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
149proposedReplacementRecursivePattern.IsEquivalentTo(originalOldRecursivePattern.WithDesignation(null))) 160proposedReplacementListPattern.IsEquivalentTo(originalOldListPattern.WithDesignation(null)))
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
167canBeMultiLineWithoutLeadingWhiteSpaces = !cleaned.IsEquivalentTo(converted);
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (2)
149proposedReplacementRecursivePattern.IsEquivalentTo(originalOldRecursivePattern.WithDesignation(null))) 160proposedReplacementListPattern.IsEquivalentTo(originalOldListPattern.WithDesignation(null)))
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
Syntax\SyntaxAnnotationTests.cs (1)
625Assert.True(oldNode.IsEquivalentTo(annotatedNode));
Syntax\SyntaxNodeTests.cs (8)
779Assert.True(tree.GetCompilationUnitRoot().IsEquivalentTo(tree.GetCompilationUnitRoot())); 787Assert.False(tree.GetCompilationUnitRoot().IsEquivalentTo(null)); 797Assert.True(tree1.GetCompilationUnitRoot().IsEquivalentTo(tree2.GetCompilationUnitRoot())); 806Assert.False(tree1.GetCompilationUnitRoot().IsEquivalentTo(tree2.GetCompilationUnitRoot())); 815Assert.False(tree1.GetCompilationUnitRoot().IsEquivalentTo(tree2.GetCompilationUnitRoot())); 828Assert.True(m1.IsEquivalentTo(m2)); 836Assert.False(tree1.GetCompilationUnitRoot().IsEquivalentTo(tree2.GetCompilationUnitRoot())); 1362Assert.True(def.IsEquivalentTo(structure)); // they should be equivalent though
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Reducers\CSharpCastReducer.Rewriter.cs (1)
62if (reparsedAncestor != null && !reparsedAncestor.IsEquivalentTo(reducedAncestor))
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Formatting\CoreFormatterTestsBase.cs (1)
223Assert.True(newRootNodeFromString.IsEquivalentTo(newRootNode));
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
IncrementalParser\IncrementalParser.vb (2)
98Assert.True(prevRoot.IsEquivalentTo(root)) 2585Assert.True(rootA.IsEquivalentTo(rootB))
Syntax\SyntaxAnnotationTests.vb (1)
567Assert.True(oldNode.IsEquivalentTo(annotatedNode))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
232If Not newTreeRoot.IsEquivalentTo(incTreeRoot) Then
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Formatting\FormattingTestBase.cs (1)
79Assert.True(newRootNodeFromString.IsEquivalentTo(newRootNode));
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
3207Assert.True(annotatedRoot.IsEquivalentTo(root2)); 3444Assert.True(tree.IsEquivalentTo(docTree));
Microsoft.Interop.SourceGeneration (6)
ManagedTypeInfo.cs (1)
21&& Syntax.IsEquivalentTo(other.Syntax)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (3)
266TypeSyntax bufferElementTypeSyntax = marshallerData.BufferElementType.Syntax.IsEquivalentTo(marshalInfo.PlaceholderTypeParameter.Syntax) 312TypeSyntax bufferElementTypeSyntax = marshallerData.BufferElementType.Syntax.IsEquivalentTo(marshalInfo.PlaceholderTypeParameter.Syntax) 414originalTypeSyntax.DescendantNodesAndSelf().OfType<TypeSyntax>().Where(t => t.IsEquivalentTo(marshalInfo.PlaceholderTypeParameter.Syntax)),
SignatureContext.cs (1)
140&& StubReturnType.IsEquivalentTo(other.StubReturnType)
SyntaxEquivalentComparer.cs (1)
24return x.IsEquivalentTo(y);