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

Method writeln

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

Source from the content-addressed store, hash-verified

46 }
47
48 writeln(...str) {
49 for ( let i = 0; i < str.length; i++ ) {
50 this.buf += str[i];
51 if (str[i] != null && str[i].split) {
52 const strSplit = str[i].split(NL);
53 this.lineOffset += strSplit.length - 1;
54 }
55 }
56 this.buf += NL;
57 this.endsWithNewLine = true;
58 this.lineOffset += 1;
59 this.columnOffset = 0;
60 }
61
62 ensureNewLine() {
63 if ( !this.endsWithNewLine ) {

Callers 8

openModuleMethod · 0.80
closeModuleMethod · 0.80
ensureRawDeclarationsMethod · 0.80
writeRawMethod · 0.80
writePreloadFunctionMethod · 0.80
writePreloadModuleMethod · 0.80
writeDepCacheMethod · 0.80
BundleWriter.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected