Variable getLocationConst

getLocation: (text: string, position: number) => Location

For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index.

Type Declaration

    • (text: string, position: number): Location
    • Parameters

      • text: string
      • position: number

      Returns Location