1 | import { Location } from 'graphql/language';
|
2 | import { IRange, IPosition } from 'graphql-language-service-types';
|
3 | export declare class Range implements IRange {
|
4 | start: IPosition;
|
5 | end: IPosition;
|
6 | constructor(start: IPosition, end: IPosition);
|
7 | setStart(line: number, character: number): void;
|
8 | setEnd(line: number, character: number): void;
|
9 | containsPosition: (position: IPosition) => boolean;
|
10 | }
|
11 | export declare class Position implements IPosition {
|
12 | line: number;
|
13 | character: number;
|
14 | constructor(line: number, character: number);
|
15 | setLine(line: number): void;
|
16 | setCharacter(character: number): void;
|
17 | lessThanOrEqualTo: (position: IPosition) => boolean;
|
18 | }
|
19 | export declare function offsetToPosition(text: string, loc: number): Position;
|
20 | export declare function locToRange(text: string, loc: Location): Range;
|
21 | //# sourceMappingURL=Range.d.ts.map |
\ | No newline at end of file |