Skip to main content
Latest
function getLocation
import { getLocation } from "https://deno.land/x/kilatgraphql@16.6.0-1/mod.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