()
| 47 | public firstElement: XmlNode | null = null; |
| 48 | |
| 49 | public *childElements() { |
| 50 | for (const c of this.childNodes) { |
| 51 | if (c.nodeType === XmlNodeType.Element) { |
| 52 | yield c; |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | public addChild(node: XmlNode): void { |
| 58 | this.childNodes.push(node); |
no outgoing calls