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

Method optimizeNames

docs/scripts/ajv-validator.js:961–966  ·  view source on GitHub ↗
(names, constants)

Source from the content-addressed store, hash-verified

959 return `for(${this.iteration})` + super.render(opts);
960 }
961 optimizeNames(names, constants) {
962 if (!super.optimizeNames(names, constants))
963 return;
964 this.iteration = optimizeExpr(this.iteration, names, constants);
965 return this;
966 }
967 get names() {
968 return addNames(super.names, this.iteration.names);
969 }

Callers

nothing calls this directly

Calls 2

optimizeExprFunction · 0.85
optimizeNamesMethod · 0.45

Tested by

no test coverage detected