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

Function createInsertionNode

packages/cli/src/transform.ts:1191–1194  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1189}
1190
1191function createInsertionNode(text: string): any {
1192 if (text === " ") return createSpaceExpressionNode();
1193 return { type: "JSXText", value: text };
1194}
1195
1196function createWhitespaceInsertionNodes(count: number): any[] {
1197 return Array.from({ length: count }, () => createSpaceExpressionNode());

Callers 1

Calls 1

Tested by

no test coverage detected