Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
_def
Method · 0.80
forRange
Method · 0.80
forOf
Method · 0.80
forIn
Method · 0.80
value
Method · 0.80
Calls
1
name
Method · 0.95
Tested by
no test coverage detected