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

Method isNodeNonExtensible

ark/aot/precompile.ts:2483–2495  ·  view source on GitHub ↗
(
		node: Node,
		module: SourceModule,
		seen = new Set<Binding>()
	)

Source from the content-addressed store, hash-verified

2481 }
2482
2483 private isNodeNonExtensible(
2484 node: Node,
2485 module: SourceModule,
2486 seen = new Set<Binding>()
2487 ): boolean {
2488 const unwrapped = unwrapChain(node)
2489 if (this.isNonExtensibleCall(unwrapped, module)) return true
2490 if (unwrapped.type === "Identifier") {
2491 const binding = module.scopes.byId.get(unwrapped)?.binding
2492 if (binding) return this.isBindingNonExtensible(binding, module, seen)
2493 }
2494 return false
2495 }
2496
2497 private isExportNonExtensible(target: ImportTarget): boolean {
2498 if (target.kind === "binding")

Callers 2

isExportNonExtensibleMethod · 0.95

Calls 4

isNonExtensibleCallMethod · 0.95
unwrapChainFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected