@putout/bundle 3.16.0 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle/putout.js CHANGED
@@ -8582,7 +8582,7 @@ __export(lib_exports, {
8582
8582
  return conditionalExpression$1;
8583
8583
  },
8584
8584
  ContinueStatement: function() {
8585
- return continueStatement;
8585
+ return continueStatement$1;
8586
8586
  },
8587
8587
  DECLARATION_TYPES: function() {
8588
8588
  return DECLARATION_TYPES;
@@ -10487,7 +10487,7 @@ __export(lib_exports, {
10487
10487
  return conditionalExpression$1;
10488
10488
  },
10489
10489
  continueStatement: function() {
10490
- return continueStatement;
10490
+ return continueStatement$1;
10491
10491
  },
10492
10492
  createFlowUnionType: function() {
10493
10493
  return createFlowUnionType;
@@ -21381,7 +21381,7 @@ function conditionalExpression$1(test, consequent, alternate) {
21381
21381
  alternate: alternate
21382
21382
  });
21383
21383
  }
21384
- function continueStatement() {
21384
+ function continueStatement$1() {
21385
21385
  var label = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
21386
21386
  return validateNode({
21387
21387
  type: "ContinueStatement",
@@ -46796,7 +46796,7 @@ function BreakStatement$1(node) {
46796
46796
  this.word("break");
46797
46797
  printStatementAfterKeyword(this, node.label, node, true);
46798
46798
  }
46799
- function ContinueStatement(node) {
46799
+ function ContinueStatement$1(node) {
46800
46800
  this.word("continue");
46801
46801
  printStatementAfterKeyword(this, node.label, node, true);
46802
46802
  }
@@ -49097,7 +49097,7 @@ var generatorFunctions = /* @__PURE__ */ Object.freeze({
49097
49097
  ClassPrivateProperty: ClassPrivateProperty$1,
49098
49098
  ClassProperty: ClassProperty$1,
49099
49099
  ConditionalExpression: ConditionalExpression$2,
49100
- ContinueStatement: ContinueStatement,
49100
+ ContinueStatement: ContinueStatement$1,
49101
49101
  DebuggerStatement: DebuggerStatement$1,
49102
49102
  DecimalLiteral: DecimalLiteral,
49103
49103
  DeclareClass: DeclareClass,
@@ -82920,9 +82920,13 @@ breakStatement.BreakStatement = {
82920
82920
  split(path, {print}) {
82921
82921
  print.newline();
82922
82922
  },
82923
- print(path, {print, indent}) {
82923
+ print(path, {print, indent, maybe}) {
82924
+ const {label} = path.node;
82924
82925
  indent();
82925
- print('break;');
82926
+ print('break');
82927
+ maybe.print.space(label);
82928
+ print('__label');
82929
+ print(';');
82926
82930
  },
82927
82931
  afterSatisfy: () => [
82928
82932
  isParentBlock,
@@ -82991,6 +82995,21 @@ program.Program = (path, printer, semantics) => {
82991
82995
  write.endOfFile();
82992
82996
  };
82993
82997
 
82998
+ var continueStatement = {};
82999
+
83000
+ continueStatement.ContinueStatement = (path, {indent, print, maybe, write}) => {
83001
+ const {label} = path.node;
83002
+
83003
+ indent();
83004
+ print('continue');
83005
+
83006
+ maybe.print.space(label);
83007
+ print('__label');
83008
+
83009
+ write(';');
83010
+ print.newline();
83011
+ };
83012
+
82994
83013
  const {ExpressionStatement: ExpressionStatement$1} = expressionStatement;
82995
83014
  const {VariableDeclaration} = variableDeclaration;
82996
83015
  const {IfStatement} = ifStatement;
@@ -83011,6 +83030,7 @@ const {ExportDefaultDeclaration} = exportDefaultDeclaration;
83011
83030
  const {BreakStatement} = breakStatement;
83012
83031
  const {DoWhileStatement} = doWhileStatement;
83013
83032
  const {Program} = program;
83033
+ const {ContinueStatement} = continueStatement;
83014
83034
 
83015
83035
  const {
83016
83036
  ExportNamespaceSpecifier,
@@ -83052,11 +83072,7 @@ var statements$1 = {
83052
83072
  SwitchStatement,
83053
83073
  ...TryStatements,
83054
83074
  BreakStatement,
83055
- ContinueStatement(path, {indent, print}) {
83056
- indent();
83057
- print('continue;');
83058
- print.newline();
83059
- },
83075
+ ContinueStatement,
83060
83076
  WhileStatement,
83061
83077
  };
83062
83078