16 references to ContentEquals
dotnet-format (1)
Formatters\DocumentFormatter.cs (1)
113return !formattedSourceText.ContentEquals(originalSourceText) || !formattedSourceText.Encoding?.Equals(originalSourceText.Encoding) == true
Microsoft.CodeAnalysis (3)
Text\SourceText.cs (2)
584/// Two different <see cref="SourceText"/> instances with the same content (see <see cref="ContentEquals"/>) may 612/// <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\roslyn\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.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
536hasChanges = !oldText.ContentEquals(newText);
EditAndContinue\CommittedSolution.cs (1)
301if (committedDocument != null && sourceText.ContentEquals(matchingSourceText))
EditAndContinue\EditSession.cs (2)
216if (oldLineSpan != newLineSpan || !oldText.GetSubText(oldLineSpan).ContentEquals(newText.GetSubText(newLineSpan))) 330return oldSource.ContentEquals(newSource);
src\roslyn\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.Razor.Compiler (2)
SourceGenerators\RazorSourceGenerator.cs (1)
347return a.csharpDocument.Text.ContentEquals(b.csharpDocument.Text);
SourceGenerators\SourceGeneratorText.cs (1)
17return Text.ContentEquals(other.Text);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Workspace_Editor.cs (2)
490return oldText.ContentEquals(newText) 593if (oldText == newText || oldText.ContentEquals(newText))