7 references to TextSpanToRange
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Extensions\ProtocolConversions.cs (2)
333
Range =
TextSpanToRange
(textChange.Span, oldText)
516
Range =
TextSpanToRange
(span, text),
Handler\CodeActions\CodeActionHelpers.cs (1)
266
? ProtocolConversions.
TextSpanToRange
(nestedActionSet.ApplicableToSpan.Value, documentText) : null,
Handler\CodeLens\CodeLensHandler.cs (1)
96
var range = ProtocolConversions.
TextSpanToRange
(member.Span, text);
Handler\Completion\CompletionResultFactory.cs (3)
493
Range = ProtocolConversions.
TextSpanToRange
(completionChangeSpan, documentText),
539
Range = ProtocolConversions.
TextSpanToRange
(change.Span, sourceText),
684
Range = ProtocolConversions.
TextSpanToRange
(completionChangeSpan, documentText),