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