graphql-language-service-utils
Version:
Utilities to support the GraphQL Language Service
34 lines (27 loc) • 806 B
Flow
/**
* Copyright (c) 2021 GraphQL Contributors
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type { Location } from 'graphql/language';
import type {
IRange,
IPosition ,
} from 'graphql-language-service-types';
declare export function getASTNodeAtPosition(): void;
declare export class Position implements IPosition {
line: number;
character: number;
constructor(row: number, column: number): IPosition;
lessThanOrEqualTo: (position: IPosition) => boolean;
}
declare export class Range implements IRange {
start: IPosition;
end: IPosition;
constructor(start: IPosition, end: IPosition): IRange;
containsPosition: (position: IPosition) => boolean;
}