MCPcopy Create free account
hub / github.com/Snapchat/Valdi / outputJSXChildren

Method outputJSXChildren

compiler/companion/src/JSXProcessor.ts:276–297  ·  view source on GitHub ↗
(
    node: ts.Node,
    children: ts.JsxChild[],
    output: JSXOutputState,
    transformContext: ts.TransformationContext,
  )

Source from the content-addressed store, hash-verified

274 }
275
276 private outputJSXChildren(
277 node: ts.Node,
278 children: ts.JsxChild[],
279 output: JSXOutputState,
280 transformContext: ts.TransformationContext,
281 ): ts.Statement[] {
282 const processedStatements: ts.JsxChild[] = [];
283 const statements: ts.Statement[] = [];
284
285 for (const child of children) {
286 if (this.isJsxText(child)) {
287 continue;
288 }
289
290 processedStatements.push(child);
291
292 const resultNode = this.transformNode(child, output, transformContext);
293 statements.push(this.toStatement(resultNode, transformContext));
294 }
295
296 return this.flattenBlocks(node, processedStatements, statements);
297 }
298
299 private createRendererCallExpr(
300 functionName: string,

Callers 2

outputSlotMethod · 0.95
outputElementInnerMethod · 0.95

Calls 5

isJsxTextMethod · 0.95
transformNodeMethod · 0.95
toStatementMethod · 0.95
flattenBlocksMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected