MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / splitName

Function splitName

javascript/selenium-webdriver/normalize_bidi_ast.mjs:69–72  ·  view source on GitHub ↗

Split a dotted CDDL name into `{ domain, local }` (domain '' when undotted).

(name)

Source from the content-addressed store, hash-verified

67
68/** Split a dotted CDDL name into `{ domain, local }` (domain '' when undotted). */
69function splitName(name) {
70 const i = name.indexOf('.')
71 return i === -1 ? { domain: '', local: name } : { domain: name.slice(0, i), local: name.slice(i + 1) }
72}
73
74/** A factory for collision-free synthetic def names within a known name set. */
75function nameAllocator(existing) {

Callers 4

hoistInlineEnumsFunction · 0.85
hoistInlineRecordsFunction · 0.85
variantRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected