24 references to ContentEquals
Microsoft.CodeAnalysis (3)
Text\SourceText.cs (2)
582/// Two different <see cref="SourceText"/> instances with the same content (see <see cref="ContentEquals"/>) may 610/// <see cref="SourceText"/> instances that are <see cref="ContentEquals"/> will have the same content hash. Two
Text\SourceTextComparer.cs (1)
25return x.ContentEquals(y);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (2)
72if (oldText.GetSubText(new TextSpan(change.Span.Start + offset, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText))) 81if (oldText.GetSubText(new TextSpan(change.Span.Start, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText)))
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
308return originalStringContentsAfterPaste.ContentEquals(newStringContentsAfterEdit);
Microsoft.CodeAnalysis.Features (3)
EditAndContinue\EditSession.cs (1)
221if (oldLineSpan != newLineSpan || !oldText.GetSubText(oldLineSpan).ContentEquals(newText.GetSubText(newLineSpan)))
src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (2)
72if (oldText.GetSubText(new TextSpan(change.Span.Start + offset, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText))) 81if (oldText.GetSubText(new TextSpan(change.Span.Start, change.NewText.Length)).ContentEquals(SourceText.From(change.NewText)))
Microsoft.CodeAnalysis.UnitTests (12)
Text\SourceTextTests.cs (12)
37Assert.True(text1.ContentEquals(text2)); 195Assert.True(text.ContentEquals(changed)); 215Assert.True(f.ContentEquals(SourceText.From(HelloWorld, s_utf8))); 216Assert.False(f.ContentEquals(SourceText.From(HelloWorld + "o", s_utf8))); 217Assert.True(SourceText.From(HelloWorld, s_utf8).ContentEquals(SourceText.From(HelloWorld, s_utf8))); 222Assert.True(e1.ContentEquals(e1)); 223Assert.True(f.ContentEquals(e1)); 224Assert.True(e1.ContentEquals(f)); 226Assert.True(e2.ContentEquals(e2)); 227Assert.True(e1.ContentEquals(e2)); 228Assert.True(e2.ContentEquals(e1)); 273Assert.True(sourceText1.ContentEquals(sourceText2));
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Workspace_Editor.cs (2)
489return oldText.ContentEquals(newText) 592if (oldText == newText || oldText.ContentEquals(newText))
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
202Assert.True(currentDocument.GetTextSynchronously(CancellationToken.None).ContentEquals(document.GetTextSynchronously(CancellationToken.None)))