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

Method argsKindOf

ark/aot/graph.ts:1996–2012  ·  view source on GitHub ↗
(
		args: CallExpression["arguments"],
		module: SourceModule,
		kindOfKey: KindOfKey
	)

Source from the content-addressed store, hash-verified

1994
1995 // what any of args holds, a spread's members as its own
1996 private argsKindOf(
1997 args: CallExpression["arguments"],
1998 module: SourceModule,
1999 kindOfKey: KindOfKey
2000 ): KindBits {
2001 let held = 0
2002 for (const arg of args) {
2003 held |=
2004 arg.type === "SpreadElement" ?
2005 memberKindOf(
2006 this.transfer(arg.argument, module, kindOfKey),
2007 undefined
2008 )
2009 : this.transfer(arg, module, kindOfKey)
2010 }
2011 return held
2012 }
2013
2014 private passedKindOf(
2015 fn: FunctionNode,

Callers 2

paramKindOfMethod · 0.95
argKindOfMethod · 0.95

Calls 2

transferMethod · 0.95
memberKindOfFunction · 0.85

Tested by

no test coverage detected