16 references to SpanIncludingLineBreak
dotnet (1)
Commands\Run\FileBasedAppSourceEditor.cs (1)
65? text.ToString(line.SpanIncludingLineBreak)
Microsoft.CodeAnalysis (4)
Text\CompositeText.cs (4)
504var lineLength = firstSegmentTextLine.SpanIncludingLineBreak.Length; 515(nextSegment.Lines.Count == 2 && nextSegment.Lines[1].SpanIncludingLineBreak.IsEmpty)); 517lineLength += nextSegment.Lines[0].SpanIncludingLineBreak.Length; 529lineLength += lastSegmentLine.SpanIncludingLineBreak.Length;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
390=> text.Lines.GetLineFromPosition(position).SpanIncludingLineBreak.End;
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
480=> builder.Append(line.Text!.ToString(line.SpanIncludingLineBreak));
Microsoft.CodeAnalysis.Features (4)
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
250var textChange = new TextChange(text.Lines[lineNumber].SpanIncludingLineBreak, string.Empty);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (2)
175var trueSpan = TextSpan.FromBounds(trueSpanStart, Math.Max(trueSpanStart, text.Lines[elseDirectiveLine.LineNumber - 1].SpanIncludingLineBreak.End)); 178var falseSpan = TextSpan.FromBounds(falseSpanStart, Math.Max(falseSpanStart, text.Lines[endIfDirectiveLine.LineNumber - 1].SpanIncludingLineBreak.End));
src\roslyn\src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
390=> text.Lines.GetLineFromPosition(position).SpanIncludingLineBreak.End;
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.MoveToLineCodeAction.vb (1)
38Dim textWithoutLine = text.WithChanges(New TextChange(textLineToMove.SpanIncludingLineBreak, ""))
Microsoft.CodeAnalysis.Workspaces (4)
Shared\Extensions\FileLinePositionSpanExtensions.cs (4)
60startColumn = lines[startLine].SpanIncludingLineBreak.Length; 73endColumn = lines[endLine].SpanIncludingLineBreak.Length; 77startColumn = Math.Min(startColumn, lines[startLine].SpanIncludingLineBreak.Length); 78endColumn = Math.Min(endColumn, lines[endLine].SpanIncludingLineBreak.Length);