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

Function finish

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

Source from the content-addressed store, hash-verified

577 const tag = target.node.openingElement?.name?.name || target.node.openingElement?.name?.property?.name || "?";
578 const line = target.node.openingElement?.loc?.start?.line;
579 const finish = (): true => {
580 canonicalizeEditedTextSubtree(target.node, source);
581 return true;
582 };
583 logger.debug(`[mutateText] target=<${tag}> line=${line} children=${children?.length ?? "null"} original="${originalText.slice(0,60)}" new="${newText.slice(0,60)}"`);
584 if (!children) return false;
585

Callers 1

mutateTextContentFunction · 0.85

Calls 1

Tested by

no test coverage detected