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

Function getSourceCodeData

packages/debugger/src/locator/locator.ts:62–68  ·  view source on GitHub ↗
(location: SourceLocation)

Source from the content-addressed store, hash-verified

60export const getProjectPath = (): string | undefined => (window as any)[WINDOW_PROJECTPATH_PROPERTY]
61
62export function getSourceCodeData(location: SourceLocation): SourceCodeData | undefined {
63
64 let project_path = getProjectPath()
65 if (project_path == null) return
66
67 return {...location, projectPath: project_path}
68}
69
70/**
71 * Validates and parses a location string to a {@link SourceLocation} object

Callers

nothing calls this directly

Calls 1

getProjectPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…