MCPcopy
hub / github.com/ajv-validator/ajv / addCodeArg

Function addCodeArg

lib/compile/codegen/code.ts:100–104  ·  view source on GitHub ↗
(code: CodeItem[], arg: CodeArg | string[])

Source from the content-addressed store, hash-verified

98}
99
100export function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void {
101 if (arg instanceof _Code) code.push(...arg._items)
102 else if (arg instanceof Name) code.push(arg)
103 else code.push(interpolate(arg))
104}
105
106function optimize(expr: CodeItem[]): void {
107 let i = 1

Callers 3

objectMethod · 0.90
_Function · 0.85
strFunction · 0.85

Calls 1

interpolateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…