MCPcopy Create free account
hub / github.com/Effect-TS/effect / checkName

Method checkName

packages/effect/src/encoding/Xml.ts:2545–2547  ·  view source on GitHub ↗
(what: string, name: string)

Source from the content-addressed store, hash-verified

2543 }
2544
2545 private checkName(what: string, name: string): void {
2546 if (!this.isName(name)) checkName(what, name)
2547 }
2548
2549 private isName(name: string): boolean {
2550 if (this.names.has(name)) return true

Callers 2

checkAttributesMethod · 0.95
writeMethod · 0.95

Calls 2

isNameMethod · 0.95
checkNameFunction · 0.85

Tested by

no test coverage detected