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

Method let

lib/compile/codegen/index.ts:524–526  ·  view source on GitHub ↗
(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean)

Source from the content-addressed store, hash-verified

522
523 // `let` declaration with optional assignment (`var` in es5 mode)
524 let(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {
525 return this._def(varKinds.let, nameOrPrefix, rhs, _constant)
526 }
527
528 // `var` declaration with optional assignment
529 var(nameOrPrefix: Name | string, rhs?: SafeExpr, _constant?: boolean): Name {

Callers 15

compileSerializerFunction · 0.95
validateArrayFunction · 0.80
validateUnionFunction · 0.80
callAsyncRefFunction · 0.80
validatePropertyDepsFunction · 0.80
codeFunction · 0.80
codeFunction · 0.80
codeFunction · 0.80
validateItemsWithCountFunction · 0.80
codeFunction · 0.80
exitOnErrorModeFunction · 0.80
codeFunction · 0.80

Calls 1

_defMethod · 0.95

Tested by

no test coverage detected