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

Method set

ark/aot/scope.ts:105–108  ·  view source on GitHub ↗
(name: string, entry: ExportEntry | undefined)

Source from the content-addressed store, hash-verified

103 private readCommonJs(program: Program): void {
104 const unread = new Set<string>()
105 const set = (name: string, entry: ExportEntry | undefined) => {
106 if (!entry || name in this.exportsByName) unread.add(name)
107 this.exportsByName[name] = entry!
108 }
109 for (const statement of program.body) {
110 if (statement.type !== "ExpressionStatement") continue
111 const { expression } = statement

Callers 4

constructorMethod · 0.45
bindNameMethod · 0.45
referenceMethod · 0.45
inScopeMethod · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected