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

Method endElement

packages/effect/src/encoding/Xml.ts:1918–1923  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

1916 }
1917
1918 private endElement(name: string): EndElement {
1919 if (!this.namespaces) return { _tag: "EndElement", name }
1920 const scope = this.scopes.pop()!
1921 this.restore(scope.undo)
1922 return { _tag: "EndElement", name, namespace: scope.namespace, localName: scope.localName }
1923 }
1924
1925 // Returns the shared namespace for `uri`. Finding it costs the length of
1926 // `uri`, which is part of the declaration being read.

Callers 2

startTagMethod · 0.95
endTagMethod · 0.95

Calls 1

restoreMethod · 0.95

Tested by

no test coverage detected