diff options
Diffstat (limited to 'alarm/node_modules/graphql/language/location.d.ts')
-rw-r--r-- | alarm/node_modules/graphql/language/location.d.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/alarm/node_modules/graphql/language/location.d.ts b/alarm/node_modules/graphql/language/location.d.ts new file mode 100644 index 0000000..a41e82f --- /dev/null +++ b/alarm/node_modules/graphql/language/location.d.ts @@ -0,0 +1,15 @@ +import { Source } from './source'; + +/** + * Represents a location in a Source. + */ +export interface SourceLocation { + readonly line: number; + readonly column: number; +} + +/** + * Takes a Source and a UTF-8 character offset, and returns the corresponding + * line and column as a SourceLocation. + */ +export function getLocation(source: Source, position: number): SourceLocation; |