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

Method destructuredWriteOf

ark/aot/graph.ts:1860–1871  ·  view source on GitHub ↗
(
		write: Node,
		module: SourceModule,
		kindOfKey: KindOfKey
	)

Source from the content-addressed store, hash-verified

1858 }
1859
1860 private destructuredWriteOf(
1861 write: Node,
1862 module: SourceModule,
1863 kindOfKey: KindOfKey
1864 ): KindBits {
1865 let root = write
1866 while (root.parent && isPatternPart(root.parent)) root = root.parent
1867 const parent = root.parent
1868 return parent?.type === "AssignmentExpression" && parent.left === root ?
1869 lostOf(this.transfer(parent.right, module, kindOfKey))
1870 : kinds.data
1871 }
1872
1873 private iteratedKindOf(
1874 declarator: Node,

Callers 1

writtenKindOfMethod · 0.95

Calls 3

transferMethod · 0.95
isPatternPartFunction · 0.85
lostOfFunction · 0.85

Tested by

no test coverage detected