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

Method undeclared

packages/effect/src/encoding/Xml.ts:1972–1976  ·  view source on GitHub ↗
(message: string, i: number)

Source from the content-addressed store, hash-verified

1970 // A DTD can declare a prefix with a default attribute value, which is not
1971 // applied, so an undeclared prefix is a `Syntax` error only without a DOCTYPE
1972 private undeclared(message: string, i: number): XmlError {
1973 return this.doctype ?
1974 this.error("Unsupported", `${message} (namespaces declared in a DTD are not applied)`, this.base + i) :
1975 this.syntax(message, i)
1976 }
1977
1978 private attributeValue(s: string, i: number, j: number): string {
1979 let reference = false

Callers 1

openScopeMethod · 0.95

Calls 2

errorMethod · 0.95
syntaxMethod · 0.95

Tested by

no test coverage detected