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)
102internal static async Task<ImmutableArray<InlineHint>> CalculateInlayHintsAsync(Document document, LSP.Range range, InlineHintsOptions options, bool displayAllOverride, CancellationToken cancellationToken)
DocumentMapping\IDocumentMappingServiceExtensions.cs (6)
17public static bool TryMapToRazorDocumentRange(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, LspRange csharpRange, [NotNullWhen(true)] out LspRange? razorRange)
60public static bool TryMapToRazorDocumentRange(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, LspRange csharpRange, MappingBehavior mappingBehavior, [NotNullWhen(true)] out LspRange? razorRange)
67public static bool TryMapToCSharpDocumentRange(this IDocumentMappingService service, RazorCSharpDocument csharpDocument, LspRange razorRange, [NotNullWhen(true)] out LspRange? csharpRange)
Extensions\LspExtensions_Range.cs (26)
11public static RazorTextSpan ToRazorTextSpan(this LspRange range, SourceText sourceText)
21public static void Deconstruct(this LspRange range, out Position start, out Position end)
24public static void Deconstruct(this LspRange range, out int startLine, out int startCharacter, out int endLine, out int endCharacter)
27public static LinePositionSpan ToLinePositionSpan(this LspRange range)
30public static bool IntersectsOrTouches(this LspRange range, LspRange other)
45private static bool IsBefore(this LspRange range, LspRange other) =>
48private static bool IsAfter(this LspRange range, LspRange other) =>
51public static bool OverlapsWith(this LspRange range, LspRange other)
56public static bool LineOverlapsWith(this LspRange range, LspRange other)
73public static bool Contains(this LspRange range, LspRange other)
78public static bool SpansMultipleLines(this LspRange range)
83public static bool IsSingleLine(this LspRange range)
88public static bool IsUndefined(this LspRange range)
93public static bool IsZeroWidth(this LspRange range)
98public static int CompareTo(this LspRange range1, LspRange range2)
110public static LspRange? Overlap(this LspRange range, LspRange other)
133public static string ToDisplayString(this LspRange range)
Extensions\LspFactory.cs (23)
15private static readonly LspRange s_defaultRange = new()
23private static readonly LspRange s_undefinedRange = new()
52public static LspRange DefaultRange
56var defaultRange = s_defaultRange;
86public static LspRange UndefinedRange
90var undefinedRange = s_undefinedRange;
118public static LspRange CreateRange(int startLine, int startCharacter, int endLine, int endCharacter)
123public static LspRange CreateRange(Position start, Position end)
126public static LspRange CreateRange(LinePosition start, LinePosition end)
129public static LspRange CreateRange((int line, int character) start, (int line, int character) end)
132public static LspRange CreateRange(LinePositionSpan span)
135public static LspRange CreateZeroWidthRange(int line, int character)
143public static LspRange CreateZeroWidthRange(Position position)
146public static LspRange CreateZeroWidthRange(LinePosition position)
149public static LspRange CreateZeroWidthRange((int line, int character) position)
152public static LspRange CreateSingleLineRange(int line, int character, int length)
155public static LspRange CreateSingleLineRange(Position start, int length)
158public static LspRange CreateSingleLineRange(LinePosition start, int length)
161public static LspRange CreateSingleLineRange((int line, int character) start, int length)
170public static LspLocation CreateLocation(string filePath, LspRange range)
173public static LspLocation CreateLocation(Uri uri, LspRange range)
176public static DocumentLink CreateDocumentLink(Uri target, LspRange range)
182public static TextEdit CreateTextEdit(Range range, string newText)