MCPcopy Create free account
hub / github.com/ajv-validator/ajv / optimizeNames

Method optimizeNames

lib/compile/codegen/index.ts:290–294  ·  view source on GitHub ↗
(names: UsedNames, constants: Constants)

Source from the content-addressed store, hash-verified

288 }
289
290 optimizeNames(names: UsedNames, constants: Constants): this | undefined {
291 if (!super.optimizeNames(names, constants)) return
292 this.iteration = optimizeExpr(this.iteration, names, constants)
293 return this
294 }
295
296 get names(): UsedNames {
297 return addNames(super.names, this.iteration.names)

Callers

nothing calls this directly

Calls 2

optimizeExprFunction · 0.85
optimizeNamesMethod · 0.45

Tested by

no test coverage detected