MCPcopy Index your code
hub / github.com/CoderLine/alphaTab / addChild

Method addChild

packages/alphatab/src/xml/XmlNode.ts:57–63  ·  view source on GitHub ↗
(node: XmlNode)

Source from the content-addressed store, hash-verified

55 }
56
57 public addChild(node: XmlNode): void {
58 this.childNodes.push(node);
59 this.firstChild = node;
60 if (node.nodeType === XmlNodeType.Element || node.nodeType === XmlNodeType.CDATA) {
61 this.firstElement = node;
62 }
63 }
64
65 public getAttribute(name: string, defaultValue: string = ''): string {
66 if (this.attributes.has(name)) {

Callers 4

addElementMethod · 0.95
XmllWrite.test.tsFile · 0.80
parseMethod · 0.80
_writeDomMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected