MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / collectNsSync

Method collectNsSync

src/interpreter/index.ts:228–241  ·  view source on GitHub ↗
(script: Ast.Node[], scope = this.scope)

Source from the content-addressed store, hash-verified

226
227 @autobind
228 private collectNsSync(script: Ast.Node[], scope = this.scope): void {
229 for (const node of script) {
230 switch (node.type) {
231 case 'ns': {
232 this.collectNsMemberSync(node, scope);
233 break;
234 }
235
236 default: {
237 // nop
238 }
239 }
240 }
241 }
242
243 @autobind
244 private async collectNsMember(ns: Ast.Namespace, scope = this.scope): Promise<void> {

Callers 2

execSyncMethod · 0.95
collectNsMemberSyncMethod · 0.95

Calls 1

collectNsMemberSyncMethod · 0.95

Tested by

no test coverage detected