MCPcopy
hub / github.com/plotly/dash / parseJSX

Function parseJSX

dash/extract-meta.js:143–155  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

141}
142
143function parseJSX(filepath) {
144 try {
145 const src = fs.readFileSync(filepath);
146 const doc = reactDocs.parse(src);
147 Object.keys(doc.props).forEach(propName =>
148 isReservedPropName(propName)
149 );
150 docstringWarning(doc);
151 return doc;
152 } catch (error) {
153 logError(error, filepath);
154 }
155}
156
157function gatherComponents(sources, components = {}) {
158 const names = [];

Callers 1

gatherFunction · 0.85

Calls 5

isReservedPropNameFunction · 0.85
docstringWarningFunction · 0.85
keysMethod · 0.80
logErrorFunction · 0.70
parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…