LanguageServer.GetRange(String, Span) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Construct a Range based on a Span for a given expression.
public static Microsoft.PowerFx.LanguageServerProtocol.Protocol.Range GetRange(string expression, Microsoft.PowerFx.Syntax.Span span);
static member GetRange : string * Microsoft.PowerFx.Syntax.Span -> Microsoft.PowerFx.LanguageServerProtocol.Protocol.Range
Public Shared Function GetRange (expression As String, span As Span) As Range
Parameters
- expression
- String
The expression.
- span
- Span
The Span.
Returns
Generated Range.