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

Method visit

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

Source from the content-addressed store, hash-verified

135 fields: ExtractedField[]
136 ): void {
137 const visit = (node: ts.Node) => {
138 if (ts.isJsxElement(node) || ts.isJsxSelfClosingElement(node)) {
139 const field = this.extractFieldFromJsx(node, formId, route, sourceFile);
140 if (field) {
141 fields.push(field);
142 }
143 }
144 ts.forEachChild(node, visit);
145 };
146
147 // Visit children of FormSearch
148 if (ts.isJsxElement(formSearchNode)) {

Callers 3

runMethod · 0.45
_fixupFunction · 0.45
_scan_create_or_updateFunction · 0.45

Calls 6

extractFieldFromJsxMethod · 0.95
getJsxTagNameMethod · 0.95
hasJsxAttributeMethod · 0.95
getJsxTextContentMethod · 0.95
pushMethod · 0.45

Tested by 1

_scan_create_or_updateFunction · 0.36