16 references to ContentEquals
dotnet-format (1)
Formatters\DocumentFormatter.cs (1)
113
return !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)
25
return x.
ContentEquals
(y);
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (2)
72
if (oldText.GetSubText(new TextSpan(change.Span.Start + offset, change.NewText.Length)).
ContentEquals
(SourceText.From(change.NewText)))
81
if (oldText.GetSubText(new TextSpan(change.Span.Start, change.NewText.Length)).
ContentEquals
(SourceText.From(change.NewText)))
Microsoft.CodeAnalysis.Features (6)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
536
hasChanges = !oldText.
ContentEquals
(newText);
EditAndContinue\CommittedSolution.cs (1)
301
if (committedDocument != null && sourceText.
ContentEquals
(matchingSourceText))
EditAndContinue\EditSession.cs (2)
216
if (oldLineSpan != newLineSpan || !oldText.GetSubText(oldLineSpan).
ContentEquals
(newText.GetSubText(newLineSpan)))
330
return oldSource.
ContentEquals
(newSource);
src\roslyn\src\Analyzers\Core\Analyzers\Formatting\AbstractFormattingAnalyzer.cs (2)
72
if (oldText.GetSubText(new TextSpan(change.Span.Start + offset, change.NewText.Length)).
ContentEquals
(SourceText.From(change.NewText)))
81
if (oldText.GetSubText(new TextSpan(change.Span.Start, change.NewText.Length)).
ContentEquals
(SourceText.From(change.NewText)))
Microsoft.CodeAnalysis.Razor.Compiler (2)
SourceGenerators\RazorSourceGenerator.cs (1)
347
return a.csharpDocument.Text.
ContentEquals
(b.csharpDocument.Text);
SourceGenerators\SourceGeneratorText.cs (1)
17
return Text.
ContentEquals
(other.Text);
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Workspace_Editor.cs (2)
490
return oldText.
ContentEquals
(newText)
593
if (oldText == newText || oldText.
ContentEquals
(newText))