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

Method optimizeNames

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

Source from the content-addressed store, hash-verified

842 return `${this.code}` ? this : undefined;
843 }
844 optimizeNames(names, constants) {
845 this.code = optimizeExpr(this.code, names, constants);
846 return this;
847 }
848 get names() {
849 return this.code instanceof code_1._CodeOrName ? this.code.names : {};
850 }

Callers

nothing calls this directly

Calls 1

optimizeExprFunction · 0.85

Tested by

no test coverage detected