node_modules/@babel/generator/lib/generators/base.js in immosquare-cleaner-0.1.47 vs node_modules/@babel/generator/lib/generators/base.js in immosquare-cleaner-0.1.48
- old
+ new
@@ -10,13 +10,13 @@
exports.InterpreterDirective = InterpreterDirective;
exports.Placeholder = Placeholder;
exports.Program = Program;
function File(node) {
if (node.program) {
- this.print(node.program.interpreter, node);
+ this.print(node.program.interpreter);
}
- this.print(node.program, node);
+ this.print(node.program);
}
function Program(node) {
var _node$directives;
this.noIndentInnerCommentsHere();
this.printInnerComments();
@@ -46,16 +46,18 @@
});
if (!((_node$directives$trai2 = node.directives[directivesLen - 1].trailingComments) != null && _node$directives$trai2.length)) {
this.newline(newline);
}
}
+ const exit = this.enterForStatementInit(false);
this.printSequence(node.body, node, {
indent: true
});
+ exit();
this.rightBrace(node);
}
function Directive(node) {
- this.print(node.value, node);
+ this.print(node.value);
this.semicolon();
}
const unescapedSingleQuoteRE = /(?:^|[^\\])(?:\\\\)*'/;
const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/;
function DirectiveLiteral(node) {