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

Function evaluatedPropsToName

docs/scripts/ajv-validator.js:2349–2356  ·  view source on GitHub ↗
(gen, ps)

Source from the content-addressed store, hash-verified

2347 }),
2348 };
2349 function evaluatedPropsToName(gen, ps) {
2350 if (ps === true)
2351 return gen.var("props", true);
2352 const props = gen.var("props", (0, codegen_1._) `{}`);
2353 if (ps !== undefined)
2354 setEvaluated(gen, props, ps);
2355 return props;
2356 }
2357 exports.evaluatedPropsToName = evaluatedPropsToName;
2358 function setEvaluated(gen, props, ps) {
2359 Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._) `${props}${(0, codegen_1.getProperty)(p)}`, true));

Callers

nothing calls this directly

Calls 2

setEvaluatedFunction · 0.85
varMethod · 0.80

Tested by

no test coverage detected