Utils Class

Definition

public static class Utils
type Utils = class
Public Module Utils
Inheritance
Utils

Fields

EndOfLine

Matches a CR, LF, or CRLF occurence at the end of a string.

Methods

DiagnosticString(Range)
IsAtLeastReadLockHeld(ReaderWriterLockSlim)

Returns true if syncRoot is either read-lock, upgradeable read-lock, or write-lock held.

JoinLines(String[])

To be used as "counter-piece" to SplitLines(String).

Partition<T>(IEnumerable<T>, Func<T,Boolean>)

Partitions collection into the elements for which predicate returns true and those for which it returns false.

SplitLines(String)

Splits text into multiple lines, with the line ending of each line included in the line.

ToLsp(Position)

Converts position from a Q# compiler position into a language server protocol position.

ToLsp(Range)

Converts range from a Q# compiler range into a language server protocol range.

ToQSharp(Position)

Converts position from a language server protocol position into a Q# compiler position.

ToQSharp(Range)

Converts range from a language server protocol range into a Q# compiler range.

Applies to