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

Function unwrapExpression

ark/aot/scope.ts:709–712  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

707} as const satisfies KeySet
708
709export const unwrapExpression = (node: Node): Node => {
710 while (isTransparent(node)) node = node.expression
711 return node
712}
713
714// a TypeScript enum as a transpiler writes it, Vite's, esbuild's, SWC's and
715// Babel's alike:

Callers 15

recordDroppedNarrowsFunction · 0.90
operandLabelOfFunction · 0.90
creationsInFunction · 0.90
keptCallsInFunction · 0.90
isPureExpressionFunction · 0.90
writtenWhereReadFunction · 0.90
evaluateReferenceMethod · 0.90
markDeclaredMethod · 0.90
isOwnHoleMethod · 0.90
calleeOfMethod · 0.90
callNativeMethod · 0.90
isReferenceFunction · 0.90

Calls 1

isTransparentFunction · 0.90

Tested by

no test coverage detected