1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var util_1 = require("./util");
|
4 | var 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 | }());
|
26 | exports.Printer = Printer;
|
27 |
|
\ | No newline at end of file |