(path)
| 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) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…