29 references to EndIncludingLineBreak
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
231var lineEnd = lineNumber == lastLineExclusive - 1 ? currentLine.End : currentLine.EndIncludingLineBreak;
Microsoft.CodeAnalysis (7)
Syntax\LineDirectiveMap.cs (2)
209int lineLength = endLine.EndIncludingLineBreak - endLine.Start; 229int lineLength = lastLine.EndIncludingLineBreak - lastLine.Start;
Text\SubText.cs (4)
121underlyingSpanStart == startLineInUnderlyingText.EndIncludingLineBreak - 1) 129underlyingSpanEnd == endLineInUnderlyingText.EndIncludingLineBreak - 1) 174var endInUnderlyingText = Math.Min(underlyingTextLine.EndIncludingLineBreak, _subText.UnderlyingSpan.End); 184var resultContainsLineBreak = resultLine.EndIncludingLineBreak > resultLine.End;
Text\TextLine.cs (1)
168get { return TextSpan.FromBounds(this.Start, this.EndIncludingLineBreak); }
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
220var lineEnd = lineNumber == lastLineExclusive - 1 ? currentLine.End : currentLine.EndIncludingLineBreak;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
275=> lastToken.IsMissing && lastToken.Span.End == line.EndIncludingLineBreak;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Extensions\SyntaxTreeExtensionsTests.cs (2)
19for (var pos = line.Start; pos < line.EndIncludingLineBreak; pos++) 28for (var pos = line.Start; pos < line.EndIncludingLineBreak; pos++)
Microsoft.CodeAnalysis.CSharp.Features (4)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (2)
316builder.Append(text.ToString(TextSpan.FromBounds(line.End, line.EndIncludingLineBreak))); 336builder.Append(text.ToString(TextSpan.FromBounds(firstNonWhitespacePos, line.EndIncludingLineBreak)));
ExtractMethod\CSharpSelectionValidator.cs (1)
552return TextSpan.FromBounds(textSpan.Start, previousLine.EndIncludingLineBreak);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
846var lineBreakSpan = TextSpan.FromBounds(lineToConsider.End, lineToConsider.EndIncludingLineBreak);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
220var lineEnd = lineNumber == lastLineExclusive - 1 ? currentLine.End : currentLine.EndIncludingLineBreak;
Microsoft.CodeAnalysis.Features (2)
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
187return TextSpan.FromBounds(startToken.Value.SpanStart, line.EndIncludingLineBreak);
EditAndContinue\EditSession.cs (1)
229TextSpan.FromBounds(newText.Lines[newLineCount - 1].End, newText.Lines[newLineCount - 1].EndIncludingLineBreak);
Microsoft.CodeAnalysis.UnitTests (5)
Text\LargeTextTests.cs (2)
161Assert.Equal(start + length + newlineLength, textLine.EndIncludingLineBreak); 171for (int p = textLine.Start; p < textLine.EndIncludingLineBreak; ++p)
Text\StringText_LineTest.cs (1)
23Assert.Equal(3 + newLine.Length, line.EndIncludingLineBreak);
Text\StringTextTest.cs (2)
114Assert.Equal(start + length + newlineLength, textLine.EndIncludingLineBreak); 124for (int p = textLine.Start; p < textLine.EndIncludingLineBreak; ++p)
Microsoft.VisualStudio.LanguageServices (5)
Implementation\AbstractEditorFactory.cs (2)
361var originalNewLine = originalText.ToString(CodeAnalysis.Text.TextSpan.FromBounds(originalLine.End, originalLine.EndIncludingLineBreak)); 367var currentSpan = CodeAnalysis.Text.TextSpan.FromBounds(currentLine.End, currentLine.EndIncludingLineBreak);
Venus\ContainedDocument.cs (3)
548TextSpan.FromBounds(visibleFirstLineInOriginalText.EndIncludingLineBreak, visibleLastLineInOriginalText.Start), 566if (visibleFirstLineInOriginalText.EndIncludingLineBreak <= spanInOriginalText.End) 569TextSpan.FromBounds(visibleFirstLineInOriginalText.EndIncludingLineBreak, spanInOriginalText.End),