MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / parseLocationString

Function parseLocationString

packages/debugger/src/locator/locator.ts:73–83  ·  view source on GitHub ↗
(location: string)

Source from the content-addressed store, hash-verified

71 * Validates and parses a location string to a {@link SourceLocation} object
72 */
73export function parseLocationString(location: string): SourceLocation | undefined {
74 let [file, line, column] = location.split(':') as [string, string | number, string | number]
75 if (
76 file && line && column &&
77 typeof file === 'string' &&
78 !isNaN((line = +line)) &&
79 !isNaN((column = +column))
80 ) {
81 return {file, line, column}
82 }
83}
84
85export function openSourceCode(target: TargetIDE | TargetURLFunction, data: SourceCodeData): void {
86 const url = getTargetURL(target, data)

Callers 2

collect_owner_detailsFunction · 0.90
index.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…