Lines Matching refs:state
60 function replaceElement(path, state) { argument
62 if (/\/node_modules\//.test(state.filename)) {
86 state.replacedComponents.add(prefixedComponent);
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
105 state.replacedComponents.forEach((component) => {
126 Program(path, state) {
127 state.replacedComponents = new Set();
128 state.unsupportedComponents = new Set();
130 path.traverse(htmlElementVisitor, state);
133 if (state.replacedComponents.size > 0) {
138 path.traverse(importDeclarationVisitor, state);