MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / _writeLine

Method _writeLine

packages/alphatab/src/xml/XmlWriter.ts:135–143  ·  view source on GitHub ↗
(s: string | null = null)

Source from the content-addressed store, hash-verified

133 }
134
135 private _writeLine(s: string | null = null) {
136 if (s) {
137 this._write(s);
138 }
139 if (this._indention.length > 0 && !this._isStartOfLine) {
140 this._result.push('\n');
141 this._isStartOfLine = true;
142 }
143 }
144
145 public toString() {
146 return this._result.join('').trimRight();

Callers 1

writeNodeMethod · 0.95

Calls 2

_writeMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected