node_modules/babel-generator/lib/generators/base.js in babel-schmooze-sprockets-0.1.0.alpha.3 vs node_modules/babel-generator/lib/generators/base.js in babel-schmooze-sprockets-0.1.0
- old
+ new
@@ -1,15 +1,14 @@
-"use strict";
+/*istanbul ignore next*/"use strict";
exports.__esModule = true;
exports.File = File;
-exports.Program = Program;
-exports.BlockStatement = BlockStatement;
-exports.Noop = Noop;
-exports.Directive = Directive;
-exports.DirectiveLiteral = DirectiveLiteral;
-
+/*istanbul ignore next*/exports.Program = Program;
+/*istanbul ignore next*/exports.BlockStatement = BlockStatement;
+/*istanbul ignore next*/exports.Noop = Noop;
+/*istanbul ignore next*/exports.Directive = Directive;
+/*istanbul ignore next*/exports.DirectiveLiteral = DirectiveLiteral;
function File(node) {
this.print(node.program, node);
}
function Program(node) {
@@ -30,11 +29,14 @@
this.printSequence(node.directives, node, { indent: true });
if (node.directives && node.directives.length) this.newline();
this.printSequence(node.body, node, { indent: true });
if (!this.format.retainLines && !this.format.concise) this.removeLast("\n");
+
+ this.source("end", node.loc);
this.rightBrace();
} else {
+ this.source("end", node.loc);
this.push("}");
}
}
function Noop() {}
\ No newline at end of file