MCPcopy Create free account
hub / github.com/json-editor/json-editor / var

Method var

docs/scripts/ajv-validator.js:1132–1134  ·  view source on GitHub ↗
(nameOrPrefix, rhs, _constant)

Source from the content-addressed store, hash-verified

1130 }
1131 // `var` declaration with optional assignment
1132 var(nameOrPrefix, rhs, _constant) {
1133 return this._def(scope_1.varKinds.var, nameOrPrefix, rhs, _constant);
1134 }
1135 // assignment code
1136 assign(lhs, rhs, sideEffects) {
1137 return this._leafNode(new Assign(lhs, rhs, sideEffects));

Callers 13

forOfMethod · 0.95
ajv-validator.jsFile · 0.80
evaluatedPropsToNameFunction · 0.80
boolOrEmptySchemaFunction · 0.80
destructureValCxtES5Function · 0.80
subSchemaObjCodeFunction · 0.80
validateAdditionalItemsFunction · 0.80
validateSchemaDepsFunction · 0.80
validateOneOfFunction · 0.80
codeFunction · 0.80
validateArrayFunction · 0.80

Calls 1

_defMethod · 0.95

Tested by

no test coverage detected