MCPcopy Create free account
hub / github.com/arktypeio/arktype / nameFreeIn

Function nameFreeIn

ark/aot/flat.ts:2215–2216  ·  view source on GitHub ↗
(code: string, name: string)

Source from the content-addressed store, hash-verified

2213 /if \(!\(\(data instanceof Object \|\| Object\(data\) === data\)\)\) {\s*return (!ctx\._e\(data, "domain", "an object"\));?\s*}|\(data instanceof Object \|\| Object\(data\) === data\)/g
2214
2215const nameFreeIn = (code: string, name: string): string =>
2216 code.includes(name) ? nameFreeIn(code, `${name}_`) : name
2217
2218// a bundler drops only a module's unread declarations, not a function's
2219const dropUnread: UnitsPass = ({ code, program, scopes }, s, body) => {

Callers 2

shareFailuresAsFunction · 0.85
shareObjectChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected