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

Function writesNothing

ark/aot/driver.ts:1003–1007  ·  view source on GitHub ↗
(transformed: TransformedModule)

Source from the content-addressed store, hash-verified

1001// a module as its file reads, with no unit a registry's state or a scan's
1002// usage could have written otherwise
1003const writesNothing = (transformed: TransformedModule) =>
1004 transformed.code === undefined &&
1005 Object.keys(transformed.modules).length === 0 &&
1006 transformed.foldedHelpers.length === 0 &&
1007 !hasDiagnostics(transformed)
1008
1009// the precompiler a reset keeps, having forgotten the modules whose files
1010// changed, unless a change may reach past them, as a new resolution, setting

Callers 1

answerFunction · 0.85

Calls 1

hasDiagnosticsFunction · 0.85

Tested by

no test coverage detected