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

Method outputJSXSlot

compiler/companion/src/JSXProcessor.ts:853–866  ·  view source on GitHub ↗
(
    jsxElement: JSXElement,
    output: JSXOutputState,
    transformContext: ts.TransformationContext,
    nodeTypeStr: string,
    attributeStatements: JSXAttributeStatements,
  )

Source from the content-addressed store, hash-verified

851 }
852
853 private outputJSXSlot(
854 jsxElement: JSXElement,
855 output: JSXOutputState,
856 transformContext: ts.TransformationContext,
857 nodeTypeStr: string,
858 attributeStatements: JSXAttributeStatements,
859 ): JSXNodeOutput {
860 const beginRenderStatement = this.outputRenderSlot(jsxElement, transformContext);
861 return {
862 beginRenderStatement,
863 endRenderStatement: undefined,
864 statements: [beginRenderStatement],
865 };
866 }
867
868 private throwInvalidJSXFunctionComponentAttribute(jsxElement: JSXElement, attributeName: string) {
869 this.onError(jsxElement.element, `'${attributeName}' attribute is not supported in Inline Function Components`);

Callers 1

outputJSXMethod · 0.95

Calls 1

outputRenderSlotMethod · 0.95

Tested by

no test coverage detected