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

Function hasVisibleTextInEntries

packages/cli/src/transform.ts:931–933  ·  view source on GitHub ↗
(entries: any[], source?: string, lineStarts?: number[])

Source from the content-addressed store, hash-verified

929}
930
931function hasVisibleTextInEntries(entries: any[], source?: string, lineStarts?: number[]): boolean {
932 return entries.some((entry) => /\S/.test(getRenderedChildText(entry, source, lineStarts)));
933}
934
935function mergeAdjacentTextLikeChildren(children: any[]): any[] {
936 const merged: any[] = [];

Callers 1

Calls 1

getRenderedChildTextFunction · 0.85

Tested by

no test coverage detected