MCPcopy Create free account
hub / github.com/arktypeio/arktype / getCurrentLine

Function getCurrentLine

ark/fs/getCurrentLine.ts:225–231  ·  view source on GitHub ↗
(
	offset: Offset = {
		method: "getCurrentLine",
		frames: 0,
		immediate: false
	}
)

Source from the content-addressed store, hash-verified

223 * ```
224 */
225export const getCurrentLine = (
226 offset: Offset = {
227 method: "getCurrentLine",
228 frames: 0,
229 immediate: false
230 }
231): Location => getLocationFromError(new Error(), offset)

Callers 1

callerFunction · 0.90

Calls 1

getLocationFromErrorFunction · 0.85

Tested by

no test coverage detected