MCPcopy Index your code
hub / github.com/TanStack/devtools / parseOpenSourceParam

Function parseOpenSourceParam

packages/devtools-vite/src/utils.ts:135–144  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

133}
134
135export const parseOpenSourceParam = (source: string) => {
136 // Capture everything up to the last two colon-separated numeric parts as the file.
137 // This supports filenames that may themselves contain colons.
138 const parts = source.match(/^(.+):(\d+):(\d+)$/)
139
140 if (!parts) return null
141
142 const [, file, line, column] = parts
143 return { file, line, column }
144}
145
146const tryReadFile = async (filePath: string) => {
147 try {

Callers 3

utils.test.tsFile · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected