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

Function JSXOpeningElement

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

Source from the content-addressed store, hash-verified

320 },
321 ...(config.jsx && {
322 JSXOpeningElement(path) {
323 let {openingElement} = path.container as t.JSXElement
324
325 if (file_transform &&
326 openingElement.name.type === 'JSXIdentifier' &&
327 // Filter native elements
328 !isUpperCase(openingElement.name.name)
329 ) {
330 let location = getNodeLocationAttribute(openingElement, file_filename, true)
331 if (location) {
332 openingElement.attributes.push(
333 t.jsxAttribute(jsx_location_attr, t.stringLiteral(location)),
334 )
335 }
336 }
337 },
338 }),
339 ...(config.components && {
340 FunctionDeclaration(path) {

Callers

nothing calls this directly

Calls 2

isUpperCaseFunction · 0.85
getNodeLocationAttributeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…