MCPcopy Index your code
hub / github.com/getsentry/sentry / findFormSearches

Method findFormSearches

scripts/extractFormFields.ts:109–121  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

getJsxTagNameMethod · 0.95
getJsxAttributeMethod · 0.95

Tested by

no test coverage detected