14 references to SpanIncludingLineBreak
Microsoft.CodeAnalysis (4)
Text\CompositeText.cs (4)
504
var lineLength = firstSegmentTextLine.
SpanIncludingLineBreak
.Length;
515
(nextSegment.Lines.Count == 2 && nextSegment.Lines[1].
SpanIncludingLineBreak
.IsEmpty));
517
lineLength += nextSegment.Lines[0].
SpanIncludingLineBreak
.Length;
529
lineLength += 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)
250
var textChange = new TextChange(text.Lines[lineNumber].
SpanIncludingLineBreak
, string.Empty);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (2)
175
var trueSpan = TextSpan.FromBounds(trueSpanStart, Math.Max(trueSpanStart, text.Lines[elseDirectiveLine.LineNumber - 1].
SpanIncludingLineBreak
.End));
178
var 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.Workspaces (4)
Shared\Extensions\FileLinePositionSpanExtensions.cs (4)
60
startColumn = lines[startLine].
SpanIncludingLineBreak
.Length;
73
endColumn = lines[endLine].
SpanIncludingLineBreak
.Length;
77
startColumn = Math.Min(startColumn, lines[startLine].
SpanIncludingLineBreak
.Length);
78
endColumn = Math.Min(endColumn, lines[endLine].
SpanIncludingLineBreak
.Length);