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

Function splitName

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

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

(name)

Source from the content-addressed store, hash-verified

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

Callers 4

hoistInlineEnumsFunction · 0.85
hoistInlineRecordsFunction · 0.85
variantRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected