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

Function VariableDeclarator

packages/main/src/babel/babel.ts:345–355  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

343 }
344 },
345 VariableDeclarator(path) {
346 if (file_transform &&
347 'name' in path.node.id && isUpperCase(path.node.id.name) &&
348 path.node.init &&
349 (path.node.init.type === 'FunctionExpression' ||
350 path.node.init.type === 'ArrowFunctionExpression') &&
351 path.node.init.body.type === 'BlockStatement'
352 ) {
353 addLocationToBody(path.node.init.body, path.node)
354 }
355 },
356 }),
357 }
358 }

Callers

nothing calls this directly

Calls 2

isUpperCaseFunction · 0.85
addLocationToBodyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…