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

Function applyMember

ark/schema/shared/compile.ts:353–355  ·  view source on GitHub ↗
(node: BaseNode, member: BaseNode = node)

Source from the content-addressed store, hash-verified

351 }
352
353 applyMember(node: BaseNode, member: BaseNode = node): string {
354 return member.hasAlias ? this.resolution(node, member.id) : this.inv(node)
355 }
356
357 // a cycle member is entered as a resolution, so it is applied once
358 resolution(node: BaseNode, id: NodeId, arg: string = this.data): string {

Callers 4

tApplyMethod · 0.90
applyDefaultMethod · 0.90
applyBranchesMethod · 0.90
tApplyMethod · 0.90

Calls 2

resolutionMethod · 0.80
invMethod · 0.45

Tested by

no test coverage detected