MCPcopy Create free account
hub / github.com/SAP/ui5-builder / write

Method write

lib/lbt/bundle/BundleWriter.js:30–46  ·  view source on GitHub ↗
(...str)

Source from the content-addressed store, hash-verified

28 }
29
30 write(...str) {
31 let writeBuf = "";
32 for ( let i = 0; i < str.length; i++ ) {
33 writeBuf += str[i];
34 if (str[i] != null && str[i].split) {
35 const strSplit = str[i].split(NL);
36 this.lineOffset += strSplit.length - 1;
37 this.columnOffset += strSplit[strSplit.length - 1].length;
38 }
39 }
40 if ( writeBuf.length >= 1 ) {
41 this.buf += writeBuf;
42 this.endsWithNewLine =
43 ENDS_WITH_NEW_LINE.test(writeBuf) ||
44 (this.endsWithNewLine && SPACES_OR_TABS_ONLY.test(writeBuf));
45 }
46 }
47
48 writeln(...str) {
49 for ( let i = 0; i < str.length; i++ ) {

Calls

no outgoing calls

Tested by

no test coverage detected