MCPcopy Create free account
hub / github.com/donghaxkim/react-rewrite / createSpaceExpressionNode

Function createSpaceExpressionNode

packages/cli/src/transform.ts:878–886  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

876}
877
878function createSpaceExpressionNode(): any {
879 return {
880 type: "JSXExpressionContainer",
881 expression: {
882 type: "StringLiteral",
883 value: " ",
884 },
885 };
886}
887
888function isTextLikeChild(child: any): boolean {
889 return child.type === "JSXText" || (child.type === "JSXExpressionContainer" && child.expression?.type === "StringLiteral");

Calls

no outgoing calls

Tested by

no test coverage detected