73 references to End
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
231var lineEnd = lineNumber == lastLineExclusive - 1 ? currentLine.End : currentLine.EndIncludingLineBreak;
Infrastructure\VirtualChars\TextLineExtensions.cs (1)
15for (var i = line.Start; i < line.End; i++)
Microsoft.CodeAnalysis (4)
Text\SubText.cs (3)
120if (underlyingSpanStart == startLineInUnderlyingText.End + 1 && 128if (underlyingSpanEnd == endLineInUnderlyingText.End + 1 && 184var resultContainsLineBreak = resultLine.EndIncludingLineBreak > resultLine.End;
Text\TextLine.cs (1)
160get { return TextSpan.FromBounds(this.Start, this.End); }
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
78activeSectionEnd = textLine.End; 103activeSectionEnd = textLine.End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (2)
17for (var i = line.End - 1; i >= startPosition; i--) 49for (var i = line.Start; i < line.End; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
218firstNonWhitespace ??= lineToMatch.End;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
247var currentLineLength = currentLine.End - currentLine.Start;
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
72text.Lines[diagnosticLinePositionSpan.End.Line].End);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1289var lineLength = line.End - line.Start;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
135for (var i = textLine.Start; i < textLine.End; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharService.cs (1)
220var lineEnd = lineNumber == lastLineExclusive - 1 ? currentLine.End : currentLine.EndIncludingLineBreak;
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
199if (position == line.End && owningNode is ExpressionStatementSyntax) 209var endingString = text.ToString(TextSpan.FromBounds(lastToken.Span.End, line.End));
InlineRename\CSharpEditorInlineRenameService.cs (1)
158endPosition = documentText.Lines[endLine].End;
StringCopyPaste\StringCopyPasteHelpers.cs (1)
106for (int i = line.Start, n = line.End; i < n; i++)
Microsoft.CodeAnalysis.CSharp.Features (7)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (1)
316builder.Append(text.ToString(TextSpan.FromBounds(line.End, line.EndIncludingLineBreak)));
EmbeddedLanguages\CSharpTestEmbeddedLanguageClassifier.cs (3)
73for (var i = lastLine.Start; i < lastLine.End && SyntaxFacts.IsWhitespace(text[i]); i++) 79if (currentLine.Start + whitespaceCount < currentLine.End) 85currentLine.End));
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
135for (var i = textLine.Start; i < textLine.End; i++)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
846var lineBreakSpan = TextSpan.FromBounds(lineToConsider.End, lineToConsider.EndIncludingLineBreak);
Structure\Providers\IfDirectiveTriviaStructureProvider.cs (1)
53var span = TextSpan.FromBounds(startLine.Start, endLine.End);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\LineSpanDirectiveTests.cs (2)
501return Math.Min(line.Start + position.Character, line.End); 503return (lines.Count == 0) ? 0 : lines[^1].End;
Syntax\SyntaxNodeTests.cs (1)
787var position = tree.GetText().Lines[2].End - 1;
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.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
925var span = new TextSpan(line.Start, line.End);
Microsoft.CodeAnalysis.Features (9)
ClassifiedSpansAndHighlightSpanFactory.cs (1)
53return TextSpan.FromBounds(Math.Min(firstNonWhitespacePosition, referenceSpan.Start), sourceLine.End);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (3)
128token = root.FindToken(line.End); 135token = root.FindToken(lines[indexOfLine].End, findInsideTrivia: true); 283var endToken = root.FindToken(lineAtPos.End);
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
285if (!IsAtEndOfDocCommentTriviaOnBlankLine(text, previousLine.End))
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
723lineText = text.ToString(TextSpan.FromBounds(diagnostic.Span.Start, Math.Min(diagnostic.Span.Start + 120, line.End)));
EditAndContinue\EditSession.cs (1)
229TextSpan.FromBounds(newText.Lines[newLineCount - 1].End, newText.Lines[newLineCount - 1].EndIncludingLineBreak);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (1)
247var currentLineLength = currentLine.End - currentLine.Start;
TaskList\AbstractTaskListService.cs (1)
145var startMessage = text.ToString(TextSpan.FromBounds(fullSpan.Start, startLine.End));
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (2)
186desiredCaretLinePosition = indentedText.Lines.GetLinePosition(caretLineInIndentedText.End); 220var indentedText = textToIndent.WithChanges(new TextChange(new TextSpan(lineToIndent.End, 0), indentText));
Handler\SemanticTokens\SemanticTokensHelpers.cs (2)
199textSpan = TextSpan.FromBounds(Math.Min(absoluteStart, line.End), line.End);
Microsoft.CodeAnalysis.UnitTests (4)
Text\LargeTextTests.cs (1)
160Assert.Equal(start + length, textLine.End);
Text\StringText_LineTest.cs (2)
34Assert.Equal(3, line.End); 45Assert.Equal(text.Length, line.End);
Text\StringTextTest.cs (1)
113Assert.Equal(start + length, textLine.End);
Microsoft.CodeAnalysis.VisualBasic (4)
CommandLine\CommandLineDiagnosticFormatter.vb (4)
80For position = Math.Min(sourceSpanStart, line.Start) To Math.Min(line.End, sourceSpanStart) - 1 93For position = Math.Max(sourceSpanStart, line.Start) To Math.Min(If(sourceSpanEnd = sourceSpanStart, sourceSpanEnd, sourceSpanEnd - 1), line.End - 1) 104For position = Math.Min(sourceSpanEnd, line.End) To line.End - 1
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Utilities\NavigationPointHelpers.vb (1)
68Return New VirtualTreePoint(beginStatement.SyntaxTree, text, line.End, targetColumn - totalLineSize)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
TestSyntaxNodes.vb (1)
2349Dim position = tree.GetText().Lines(1).End
Microsoft.CodeAnalysis.Workspaces (7)
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (2)
72var endLineEndPosition = oldDocumentText.Lines.GetLineFromPosition(endPosition).End; 144? text.GetSubText(TextSpan.FromBounds(text.Lines[startLine].Start, text.Lines[endLine].End)).ToString()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\EditorConfigParser.cs (2)
78activeSectionEnd = textLine.End; 103activeSectionEnd = textLine.End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\TextLineExtensions.cs (2)
17for (var i = line.End - 1; i >= startPosition; i--) 49for (var i = line.Start; i < line.End; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
218firstNonWhitespace ??= lineToMatch.End;
Microsoft.VisualStudio.LanguageServices (7)
CallHierarchy\CallHierarchyDetail.cs (1)
45var end = location.SourceTree.GetText().Lines[lineSpan.EndLinePosition.Line].End;
Extensions\DocumentExtensions.cs (1)
55var end = Math.Max(start, previousLine.End);
FindReferences\Entries\DocumentSpanEntry.cs (1)
241sourceText.Lines[lastLineNumber].End);
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 (2)
941start = (start < firstLine.End) ? start : firstLine.End;
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.NodeLocator.cs (2)
140var textAfterBrace = text.ToString(TextSpan.FromBounds(openBrace.Span.End, openBraceLine.End)); 194return new VirtualTreePoint(openBrace.SyntaxTree, text, lineAfterOpenBrace.End, virtualSpaces);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
CodeModel\MockTextManagerAdapter.TextPoint.cs (2)
35get { return _point.Position == _point.GetContainingLine().End; } 106return line.End - line.Start;