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

Function getDuplicateParentIdentity

packages/cli/src/batch-transform.ts:1096–1101  ·  view source on GitHub ↗
(nodePath: any)

Source from the content-addressed store, hash-verified

1094}
1095
1096function getDuplicateParentIdentity(nodePath: any): string {
1097 const parent = nodePath.parent?.node;
1098 const parentStart = parent?.start ?? "root";
1099 const parentEnd = parent?.end ?? "root";
1100 return `${parentStart}:${parentEnd}`;
1101}
1102
1103function collectSiblingLiteralKeys(nodePath: any): Set<string> {
1104 const keys = new Set<string>();

Callers 1

deduplicateKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected