31 references to 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; 527lineLength += lastSegment.Lines[0].SpanIncludingLineBreak.Length;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
389=> text.Lines.GetLineFromPosition(position).SpanIncludingLineBreak.End;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
StringCopyPaste\KnownSourcePasteProcessor.cs (1)
297builder.Append(sourceText.ToString(sourceText.Lines[i].SpanIncludingLineBreak));
StringCopyPaste\StringCopyPasteHelpers.cs (1)
24=> line.Span.End != line.SpanIncludingLineBreak.End;
StringCopyPaste\UnknownSourcePasteProcessor.cs (2)
186var fullChangeLineText = textOfCurrentChange.ToString(currentChangeLine.SpanIncludingLineBreak); 255var fullChangeLineText = textOfCurrentChange.ToString(currentChangeLine.SpanIncludingLineBreak);
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
476=> builder.Append(line.Text!.ToString(line.SpanIncludingLineBreak));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
IncrementalParsing\IncrementalParsingTests.cs (2)
627var withOpenBraceDeletedText = initialText.WithChanges(new TextChange(openBraceLine.SpanIncludingLineBreak, "")); 838var withCloseBraceDeletedText = withOpenBraceDeletedText.WithChanges(new TextChange(closeBraceLine.SpanIncludingLineBreak, ""));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
EditorAdapter\TextSnapshotImplementationTest.cs (2)
44Assert.Equal(new TextSpan(0, 5), line1.SpanIncludingLineBreak); 55Assert.Equal(new TextSpan(5, 3), line1.SpanIncludingLineBreak);
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
389=> text.Lines.GetLineFromPosition(position).SpanIncludingLineBreak.End;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
SemanticTokens\AbstractSemanticTokensTests.cs (1)
99var lineLength = text.Lines[currentLine].SpanIncludingLineBreak.Length;
Microsoft.CodeAnalysis.UnitTests (10)
Text\CompositeTextTests.cs (1)
50return textLines.Select(l => l.Text!.ToString(l.SpanIncludingLineBreak));
Text\LargeTextTests.cs (2)
164Assert.Equal(start, textLine.SpanIncludingLineBreak.Start); 165Assert.Equal(length + newlineLength, textLine.SpanIncludingLineBreak.Length);
Text\StringText_LineTest.cs (5)
33Assert.Equal(span, line.SpanIncludingLineBreak); 44Assert.Equal(span, line.SpanIncludingLineBreak); 87Assert.Equal(0, line.SpanIncludingLineBreak.Length); 90Assert.Equal(start, line.SpanIncludingLineBreak.Start); 100Assert.Equal(Environment.NewLine.Length, line.SpanIncludingLineBreak.Length);
Text\StringTextTest.cs (2)
117Assert.Equal(start, textLine.SpanIncludingLineBreak.Start); 118Assert.Equal(length + newlineLength, textLine.SpanIncludingLineBreak.Length);
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)
61startColumn = lines[startLine].SpanIncludingLineBreak.Length; 74endColumn = lines[endLine].SpanIncludingLineBreak.Length; 78startColumn = Math.Min(startColumn, lines[startLine].SpanIncludingLineBreak.Length); 79endColumn = Math.Min(endColumn, lines[endLine].SpanIncludingLineBreak.Length);