MCPcopy
hub / github.com/exceljs/exceljs / openNode

Method openNode

lib/utils/xml-stream.js:50–65  ·  view source on GitHub ↗
(name, attributes)

Source from the content-addressed store, hash-verified

48 }
49
50 openNode(name, attributes) {
51 const parent = this.tos;
52 const xml = this._xml;
53 if (parent && this.open) {
54 xml.push(CLOSE_ANGLE);
55 }
56
57 this._stack.push(name);
58
59 // start streaming node
60 xml.push(OPEN_ANGLE);
61 xml.push(name);
62 pushAttributes(xml, attributes);
63 this.leaf = true;
64 this.open = true;
65 }
66
67 addAttribute(name, value) {
68 if (!this.open) {

Callers 15

leafNodeMethod · 0.95
buildFunction · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80

Calls 2

pushAttributesFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected