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

Function _

lib/compile/codegen/code.ts:76–84  ·  view source on GitHub ↗
(strs: TemplateStringsArray, ...args: CodeArg[])

Source from the content-addressed store, hash-verified

74type CodeArg = SafeExpr | string | undefined
75
76export function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code {
77 const code: CodeItem[] = [strs[0]]
78 let i = 0
79 while (i < args.length) {
80 addCodeArg(code, args[i])
81 code.push(strs[++i])
82 }
83 return new _Code(code)
84}
85
86const plus = new _Code("+")
87

Callers 15

multiExportsCodeFunction · 0.90
validateCodeFunction · 0.90
refValidateCodeFunction · 0.90
checkReportMissingPropFunction · 0.90
checkMissingPropFunction · 0.90
hasPropFuncFunction · 0.90
isOwnPropertyFunction · 0.90
propertyInDataFunction · 0.90
noPropertyInDataFunction · 0.90
callValidateCodeFunction · 0.90
code.tsFile · 0.90
usePatternFunction · 0.90

Calls 1

addCodeArgFunction · 0.85

Tested by 3

badEvenCodeFunction · 0.72
logFunction · 0.72
codeFunction · 0.72