4 instantiations of Range
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.cs (2)
347=> new LSP.Range { Start = LinePositionToPosition(linePositionSpan.Start), End = LinePositionToPosition(linePositionSpan.End) }; 1013return new LSP.Range
Extensions\ProtocolConversions.Diagnostics.cs (1)
146return new LSP.Range
Handler\CodeActions\CodeActionResolveHelper.cs (1)
248var emptyDocumentRange = new LSP.Range { Start = new Position { Line = 0, Character = 0 }, End = new Position { Line = 0, Character = 0 } };
98 references to Range
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
Cohost\Handlers\ValidateBreakableRange.cs (1)
17var range = ProtocolConversions.LinePositionToRange(span);
Microsoft.CodeAnalysis.LanguageServer.Protocol (97)
Extensions\ProtocolConversions.cs (6)
295public static LinePositionSpan RangeToLinePositionSpan(LSP.Range range) 298public static TextSpan RangeToTextSpan(LSP.Range range, SourceText text) 320static string RangeToString(LSP.Range range) 346public static LSP.Range LinePositionToRange(LinePositionSpan linePositionSpan) 349public static LSP.Range TextSpanToRange(TextSpan textSpan, SourceText text) 1011private static LSP.Range MappedSpanResultToRange(MappedSpanResult mappedSpanResult)
Extensions\ProtocolConversions.Diagnostics.cs (1)
136private static LSP.Range GetRange(DiagnosticDataLocation dataLocation)
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (7)
23internal sealed class ValidateBreakableRangeHandler() : ILspServiceDocumentRequestHandler<VSInternalValidateBreakableRangeParams, LSP.Range?> 31public Task<LSP.Range?> HandleRequestAsync(LSP.VSInternalValidateBreakableRangeParams request, RequestContext context, CancellationToken cancellationToken) 34public static async Task<LSP.Range?> GetBreakableRangeAsync(Document document, LSP.Range range, CancellationToken cancellationToken) 80var breakpointRange = ProtocolConversions.TextSpanToRange(breakpointSpan, text); 110private static bool BreakpointRangeIsSmaller(LSP.Range breakpointRange, LSP.Range existingRange)
Handler\CodeActions\CodeActionHelpers.cs (3)
219LSP.Range? applicableRange, 306LSP.Range selection, 386LSP.Range selection,
Handler\CodeActions\CodeActionResolveData.cs (2)
30public LSP.Range Range { get; } 45LSP.Range range,
Handler\CodeActions\CodeActionResolveHelper.cs (1)
248var emptyDocumentRange = new LSP.Range { Start = new Position { Line = 0, Character = 0 }, End = new Position { Line = 0, Character = 0 } };
Handler\CodeLens\CodeLensHandler.cs (3)
96var range = ProtocolConversions.TextSpanToRange(member.Span, text); 143var range = ProtocolConversions.TextSpanToRange(member.Span, text); 173var range = ProtocolConversions.TextSpanToRange(member.Span, text);
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
27LSP.Range? range = null)
Handler\InlayHint\InlayHintHandler.cs (2)
50internal static async Task<LSP.InlayHint[]?> GetInlayHintsAsync(Document document, TextDocumentIdentifier textDocumentIdentifier, LSP.Range range, InlineHintsOptions options, bool displayAllOverride, InlayHintCache inlayHintCache, CancellationToken cancellationToken) 97internal static async Task<ImmutableArray<InlineHint>> CalculateInlayHintsAsync(Document document, LSP.Range range, InlineHintsOptions options, bool displayAllOverride, CancellationToken cancellationToken)
Handler\InlayHint\InlayHintResolveData.cs (1)
16internal sealed record InlayHintResolveData(long ResultId, int ListIndex, TextDocumentIdentifier TextDocument, string SyntaxVersion, Range Range, bool DisplayAllOverride) : DocumentResolveData(TextDocument);
Handler\Rename\PrepareRenameHandler.cs (3)
20internal class PrepareRenameHandler() : ILspServiceDocumentRequestHandler<LSP.PrepareRenameParams, LSP.Range?> 28public Task<LSP.Range?> HandleRequestAsync(LSP.PrepareRenameParams request, RequestContext context, CancellationToken cancellationToken) 31internal static async Task<LSP.Range?> GetRenameRangeAsync(Document document, LinePosition linePosition, CancellationToken cancellationToken)
Handler\SemanticTokens\SemanticTokensHelpers.cs (2)
30LSP.Range[] ranges, 45foreach (var range in ranges)
Handler\Testing\RunTestsParams.cs (1)
13[property: JsonPropertyName("range")] LSP.Range Range,
Protocol\CodeActionParams.cs (1)
34public Range Range
Protocol\CodeLens.cs (1)
28public Range Range
Protocol\ColorInformation.cs (1)
22public Range Range { get; set; }
Protocol\ColorPresentationParams.cs (1)
38public Range Range { get; init; }
Protocol\CompletionListItemDefaults.cs (1)
32public SumType<Range, InsertReplaceRange>? EditRange
Protocol\Diagnostic.cs (1)
23public Range Range
Protocol\DocumentHighlight.cs (1)
25public Range Range
Protocol\DocumentLink.cs (1)
23public Range Range
Protocol\DocumentRangeFormattingParams.cs (1)
33public Range Range
Protocol\DocumentSymbol.cs (2)
80public Range Range 92public Range SelectionRange
Protocol\Hover.cs (1)
32public Range? Range { get; set; }
Protocol\InlayHintParams.cs (1)
31public Range Range { get; set; }
Protocol\InlineValues\InlineValueContext.cs (1)
31public Range StoppedLocation { get; set; }
Protocol\InlineValues\InlineValueEvaluatableExpression.cs (1)
31public Range Range { get; init; }
Protocol\InlineValues\InlineValueParams.cs (1)
31public Range Range { get; set; }
Protocol\InlineValues\InlineValueText.cs (1)
20public Range Range { get; init; }
Protocol\InlineValues\InlineValueVariableLookup.cs (1)
30public Range Range { get; init; }
Protocol\InsertReplaceEdit.cs (2)
34public Range Insert 45public Range Replace
Protocol\InsertReplaceRange.cs (2)
19public Range Insert 30public Range Replace
Protocol\Internal\VSInternalCodeAction.cs (1)
42public Range? ApplicableRange
Protocol\Internal\VSInternalCodeActionContext.cs (1)
20public Range? SelectionRange
Protocol\Internal\VSInternalDataTips.cs (2)
32public Range HoverRange { get; init; } 39public Range? ExpressionRange { get; init; }
Protocol\Internal\VSInternalInlineCompletionItem.cs (1)
30public Range? Range { get; set; }
Protocol\Internal\VSInternalMethods.cs (2)
51public static readonly LspRequest<VSInternalValidateBreakableRangeParams, Range?> TextDocumentValidateBreakableRange = new LspRequest<VSInternalValidateBreakableRangeParams, Range?>(TextDocumentValidateBreakableRangeName);
Protocol\Internal\VSInternalSelectedCompletionInfo.cs (1)
21public Range Range { get; set; }
Protocol\Internal\VSInternalTextPresentationParams.cs (1)
30public Range Range
Protocol\Internal\VSInternalUriPresentationParams.cs (1)
31public Range Range
Protocol\Internal\VSInternalValidateBreakableRangeParams.cs (1)
24public Range Range { get; set; }
Protocol\LinkedEditingRanges.cs (1)
25public Range[] Ranges
Protocol\Location.cs (3)
33public Range Range 50EqualityComparer<Range>.Default.Equals(this.Range, other.Range); 58hashCode = (hashCode * -1521134295) + EqualityComparer<Range>.Default.GetHashCode(this.Range);
Protocol\LocationLink.cs (6)
31public Range? OriginSelectionRange { get; init; } 49public Range TargetRange { get; init; } 57public Range TargetSelectionRange { get; init; } 65&& EqualityComparer<Range>.Default.Equals(this.OriginSelectionRange, other.OriginSelectionRange) 67&& EqualityComparer<Range>.Default.Equals(this.TargetRange, other.TargetRange) 68&& EqualityComparer<Range>.Default.Equals(this.TargetSelectionRange, other.TargetSelectionRange);
Protocol\Methods.Document.cs (1)
600public static readonly LspRequest<PrepareRenameParams, SumType<RenameRange, DefaultBehaviorPrepareRename, Range>?> TextDocumentPrepareRename = new(TextDocumentPrepareRenameName);
Protocol\Navigation\CallHierarchyIncomingCall.cs (1)
32public Range[] FromRanges { get; init; }
Protocol\Navigation\CallHierarchyItem.cs (2)
61public Range Range { get; init; } 70public Range SelectionRange { get; init; }
Protocol\Navigation\CallHierarchyOutgoingCall.cs (1)
31public Range[] FromRanges { get; init; }
Protocol\Navigation\TypeHierarchyItem.cs (2)
61public Range Range { get; init; } 70public Range SelectionRange { get; init; }
Protocol\ParameterInformation.cs (1)
26/// <see cref="Range"/>.
Protocol\Range.cs (7)
16internal class Range : IEquatable<Range> 40public static bool operator ==(Range? value1, Range? value2) 56public static bool operator !=(Range? value1, Range? value2) 64return this.Equals(obj as Range); 68public bool Equals(Range? other)
Protocol\RenameRange.cs (1)
23public Range Range
Protocol\SelectionRange.cs (1)
23public Range Range { get; init; }
Protocol\SemanticTokens\SemanticTokensRangeParams.cs (1)
31public Range Range { get; set; }
Protocol\ShowDocumentParams.cs (1)
55public Range? Selection { get; init; }
Protocol\TextDocumentContentChangeEvent.cs (1)
21public Range Range
Protocol\TextEdit.cs (1)
21public Range Range