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

Method createRendererCallExpr

compiler/companion/src/JSXProcessor.ts:299–309  ·  view source on GitHub ↗
(
    functionName: string,
    callArguments: ts.Expression[],
    transformContext: ts.TransformationContext,
  )

Source from the content-addressed store, hash-verified

297 }
298
299 private createRendererCallExpr(
300 functionName: string,
301 callArguments: ts.Expression[],
302 transformContext: ts.TransformationContext,
303 ): ts.Expression {
304 const propertyAccess = transformContext.factory.createPropertyAccessExpression(
305 transformContext.factory.createIdentifier('__Renderer'),
306 functionName,
307 );
308 return transformContext.factory.createCallExpression(propertyAccess, undefined, callArguments);
309 }
310
311 private createRendererCall(
312 functionName: string,

Callers 3

createRendererCallMethod · 0.95
outputJSXElementMethod · 0.95
outputJSXComponentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected