Skip to main content
Latest
function getLocation
import { getLocation } from "https://deno.land/x/graphql_deno@v15.0.0/lib/language/index.d.ts";

Takes a Source and a UTF-8 character offset, and returns the corresponding line and column as a SourceLocation.

Parameters

source: Source
position: number