Lines Matching refs:path
60 function replaceElement(path, state) { argument
66 const { name } = path.node.openingElement.name;
80 const openingElementName = path.get('openingElement.name');
82 if (path.has('closingElement')) {
83 const closingElementName = path.get('closingElement.name');
90 JSXElement(path, state) { argument
91 replaceElement(path, state);
92 path.traverse(jsxElementVisitor, state);
97 JSXElement(path, state) { argument
98 replaceElement(path, state);
103 ImportDeclaration(path, state) { argument
104 if (path.get('source').isStringLiteral({ value: '@expo/html-elements' })) {
107 path
113 path.pushContainer(
126 Program(path, state) {
130 path.traverse(htmlElementVisitor, state);
135 path.unshiftContainer('body', importDeclaration);
138 path.traverse(importDeclarationVisitor, state);