60 references to End
Microsoft.CodeAnalysis (2)
Diagnostic\FileLinePositionSpan.cs (1)
85public LinePosition EndLinePosition => Span.End;
Text\TextLineCollection.cs (1)
78return TextSpan.FromBounds(GetPosition(span.Start), GetPosition(span.End));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
78text.Lines[diagnosticLinePositionSpan.End.Line].End);
Microsoft.CodeAnalysis.CSharp (2)
CommandLine\CommandLineDiagnosticFormatter.cs (2)
35span.End.Line + 1, 36span.End.Character + 1);
Microsoft.CodeAnalysis.Features (20)
EditAndContinue\ActiveStatementsMap.cs (8)
217mappedSection.Span.End, 253var unmappedEndLine = mappedSpan.End.Line + lineDifference; 259var unmappedEndColumn = (mappedSpan.End.Line == mappedSection.Start.Line) 260? unmappedSection.Start.Character + mappedSpan.End.Character - mappedSection.Start.Character 261: mappedSpan.End.Character; 268if (lineSpan.Start.Line >= lines.Count || lineSpan.End.Line >= lines.Count) 275var end = lines[lineSpan.End.Line].Start + lineSpan.End.Character;
EditAndContinue\EditSession.cs (4)
1802Debug.Assert(newSpan.Span.End.Line - newSpan.Span.Start.Line == baseSpan.Span.End.Line - baseSpan.Span.Start.Line); 1803Debug.Assert(region.OldSpan.Span.End.Line - region.OldSpan.Span.Start.Line == baseSpan.Span.End.Line - baseSpan.Span.Start.Line);
EditAndContinue\SourceFileSpan.cs (1)
62=> Span.End;
EditAndContinue\Utilities\Extensions.cs (6)
21=> new(new LinePosition(span.Start.Line + lineDelta, span.Start.Character), new LinePosition(span.End.Line + lineDelta, span.End.Character)); 30=> span.Start >= container.Start && span.End <= container.End; 36=> new(span.Start.Line, span.Start.Character, span.End.Line, span.End.Character);
src\roslyn\src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (1)
78text.Lines[diagnosticLinePositionSpan.End.Line].End);
Microsoft.CodeAnalysis.Razor.DotNetFormat (33)
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Formatting\FormattingUtilities.cs (1)
103if (range.Start.Line == range.End.Line)
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Formatting\Passes\RazorFormattingPass.cs (10)
413openBraceRange.End.Line == codeRange.Start.Line && 418changes.Add(new TextChange(source.Text.GetTextSpan(openBraceRange.End, end), newText)); 433var span = new LinePositionSpan(codeRange.End, closeBraceRange.Start); 440else if (codeRange.End.Line == closeBraceRange.Start.Line && 449changes.Add(new TextChange(source.Text.GetTextSpan(codeRange.End, start), context.NewLineString + additionalIndentation)); 455var closeBraceLine = source.Text.Lines[closeBraceRange.End.Line]; 456if (closeBraceLine.GetFirstNonWhitespaceOffset(closeBraceRange.End.Character).HasValue) 459changes.Add(new TextChange(source.Text.GetTextSpan(closeBraceRange.End, closeBraceRange.End), context.NewLineString)); 469var endIndex = sourceText.GetRequiredAbsoluteIndex(span.End);
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces.Shared\Extensions\LinePositionSpanExtensions.cs (17)
11=> (start, end) = (linePositionSpan.Start, linePositionSpan.End); 14=> (startLine, startCharacter, endLine, endCharacter) = (linePositionSpan.Start.Line, linePositionSpan.Start.Character, linePositionSpan.End.Line, linePositionSpan.End.Character); 24var overlapEnd = span.End; 25if (span.End.CompareTo(other.End) > 0) 27overlapEnd = other.End; 40var overlapEnd = span.End.Line > other.End.Line 41? other.End.Line 42: span.End.Line; 49return span.Start <= other.Start && span.End >= other.End; 53=> new(newStart, span.End); 56=> new(computeNewStart(span.Start), span.End); 62=> new(span.Start, computeNewEnd(span.End)); 65=> span.Start.Line != span.End.Line;
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces.Shared\Extensions\RazorSyntaxNodeExtensions.cs (2)
424if (endPositionSpan.End < startPositionSpan.Start) 430linePositionSpan = new LinePositionSpan(startPositionSpan.Start, endPositionSpan.End);
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces.Shared\Extensions\SourceTextExtensions.cs (2)
266=> text.GetTextSpan(span.Start, span.End); 269=> text.TryGetTextSpan(span.Start, span.End, out textSpan);
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Workspaces.Shared\RazorSyntaxFacts.cs (1)
222if (linePositionSpan.Start.Line != linePositionSpan.End.Line ||
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\FileLinePositionSpanExtensions.cs (2)
44var endLine = span.End.Line; 48var endColumn = Math.Max(span.End.Character, 0);