UNPKG

548 BTypeScriptView Raw
1import { Range, Position } from 'vscode-languageserver-types';
2export declare class Util {
3 static isWhitespace(char: string): boolean;
4 static isNewline(char: string): boolean;
5 static findLeadingNonWhitespace(content: string, escapeChar: string): number;
6 /**
7 * Determines if the given position is contained within the given range.
8 *
9 * @param position the position to check
10 * @param range the range to see if the position is inside of
11 */
12 static isInsideRange(position: Position, range: Range): boolean;
13}