MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / SourceLocation

Interface SourceLocation

src/utils/getLocator.ts:1–4  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface SourceLocation {
2 line: number
3 column: number
4}
5
6export default function getLocator(source: string): (index: number) => SourceLocation {
7 const originalLines = source.split('\n')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected