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

Function readsIssueFeatures

ark/aot/unplugin.ts:2086–2091  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

2084// a runtime module naming an issue feature, whose reads of it the build
2085// writes once it has read the program
2086const readsIssueFeatures = (file: string): boolean => {
2087 if (!issueFeatureReader.test(file)) return false
2088 // as its file has it: what a cache kept of an earlier build names none
2089 const code = readFile(file)
2090 return code !== undefined && namesIssueFeature(code)
2091}
2092
2093const isScriptModule = ({ type }: { type?: string }) =>
2094 type?.startsWith("javascript/") ?? true

Callers 1

answerBuiltFunction · 0.85

Calls 3

readFileFunction · 0.90
namesIssueFeatureFunction · 0.90
testMethod · 0.80

Tested by

no test coverage detected