(name: string)
| 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. |