(node: ts.Node)
| 107 | |
| 108 | // First, find all FormSearch components |
| 109 | const findFormSearches = (node: ts.Node) => { |
| 110 | if (ts.isJsxElement(node) || ts.isJsxSelfClosingElement(node)) { |
| 111 | const tagName = this.getJsxTagName(node, sourceFile); |
| 112 | if (tagName === 'FormSearch') { |
| 113 | const route = this.getJsxAttribute(node, 'route'); |
| 114 | if (route) { |
| 115 | // Extract all fields inside this FormSearch |
| 116 | this.extractFieldsFromFormSearch(node, formId, route, sourceFile, fields); |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | ts.forEachChild(node, findFormSearches); |
| 121 | }; |
| 122 | |
| 123 | findFormSearches(sourceFile); |
| 124 | return fields; |
nothing calls this directly
no test coverage detected