UNPKG

838 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var util_1 = require("./util");
4var Printer = (function () {
5 function Printer(indentLevel) {
6 this.output = "";
7 this.indentStr = util_1.generateIndent(indentLevel);
8 }
9 Printer.prototype.printLn = function (str) {
10 this.output += this.indentStr + str + "\n";
11 };
12 Printer.prototype.print = function (str) {
13 this.output += str;
14 };
15 Printer.prototype.printEmptyLn = function () {
16 this.output += "\n";
17 };
18 Printer.prototype.printIndentedLn = function (str) {
19 this.output += this.indentStr + " " + str + "\n";
20 };
21 Printer.prototype.getOutput = function () {
22 return this.output;
23 };
24 return Printer;
25}());
26exports.Printer = Printer;
27//# sourceMappingURL=Printer.js.map
\No newline at end of file