MCPcopy
hub / github.com/ajv-validator/ajv / toName

Method toName

lib/compile/codegen/scope.ts:70–72  ·  view source on GitHub ↗
(nameOrPrefix: Name | string)

Source from the content-addressed store, hash-verified

68 }
69
70 toName(nameOrPrefix: Name | string): Name {
71 return nameOrPrefix instanceof Name ? nameOrPrefix : this.name(nameOrPrefix)
72 }
73
74 name(prefix: string): Name {
75 return new Name(this._newName(prefix))

Callers 5

_defMethod · 0.80
forRangeMethod · 0.80
forOfMethod · 0.80
forInMethod · 0.80
valueMethod · 0.80

Calls 1

nameMethod · 0.95

Tested by

no test coverage detected