Sha256: 522edc786ed48304671b935cf7d3ed63acc6636ab9888c6e130b97a6aea92b46

Contents?: true

Size: 394 Bytes

Versions: 26

Compression:

Stored size: 394 Bytes

Contents

import type { 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 declare function getLocation(
  source: Source,
  position: number,
): SourceLocation;

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
clapton-0.0.6 lib/clapton/javascripts/node_modules/graphql/language/location.d.ts
clapton-0.0.5 lib/clapton/javascripts/node_modules/graphql/language/location.d.ts
clapton-0.0.4 lib/clapton/javascripts/node_modules/graphql/language/location.d.ts
clapton-0.0.3 lib/clapton/javascripts/node_modules/graphql/language/location.d.ts
clapton-0.0.2 lib/clapton/javascripts/node_modules/graphql/language/location.d.ts
clapton-0.0.1 lib/clapton/javascripts/node_modules/graphql/language/location.d.ts