houdini-svelte 1.0.0-next.6 → 1.0.0-next.7

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.
Files changed (43) hide show
  1. package/build/plugin-cjs/index.js +720 -722
  2. package/build/plugin-esm/index.js +720 -722
  3. package/build/preprocess-cjs/index.js +712 -712
  4. package/build/preprocess-esm/index.js +712 -712
  5. package/build/runtime/client.d.ts +3 -1
  6. package/build/runtime/stores/base.d.ts +8 -0
  7. package/build/runtime/stores/mutation.d.ts +2 -6
  8. package/build/runtime/stores/pagination/query.d.ts +1 -2
  9. package/build/runtime/stores/query.d.ts +3 -4
  10. package/build/runtime/stores/subscription.d.ts +2 -3
  11. package/build/runtime-cjs/client.d.ts +3 -1
  12. package/build/runtime-cjs/client.js +16 -4
  13. package/build/runtime-cjs/stores/base.d.ts +8 -0
  14. package/build/runtime-cjs/{imports/client.js → stores/base.js} +25 -7
  15. package/build/runtime-cjs/stores/mutation.d.ts +2 -6
  16. package/build/runtime-cjs/stores/mutation.js +5 -9
  17. package/build/runtime-cjs/stores/pagination/fragment.js +3 -1
  18. package/build/runtime-cjs/stores/pagination/query.d.ts +1 -2
  19. package/build/runtime-cjs/stores/pagination/query.js +23 -12
  20. package/build/runtime-cjs/stores/query.d.ts +3 -4
  21. package/build/runtime-cjs/stores/query.js +27 -10
  22. package/build/runtime-cjs/stores/subscription.d.ts +2 -3
  23. package/build/runtime-cjs/stores/subscription.js +6 -7
  24. package/build/runtime-esm/client.d.ts +3 -1
  25. package/build/runtime-esm/client.js +13 -2
  26. package/build/runtime-esm/stores/base.d.ts +8 -0
  27. package/build/runtime-esm/stores/base.js +21 -0
  28. package/build/runtime-esm/stores/mutation.d.ts +2 -6
  29. package/build/runtime-esm/stores/mutation.js +6 -10
  30. package/build/runtime-esm/stores/pagination/fragment.js +4 -2
  31. package/build/runtime-esm/stores/pagination/query.d.ts +1 -2
  32. package/build/runtime-esm/stores/pagination/query.js +24 -13
  33. package/build/runtime-esm/stores/query.d.ts +3 -4
  34. package/build/runtime-esm/stores/query.js +27 -10
  35. package/build/runtime-esm/stores/subscription.d.ts +2 -3
  36. package/build/runtime-esm/stores/subscription.js +7 -8
  37. package/build/test-cjs/index.js +1426 -1428
  38. package/build/test-esm/index.js +1426 -1428
  39. package/package.json +2 -2
  40. package/build/runtime/imports/client.d.ts +0 -3
  41. package/build/runtime-cjs/imports/client.d.ts +0 -3
  42. package/build/runtime-esm/imports/client.d.ts +0 -3
  43. package/build/runtime-esm/imports/client.js +0 -5
@@ -34091,10 +34091,10 @@ var require_printer = __commonJS2({
34091
34091
  Object.defineProperty(exports, "__esModule", {
34092
34092
  value: true
34093
34093
  });
34094
- exports.print = print5;
34094
+ exports.print = print4;
34095
34095
  var _visitor = require_visitor();
34096
34096
  var _blockString = require_blockString();
34097
- function print5(ast) {
34097
+ function print4(ast) {
34098
34098
  return (0, _visitor.visit)(ast, {
34099
34099
  leave: printDocASTReducer22
34100
34100
  });
@@ -85794,12 +85794,12 @@ var require_comments = __commonJS2({
85794
85794
  comment.trailing = true;
85795
85795
  addCommentHelper(node2, comment);
85796
85796
  }
85797
- function printLeadingComment(commentPath, print5) {
85797
+ function printLeadingComment(commentPath, print4) {
85798
85798
  var comment = commentPath.getValue();
85799
85799
  n2.Comment.assert(comment);
85800
85800
  var loc = comment.loc;
85801
85801
  var lines = loc && loc.lines;
85802
- var parts = [print5(commentPath)];
85802
+ var parts = [print4(commentPath)];
85803
85803
  if (comment.trailing) {
85804
85804
  parts.push("\n");
85805
85805
  } else if (lines instanceof lines_1.Lines) {
@@ -85814,7 +85814,7 @@ var require_comments = __commonJS2({
85814
85814
  }
85815
85815
  return (0, lines_1.concat)(parts);
85816
85816
  }
85817
- function printTrailingComment(commentPath, print5) {
85817
+ function printTrailingComment(commentPath, print4) {
85818
85818
  var comment = commentPath.getValue(commentPath);
85819
85819
  n2.Comment.assert(comment);
85820
85820
  var loc = comment.loc;
@@ -85829,12 +85829,12 @@ var require_comments = __commonJS2({
85829
85829
  parts.push(new Array(leadingSpace.length).join("\n"));
85830
85830
  }
85831
85831
  }
85832
- parts.push(print5(commentPath));
85832
+ parts.push(print4(commentPath));
85833
85833
  return (0, lines_1.concat)(parts);
85834
85834
  }
85835
- function printComments(path22, print5) {
85835
+ function printComments(path22, print4) {
85836
85836
  var value2 = path22.getValue();
85837
- var innerLines = print5(path22);
85837
+ var innerLines = print4(path22);
85838
85838
  var comments = n2.Node.check(value2) && types42.getFieldValue(value2, "comments");
85839
85839
  if (!comments || comments.length === 0) {
85840
85840
  return innerLines;
@@ -85846,9 +85846,9 @@ var require_comments = __commonJS2({
85846
85846
  var leading = types42.getFieldValue(comment, "leading");
85847
85847
  var trailing = types42.getFieldValue(comment, "trailing");
85848
85848
  if (leading || trailing && !(n2.Statement.check(value2) || comment.type === "Block" || comment.type === "CommentBlock")) {
85849
- leadingParts.push(printLeadingComment(commentPath, print5));
85849
+ leadingParts.push(printLeadingComment(commentPath, print4));
85850
85850
  } else if (trailing) {
85851
- trailingParts.push(printTrailingComment(commentPath, print5));
85851
+ trailingParts.push(printTrailingComment(commentPath, print4));
85852
85852
  }
85853
85853
  }, "comments");
85854
85854
  leadingParts.push.apply(leadingParts, trailingParts);
@@ -86533,7 +86533,7 @@ var require_patcher = __commonJS2({
86533
86533
  };
86534
86534
  exports.Patcher = Patcher;
86535
86535
  var Pp = Patcher.prototype;
86536
- Pp.tryToReprintComments = function(newNode, oldNode, print5) {
86536
+ Pp.tryToReprintComments = function(newNode, oldNode, print4) {
86537
86537
  var patcher = this;
86538
86538
  if (!newNode.comments && !oldNode.comments) {
86539
86539
  return true;
@@ -86550,7 +86550,7 @@ var require_patcher = __commonJS2({
86550
86550
  assert_1.default.ok(oldComment.leading || oldComment.trailing);
86551
86551
  patcher.replace(
86552
86552
  oldComment.loc,
86553
- print5(reprint.newPath).indentTail(oldComment.loc.indent)
86553
+ print4(reprint.newPath).indentTail(oldComment.loc.indent)
86554
86554
  );
86555
86555
  });
86556
86556
  }
@@ -86597,17 +86597,17 @@ var require_patcher = __commonJS2({
86597
86597
  var reprints = [];
86598
86598
  if (!lines || !findReprints(path22, reprints))
86599
86599
  return;
86600
- return function(print5) {
86600
+ return function(print4) {
86601
86601
  var patcher = new Patcher(lines);
86602
86602
  reprints.forEach(function(reprint) {
86603
86603
  var newNode = reprint.newPath.getValue();
86604
86604
  var oldNode = reprint.oldPath.getValue();
86605
86605
  SourceLocation3.assert(oldNode.loc, true);
86606
- var needToPrintNewPathWithComments = !patcher.tryToReprintComments(newNode, oldNode, print5);
86606
+ var needToPrintNewPathWithComments = !patcher.tryToReprintComments(newNode, oldNode, print4);
86607
86607
  if (needToPrintNewPathWithComments) {
86608
86608
  patcher.deleteComments(oldNode);
86609
86609
  }
86610
- var newLines = print5(reprint.newPath, {
86610
+ var newLines = print4(reprint.newPath, {
86611
86611
  includeComments: needToPrintNewPathWithComments,
86612
86612
  avoidRootParens: oldNode.type === newNode.type && reprint.oldPath.hasParens()
86613
86613
  }).indentTail(oldNode.loc.indent);
@@ -86822,10 +86822,10 @@ var require_printer2 = __commonJS2({
86822
86822
  function makePrintFunctionWith(options, overrides) {
86823
86823
  options = Object.assign({}, options, overrides);
86824
86824
  return function(path22) {
86825
- return print5(path22, options);
86825
+ return print4(path22, options);
86826
86826
  };
86827
86827
  }
86828
- function print5(path22, options) {
86828
+ function print4(path22, options) {
86829
86829
  assert_1.default.ok(path22 instanceof fast_path_1.default);
86830
86830
  options = options || {};
86831
86831
  if (options.includeComments) {
@@ -86841,7 +86841,7 @@ var require_printer2 = __commonJS2({
86841
86841
  }
86842
86842
  }
86843
86843
  var reprinter = (0, patcher_1.getReprinter)(path22);
86844
- var lines = reprinter ? reprinter(print5) : genericPrint(path22, config4, options, makePrintFunctionWith(options, {
86844
+ var lines = reprinter ? reprinter(print4) : genericPrint(path22, config4, options, makePrintFunctionWith(options, {
86845
86845
  includeComments: true,
86846
86846
  avoidRootParens: false
86847
86847
  }));
@@ -86852,7 +86852,7 @@ var require_printer2 = __commonJS2({
86852
86852
  if (!ast) {
86853
86853
  return emptyPrintResult;
86854
86854
  }
86855
- var lines = print5(fast_path_1.default.from(ast), {
86855
+ var lines = print4(fast_path_1.default.from(ast), {
86856
86856
  includeComments: true,
86857
86857
  avoidRootParens: false
86858
86858
  });
@@ -86905,7 +86905,7 @@ var require_printer2 = __commonJS2({
86905
86905
  }
86906
86906
  return (0, lines_1.concat)(parts);
86907
86907
  }
86908
- function genericPrintNoParens(path22, options, print5) {
86908
+ function genericPrintNoParens(path22, options, print4) {
86909
86909
  var n2 = path22.getValue();
86910
86910
  if (!n2) {
86911
86911
  return (0, lines_1.fromString)("");
@@ -86917,45 +86917,45 @@ var require_printer2 = __commonJS2({
86917
86917
  var parts = [];
86918
86918
  switch (n2.type) {
86919
86919
  case "File":
86920
- return path22.call(print5, "program");
86920
+ return path22.call(print4, "program");
86921
86921
  case "Program":
86922
86922
  if (n2.directives) {
86923
86923
  path22.each(function(childPath) {
86924
- parts.push(print5(childPath), ";\n");
86924
+ parts.push(print4(childPath), ";\n");
86925
86925
  }, "directives");
86926
86926
  }
86927
86927
  if (n2.interpreter) {
86928
- parts.push(path22.call(print5, "interpreter"));
86928
+ parts.push(path22.call(print4, "interpreter"));
86929
86929
  }
86930
86930
  parts.push(path22.call(function(bodyPath) {
86931
- return printStatementSequence(bodyPath, options, print5);
86931
+ return printStatementSequence(bodyPath, options, print4);
86932
86932
  }, "body"));
86933
86933
  return (0, lines_1.concat)(parts);
86934
86934
  case "Noop":
86935
86935
  case "EmptyStatement":
86936
86936
  return (0, lines_1.fromString)("");
86937
86937
  case "ExpressionStatement":
86938
- return (0, lines_1.concat)([path22.call(print5, "expression"), ";"]);
86938
+ return (0, lines_1.concat)([path22.call(print4, "expression"), ";"]);
86939
86939
  case "ParenthesizedExpression":
86940
- return (0, lines_1.concat)(["(", path22.call(print5, "expression"), ")"]);
86940
+ return (0, lines_1.concat)(["(", path22.call(print4, "expression"), ")"]);
86941
86941
  case "BinaryExpression":
86942
86942
  case "LogicalExpression":
86943
86943
  case "AssignmentExpression":
86944
86944
  return (0, lines_1.fromString)(" ").join([
86945
- path22.call(print5, "left"),
86945
+ path22.call(print4, "left"),
86946
86946
  n2.operator,
86947
- path22.call(print5, "right")
86947
+ path22.call(print4, "right")
86948
86948
  ]);
86949
86949
  case "AssignmentPattern":
86950
86950
  return (0, lines_1.concat)([
86951
- path22.call(print5, "left"),
86951
+ path22.call(print4, "left"),
86952
86952
  " = ",
86953
- path22.call(print5, "right")
86953
+ path22.call(print4, "right")
86954
86954
  ]);
86955
86955
  case "MemberExpression":
86956
86956
  case "OptionalMemberExpression": {
86957
- parts.push(path22.call(print5, "object"));
86958
- var property = path22.call(print5, "property");
86957
+ parts.push(path22.call(print4, "object"));
86958
+ var property = path22.call(print4, "property");
86959
86959
  var optional = types42.getFieldValue(n2, "optional");
86960
86960
  if (n2.computed) {
86961
86961
  parts.push(optional ? "?.[" : "[", property, "]");
@@ -86965,18 +86965,18 @@ var require_printer2 = __commonJS2({
86965
86965
  return (0, lines_1.concat)(parts);
86966
86966
  }
86967
86967
  case "ChainExpression":
86968
- return path22.call(print5, "expression");
86968
+ return path22.call(print4, "expression");
86969
86969
  case "MetaProperty":
86970
86970
  return (0, lines_1.concat)([
86971
- path22.call(print5, "meta"),
86971
+ path22.call(print4, "meta"),
86972
86972
  ".",
86973
- path22.call(print5, "property")
86973
+ path22.call(print4, "property")
86974
86974
  ]);
86975
86975
  case "BindExpression":
86976
86976
  if (n2.object) {
86977
- parts.push(path22.call(print5, "object"));
86977
+ parts.push(path22.call(print4, "object"));
86978
86978
  }
86979
- parts.push("::", path22.call(print5, "callee"));
86979
+ parts.push("::", path22.call(print4, "callee"));
86980
86980
  return (0, lines_1.concat)(parts);
86981
86981
  case "Path":
86982
86982
  return (0, lines_1.fromString)(".").join(n2.body);
@@ -86984,7 +86984,7 @@ var require_printer2 = __commonJS2({
86984
86984
  return (0, lines_1.concat)([
86985
86985
  (0, lines_1.fromString)(n2.name, options),
86986
86986
  n2.optional ? "?" : "",
86987
- path22.call(print5, "typeAnnotation")
86987
+ path22.call(print4, "typeAnnotation")
86988
86988
  ]);
86989
86989
  case "SpreadElement":
86990
86990
  case "SpreadElementPattern":
@@ -86995,8 +86995,8 @@ var require_printer2 = __commonJS2({
86995
86995
  case "RestElement":
86996
86996
  return (0, lines_1.concat)([
86997
86997
  "...",
86998
- path22.call(print5, "argument"),
86999
- path22.call(print5, "typeAnnotation")
86998
+ path22.call(print4, "argument"),
86999
+ path22.call(print4, "typeAnnotation")
87000
87000
  ]);
87001
87001
  case "FunctionDeclaration":
87002
87002
  case "FunctionExpression":
@@ -87011,15 +87011,15 @@ var require_printer2 = __commonJS2({
87011
87011
  if (n2.generator)
87012
87012
  parts.push("*");
87013
87013
  if (n2.id) {
87014
- parts.push(" ", path22.call(print5, "id"), path22.call(print5, "typeParameters"));
87014
+ parts.push(" ", path22.call(print4, "id"), path22.call(print4, "typeParameters"));
87015
87015
  } else {
87016
87016
  if (n2.typeParameters) {
87017
- parts.push(path22.call(print5, "typeParameters"));
87017
+ parts.push(path22.call(print4, "typeParameters"));
87018
87018
  }
87019
87019
  }
87020
- parts.push("(", printFunctionParams(path22, options, print5), ")", path22.call(print5, "returnType"));
87020
+ parts.push("(", printFunctionParams(path22, options, print4), ")", path22.call(print4, "returnType"));
87021
87021
  if (n2.body) {
87022
- parts.push(" ", path22.call(print5, "body"));
87022
+ parts.push(" ", path22.call(print4, "body"));
87023
87023
  }
87024
87024
  return (0, lines_1.concat)(parts);
87025
87025
  case "ArrowFunctionExpression":
@@ -87027,44 +87027,44 @@ var require_printer2 = __commonJS2({
87027
87027
  parts.push("async ");
87028
87028
  }
87029
87029
  if (n2.typeParameters) {
87030
- parts.push(path22.call(print5, "typeParameters"));
87030
+ parts.push(path22.call(print4, "typeParameters"));
87031
87031
  }
87032
87032
  if (!options.arrowParensAlways && n2.params.length === 1 && !n2.rest && n2.params[0].type === "Identifier" && !n2.params[0].typeAnnotation && !n2.returnType) {
87033
- parts.push(path22.call(print5, "params", 0));
87033
+ parts.push(path22.call(print4, "params", 0));
87034
87034
  } else {
87035
- parts.push("(", printFunctionParams(path22, options, print5), ")", path22.call(print5, "returnType"));
87035
+ parts.push("(", printFunctionParams(path22, options, print4), ")", path22.call(print4, "returnType"));
87036
87036
  }
87037
- parts.push(" => ", path22.call(print5, "body"));
87037
+ parts.push(" => ", path22.call(print4, "body"));
87038
87038
  return (0, lines_1.concat)(parts);
87039
87039
  case "MethodDefinition":
87040
- return printMethod(path22, options, print5);
87040
+ return printMethod(path22, options, print4);
87041
87041
  case "YieldExpression":
87042
87042
  parts.push("yield");
87043
87043
  if (n2.delegate)
87044
87044
  parts.push("*");
87045
87045
  if (n2.argument)
87046
- parts.push(" ", path22.call(print5, "argument"));
87046
+ parts.push(" ", path22.call(print4, "argument"));
87047
87047
  return (0, lines_1.concat)(parts);
87048
87048
  case "AwaitExpression":
87049
87049
  parts.push("await");
87050
87050
  if (n2.all)
87051
87051
  parts.push("*");
87052
87052
  if (n2.argument)
87053
- parts.push(" ", path22.call(print5, "argument"));
87053
+ parts.push(" ", path22.call(print4, "argument"));
87054
87054
  return (0, lines_1.concat)(parts);
87055
87055
  case "ModuleExpression":
87056
87056
  return (0, lines_1.concat)([
87057
87057
  "module {\n",
87058
- path22.call(print5, "body").indent(options.tabWidth),
87058
+ path22.call(print4, "body").indent(options.tabWidth),
87059
87059
  "\n}"
87060
87060
  ]);
87061
87061
  case "ModuleDeclaration":
87062
- parts.push("module", path22.call(print5, "id"));
87062
+ parts.push("module", path22.call(print4, "id"));
87063
87063
  if (n2.source) {
87064
87064
  assert_1.default.ok(!n2.body);
87065
- parts.push("from", path22.call(print5, "source"));
87065
+ parts.push("from", path22.call(print4, "source"));
87066
87066
  } else {
87067
- parts.push(path22.call(print5, "body"));
87067
+ parts.push(path22.call(print4, "body"));
87068
87068
  }
87069
87069
  return (0, lines_1.fromString)(" ").join(parts);
87070
87070
  case "ImportSpecifier":
@@ -87072,27 +87072,27 @@ var require_printer2 = __commonJS2({
87072
87072
  parts.push(n2.importKind + " ");
87073
87073
  }
87074
87074
  if (n2.imported) {
87075
- parts.push(path22.call(print5, "imported"));
87075
+ parts.push(path22.call(print4, "imported"));
87076
87076
  if (n2.local && n2.local.name !== n2.imported.name) {
87077
- parts.push(" as ", path22.call(print5, "local"));
87077
+ parts.push(" as ", path22.call(print4, "local"));
87078
87078
  }
87079
87079
  } else if (n2.id) {
87080
- parts.push(path22.call(print5, "id"));
87080
+ parts.push(path22.call(print4, "id"));
87081
87081
  if (n2.name) {
87082
- parts.push(" as ", path22.call(print5, "name"));
87082
+ parts.push(" as ", path22.call(print4, "name"));
87083
87083
  }
87084
87084
  }
87085
87085
  return (0, lines_1.concat)(parts);
87086
87086
  case "ExportSpecifier":
87087
87087
  if (n2.local) {
87088
- parts.push(path22.call(print5, "local"));
87088
+ parts.push(path22.call(print4, "local"));
87089
87089
  if (n2.exported && n2.exported.name !== n2.local.name) {
87090
- parts.push(" as ", path22.call(print5, "exported"));
87090
+ parts.push(" as ", path22.call(print4, "exported"));
87091
87091
  }
87092
87092
  } else if (n2.id) {
87093
- parts.push(path22.call(print5, "id"));
87093
+ parts.push(path22.call(print4, "id"));
87094
87094
  if (n2.name) {
87095
- parts.push(" as ", path22.call(print5, "name"));
87095
+ parts.push(" as ", path22.call(print4, "name"));
87096
87096
  }
87097
87097
  }
87098
87098
  return (0, lines_1.concat)(parts);
@@ -87101,40 +87101,40 @@ var require_printer2 = __commonJS2({
87101
87101
  case "ImportNamespaceSpecifier":
87102
87102
  parts.push("* as ");
87103
87103
  if (n2.local) {
87104
- parts.push(path22.call(print5, "local"));
87104
+ parts.push(path22.call(print4, "local"));
87105
87105
  } else if (n2.id) {
87106
- parts.push(path22.call(print5, "id"));
87106
+ parts.push(path22.call(print4, "id"));
87107
87107
  }
87108
87108
  return (0, lines_1.concat)(parts);
87109
87109
  case "ImportDefaultSpecifier":
87110
87110
  if (n2.local) {
87111
- return path22.call(print5, "local");
87111
+ return path22.call(print4, "local");
87112
87112
  }
87113
- return path22.call(print5, "id");
87113
+ return path22.call(print4, "id");
87114
87114
  case "TSExportAssignment":
87115
- return (0, lines_1.concat)(["export = ", path22.call(print5, "expression")]);
87115
+ return (0, lines_1.concat)(["export = ", path22.call(print4, "expression")]);
87116
87116
  case "ExportDeclaration":
87117
87117
  case "ExportDefaultDeclaration":
87118
87118
  case "ExportNamedDeclaration":
87119
- return printExportDeclaration(path22, options, print5);
87119
+ return printExportDeclaration(path22, options, print4);
87120
87120
  case "ExportAllDeclaration":
87121
87121
  parts.push("export *");
87122
87122
  if (n2.exported) {
87123
- parts.push(" as ", path22.call(print5, "exported"));
87123
+ parts.push(" as ", path22.call(print4, "exported"));
87124
87124
  }
87125
- parts.push(" from ", path22.call(print5, "source"), ";");
87125
+ parts.push(" from ", path22.call(print4, "source"), ";");
87126
87126
  return (0, lines_1.concat)(parts);
87127
87127
  case "TSNamespaceExportDeclaration":
87128
- parts.push("export as namespace ", path22.call(print5, "id"));
87128
+ parts.push("export as namespace ", path22.call(print4, "id"));
87129
87129
  return maybeAddSemicolon((0, lines_1.concat)(parts));
87130
87130
  case "ExportNamespaceSpecifier":
87131
- return (0, lines_1.concat)(["* as ", path22.call(print5, "exported")]);
87131
+ return (0, lines_1.concat)(["* as ", path22.call(print4, "exported")]);
87132
87132
  case "ExportDefaultSpecifier":
87133
- return path22.call(print5, "exported");
87133
+ return path22.call(print4, "exported");
87134
87134
  case "Import":
87135
87135
  return (0, lines_1.fromString)("import", options);
87136
87136
  case "ImportExpression":
87137
- return (0, lines_1.concat)(["import(", path22.call(print5, "source"), ")"]);
87137
+ return (0, lines_1.concat)(["import(", path22.call(print4, "source"), ")"]);
87138
87138
  case "ImportDeclaration": {
87139
87139
  parts.push("import ");
87140
87140
  if (n2.importKind && n2.importKind !== "value") {
@@ -87146,9 +87146,9 @@ var require_printer2 = __commonJS2({
87146
87146
  path22.each(function(specifierPath) {
87147
87147
  var spec = specifierPath.getValue();
87148
87148
  if (spec.type === "ImportSpecifier") {
87149
- bracedSpecifiers_1.push(print5(specifierPath));
87149
+ bracedSpecifiers_1.push(print4(specifierPath));
87150
87150
  } else if (spec.type === "ImportDefaultSpecifier" || spec.type === "ImportNamespaceSpecifier") {
87151
- unbracedSpecifiers_1.push(print5(specifierPath));
87151
+ unbracedSpecifiers_1.push(print4(specifierPath));
87152
87152
  }
87153
87153
  }, "specifiers");
87154
87154
  unbracedSpecifiers_1.forEach(function(lines2, i22) {
@@ -87178,16 +87178,16 @@ var require_printer2 = __commonJS2({
87178
87178
  }
87179
87179
  parts.push(" from ");
87180
87180
  }
87181
- parts.push(path22.call(print5, "source"), maybePrintImportAssertions(path22, options, print5), ";");
87181
+ parts.push(path22.call(print4, "source"), maybePrintImportAssertions(path22, options, print4), ";");
87182
87182
  return (0, lines_1.concat)(parts);
87183
87183
  }
87184
87184
  case "ImportAttribute":
87185
- return (0, lines_1.concat)([path22.call(print5, "key"), ": ", path22.call(print5, "value")]);
87185
+ return (0, lines_1.concat)([path22.call(print4, "key"), ": ", path22.call(print4, "value")]);
87186
87186
  case "StaticBlock":
87187
87187
  parts.push("static ");
87188
87188
  case "BlockStatement": {
87189
87189
  var naked_1 = path22.call(function(bodyPath) {
87190
- return printStatementSequence(bodyPath, options, print5);
87190
+ return printStatementSequence(bodyPath, options, print4);
87191
87191
  }, "body");
87192
87192
  if (naked_1.isEmpty()) {
87193
87193
  if (!n2.directives || n2.directives.length === 0) {
@@ -87198,7 +87198,7 @@ var require_printer2 = __commonJS2({
87198
87198
  parts.push("{\n");
87199
87199
  if (n2.directives) {
87200
87200
  path22.each(function(childPath) {
87201
- parts.push(maybeAddSemicolon(print5(childPath).indent(options.tabWidth)), n2.directives.length > 1 || !naked_1.isEmpty() ? "\n" : "");
87201
+ parts.push(maybeAddSemicolon(print4(childPath).indent(options.tabWidth)), n2.directives.length > 1 || !naked_1.isEmpty() ? "\n" : "");
87202
87202
  }, "directives");
87203
87203
  }
87204
87204
  parts.push(naked_1.indent(options.tabWidth));
@@ -87208,7 +87208,7 @@ var require_printer2 = __commonJS2({
87208
87208
  case "ReturnStatement": {
87209
87209
  parts.push("return");
87210
87210
  if (n2.argument) {
87211
- var argLines = path22.call(print5, "argument");
87211
+ var argLines = path22.call(print4, "argument");
87212
87212
  if (argLines.startsWithComment() || argLines.length > 1 && namedTypes.JSXElement && namedTypes.JSXElement.check(n2.argument)) {
87213
87213
  parts.push(" (\n", argLines.indent(options.tabWidth), "\n)");
87214
87214
  } else {
@@ -87220,17 +87220,17 @@ var require_printer2 = __commonJS2({
87220
87220
  }
87221
87221
  case "CallExpression":
87222
87222
  case "OptionalCallExpression":
87223
- parts.push(path22.call(print5, "callee"));
87223
+ parts.push(path22.call(print4, "callee"));
87224
87224
  if (n2.typeParameters) {
87225
- parts.push(path22.call(print5, "typeParameters"));
87225
+ parts.push(path22.call(print4, "typeParameters"));
87226
87226
  }
87227
87227
  if (n2.typeArguments) {
87228
- parts.push(path22.call(print5, "typeArguments"));
87228
+ parts.push(path22.call(print4, "typeArguments"));
87229
87229
  }
87230
87230
  if (types42.getFieldValue(n2, "optional")) {
87231
87231
  parts.push("?.");
87232
87232
  }
87233
- parts.push(printArgumentsList(path22, options, print5));
87233
+ parts.push(printArgumentsList(path22, options, print4));
87234
87234
  return (0, lines_1.concat)(parts);
87235
87235
  case "RecordExpression":
87236
87236
  parts.push("#");
@@ -87260,7 +87260,7 @@ var require_printer2 = __commonJS2({
87260
87260
  var i_1 = 0;
87261
87261
  fields.forEach(function(field) {
87262
87262
  path22.each(function(childPath) {
87263
- var lines2 = print5(childPath);
87263
+ var lines2 = print4(childPath);
87264
87264
  if (!oneLine_1) {
87265
87265
  lines2 = lines2.indent(options.tabWidth);
87266
87266
  }
@@ -87297,32 +87297,32 @@ var require_printer2 = __commonJS2({
87297
87297
  parts[parts.length - 1] = " " + rightBrace;
87298
87298
  }
87299
87299
  if (n2.typeAnnotation) {
87300
- parts.push(path22.call(print5, "typeAnnotation"));
87300
+ parts.push(path22.call(print4, "typeAnnotation"));
87301
87301
  }
87302
87302
  return (0, lines_1.concat)(parts);
87303
87303
  }
87304
87304
  case "PropertyPattern":
87305
87305
  return (0, lines_1.concat)([
87306
- path22.call(print5, "key"),
87306
+ path22.call(print4, "key"),
87307
87307
  ": ",
87308
- path22.call(print5, "pattern")
87308
+ path22.call(print4, "pattern")
87309
87309
  ]);
87310
87310
  case "ObjectProperty":
87311
87311
  case "Property": {
87312
87312
  if (n2.method || n2.kind === "get" || n2.kind === "set") {
87313
- return printMethod(path22, options, print5);
87313
+ return printMethod(path22, options, print4);
87314
87314
  }
87315
87315
  if (n2.shorthand && n2.value.type === "AssignmentPattern") {
87316
- return path22.call(print5, "value");
87316
+ return path22.call(print4, "value");
87317
87317
  }
87318
- var key = path22.call(print5, "key");
87318
+ var key = path22.call(print4, "key");
87319
87319
  if (n2.computed) {
87320
87320
  parts.push("[", key, "]");
87321
87321
  } else {
87322
87322
  parts.push(key);
87323
87323
  }
87324
87324
  if (!n2.shorthand || n2.key.name !== n2.value.name) {
87325
- parts.push(": ", path22.call(print5, "value"));
87325
+ parts.push(": ", path22.call(print4, "value"));
87326
87326
  }
87327
87327
  return (0, lines_1.concat)(parts);
87328
87328
  }
@@ -87330,18 +87330,18 @@ var require_printer2 = __commonJS2({
87330
87330
  case "ObjectMethod":
87331
87331
  case "ClassPrivateMethod":
87332
87332
  case "TSDeclareMethod":
87333
- return printMethod(path22, options, print5);
87333
+ return printMethod(path22, options, print4);
87334
87334
  case "PrivateName":
87335
- return (0, lines_1.concat)(["#", path22.call(print5, "id")]);
87335
+ return (0, lines_1.concat)(["#", path22.call(print4, "id")]);
87336
87336
  case "Decorator":
87337
- return (0, lines_1.concat)(["@", path22.call(print5, "expression")]);
87337
+ return (0, lines_1.concat)(["@", path22.call(print4, "expression")]);
87338
87338
  case "TupleExpression":
87339
87339
  parts.push("#");
87340
87340
  case "ArrayExpression":
87341
87341
  case "ArrayPattern": {
87342
87342
  var elems = n2.elements;
87343
87343
  var len_2 = elems.length;
87344
- var printed_1 = path22.map(print5, "elements");
87344
+ var printed_1 = path22.map(print4, "elements");
87345
87345
  var joined = (0, lines_1.fromString)(", ").join(printed_1);
87346
87346
  var oneLine_2 = joined.getLineLength(1) <= options.wrapColumn;
87347
87347
  if (oneLine_2) {
@@ -87379,12 +87379,12 @@ var require_printer2 = __commonJS2({
87379
87379
  parts.push("]");
87380
87380
  }
87381
87381
  if (n2.typeAnnotation) {
87382
- parts.push(path22.call(print5, "typeAnnotation"));
87382
+ parts.push(path22.call(print4, "typeAnnotation"));
87383
87383
  }
87384
87384
  return (0, lines_1.concat)(parts);
87385
87385
  }
87386
87386
  case "SequenceExpression":
87387
- return (0, lines_1.fromString)(", ").join(path22.map(print5, "expressions"));
87387
+ return (0, lines_1.fromString)(", ").join(path22.map(print4, "expressions"));
87388
87388
  case "ThisExpression":
87389
87389
  return (0, lines_1.fromString)("this");
87390
87390
  case "Super":
@@ -87405,7 +87405,7 @@ var require_printer2 = __commonJS2({
87405
87405
  case "Literal":
87406
87406
  return (0, lines_1.fromString)(getPossibleRaw(n2) || (typeof n2.value === "string" ? nodeStr(n2.value, options) : n2.value), options);
87407
87407
  case "Directive":
87408
- return path22.call(print5, "value");
87408
+ return path22.call(print4, "value");
87409
87409
  case "DirectiveLiteral":
87410
87410
  return (0, lines_1.fromString)(getPossibleRaw(n2) || nodeStr(n2.value, options), options);
87411
87411
  case "InterpreterDirective":
@@ -87419,32 +87419,32 @@ var require_printer2 = __commonJS2({
87419
87419
  parts.push(n2.operator);
87420
87420
  if (/[a-z]$/.test(n2.operator))
87421
87421
  parts.push(" ");
87422
- parts.push(path22.call(print5, "argument"));
87422
+ parts.push(path22.call(print4, "argument"));
87423
87423
  return (0, lines_1.concat)(parts);
87424
87424
  case "UpdateExpression":
87425
- parts.push(path22.call(print5, "argument"), n2.operator);
87425
+ parts.push(path22.call(print4, "argument"), n2.operator);
87426
87426
  if (n2.prefix)
87427
87427
  parts.reverse();
87428
87428
  return (0, lines_1.concat)(parts);
87429
87429
  case "ConditionalExpression":
87430
87430
  return (0, lines_1.concat)([
87431
- path22.call(print5, "test"),
87431
+ path22.call(print4, "test"),
87432
87432
  " ? ",
87433
- path22.call(print5, "consequent"),
87433
+ path22.call(print4, "consequent"),
87434
87434
  " : ",
87435
- path22.call(print5, "alternate")
87435
+ path22.call(print4, "alternate")
87436
87436
  ]);
87437
87437
  case "NewExpression": {
87438
- parts.push("new ", path22.call(print5, "callee"));
87438
+ parts.push("new ", path22.call(print4, "callee"));
87439
87439
  if (n2.typeParameters) {
87440
- parts.push(path22.call(print5, "typeParameters"));
87440
+ parts.push(path22.call(print4, "typeParameters"));
87441
87441
  }
87442
87442
  if (n2.typeArguments) {
87443
- parts.push(path22.call(print5, "typeArguments"));
87443
+ parts.push(path22.call(print4, "typeArguments"));
87444
87444
  }
87445
87445
  var args = n2.arguments;
87446
87446
  if (args) {
87447
- parts.push(printArgumentsList(path22, options, print5));
87447
+ parts.push(printArgumentsList(path22, options, print4));
87448
87448
  }
87449
87449
  return (0, lines_1.concat)(parts);
87450
87450
  }
@@ -87455,7 +87455,7 @@ var require_printer2 = __commonJS2({
87455
87455
  parts.push(n2.kind, " ");
87456
87456
  var maxLen_1 = 0;
87457
87457
  var printed = path22.map(function(childPath) {
87458
- var lines2 = print5(childPath);
87458
+ var lines2 = print4(childPath);
87459
87459
  maxLen_1 = Math.max(lines2.length, maxLen_1);
87460
87460
  return lines2;
87461
87461
  }, "declarations");
@@ -87474,30 +87474,30 @@ var require_printer2 = __commonJS2({
87474
87474
  }
87475
87475
  case "VariableDeclarator":
87476
87476
  return n2.init ? (0, lines_1.fromString)(" = ").join([
87477
- path22.call(print5, "id"),
87478
- path22.call(print5, "init")
87479
- ]) : path22.call(print5, "id");
87477
+ path22.call(print4, "id"),
87478
+ path22.call(print4, "init")
87479
+ ]) : path22.call(print4, "id");
87480
87480
  case "WithStatement":
87481
87481
  return (0, lines_1.concat)([
87482
87482
  "with (",
87483
- path22.call(print5, "object"),
87483
+ path22.call(print4, "object"),
87484
87484
  ") ",
87485
- path22.call(print5, "body")
87485
+ path22.call(print4, "body")
87486
87486
  ]);
87487
87487
  case "IfStatement": {
87488
- var con = adjustClause(path22.call(print5, "consequent"), options);
87489
- parts.push("if (", path22.call(print5, "test"), ")", con);
87488
+ var con = adjustClause(path22.call(print4, "consequent"), options);
87489
+ parts.push("if (", path22.call(print4, "test"), ")", con);
87490
87490
  if (n2.alternate)
87491
- parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path22.call(print5, "alternate"), options));
87491
+ parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path22.call(print4, "alternate"), options));
87492
87492
  return (0, lines_1.concat)(parts);
87493
87493
  }
87494
87494
  case "ForStatement": {
87495
- var init = path22.call(print5, "init");
87495
+ var init = path22.call(print4, "init");
87496
87496
  var sep22 = init.length > 1 ? ";\n" : "; ";
87497
87497
  var forParen = "for (";
87498
- var indented = (0, lines_1.fromString)(sep22).join([init, path22.call(print5, "test"), path22.call(print5, "update")]).indentTail(forParen.length);
87498
+ var indented = (0, lines_1.fromString)(sep22).join([init, path22.call(print4, "test"), path22.call(print4, "update")]).indentTail(forParen.length);
87499
87499
  var head = (0, lines_1.concat)([forParen, indented, ")"]);
87500
- var clause = adjustClause(path22.call(print5, "body"), options);
87500
+ var clause = adjustClause(path22.call(print4, "body"), options);
87501
87501
  parts.push(head);
87502
87502
  if (head.length > 1) {
87503
87503
  parts.push("\n");
@@ -87509,18 +87509,18 @@ var require_printer2 = __commonJS2({
87509
87509
  case "WhileStatement":
87510
87510
  return (0, lines_1.concat)([
87511
87511
  "while (",
87512
- path22.call(print5, "test"),
87512
+ path22.call(print4, "test"),
87513
87513
  ")",
87514
- adjustClause(path22.call(print5, "body"), options)
87514
+ adjustClause(path22.call(print4, "body"), options)
87515
87515
  ]);
87516
87516
  case "ForInStatement":
87517
87517
  return (0, lines_1.concat)([
87518
87518
  n2.each ? "for each (" : "for (",
87519
- path22.call(print5, "left"),
87519
+ path22.call(print4, "left"),
87520
87520
  " in ",
87521
- path22.call(print5, "right"),
87521
+ path22.call(print4, "right"),
87522
87522
  ")",
87523
- adjustClause(path22.call(print5, "body"), options)
87523
+ adjustClause(path22.call(print4, "body"), options)
87524
87524
  ]);
87525
87525
  case "ForOfStatement":
87526
87526
  case "ForAwaitStatement":
@@ -87528,122 +87528,122 @@ var require_printer2 = __commonJS2({
87528
87528
  if (n2.await || n2.type === "ForAwaitStatement") {
87529
87529
  parts.push("await ");
87530
87530
  }
87531
- parts.push("(", path22.call(print5, "left"), " of ", path22.call(print5, "right"), ")", adjustClause(path22.call(print5, "body"), options));
87531
+ parts.push("(", path22.call(print4, "left"), " of ", path22.call(print4, "right"), ")", adjustClause(path22.call(print4, "body"), options));
87532
87532
  return (0, lines_1.concat)(parts);
87533
87533
  case "DoWhileStatement": {
87534
87534
  var doBody = (0, lines_1.concat)([
87535
87535
  "do",
87536
- adjustClause(path22.call(print5, "body"), options)
87536
+ adjustClause(path22.call(print4, "body"), options)
87537
87537
  ]);
87538
87538
  parts.push(doBody);
87539
87539
  if (endsWithBrace(doBody))
87540
87540
  parts.push(" while");
87541
87541
  else
87542
87542
  parts.push("\nwhile");
87543
- parts.push(" (", path22.call(print5, "test"), ");");
87543
+ parts.push(" (", path22.call(print4, "test"), ");");
87544
87544
  return (0, lines_1.concat)(parts);
87545
87545
  }
87546
87546
  case "DoExpression": {
87547
87547
  var statements = path22.call(function(bodyPath) {
87548
- return printStatementSequence(bodyPath, options, print5);
87548
+ return printStatementSequence(bodyPath, options, print4);
87549
87549
  }, "body");
87550
87550
  return (0, lines_1.concat)(["do {\n", statements.indent(options.tabWidth), "\n}"]);
87551
87551
  }
87552
87552
  case "BreakStatement":
87553
87553
  parts.push("break");
87554
87554
  if (n2.label)
87555
- parts.push(" ", path22.call(print5, "label"));
87555
+ parts.push(" ", path22.call(print4, "label"));
87556
87556
  parts.push(";");
87557
87557
  return (0, lines_1.concat)(parts);
87558
87558
  case "ContinueStatement":
87559
87559
  parts.push("continue");
87560
87560
  if (n2.label)
87561
- parts.push(" ", path22.call(print5, "label"));
87561
+ parts.push(" ", path22.call(print4, "label"));
87562
87562
  parts.push(";");
87563
87563
  return (0, lines_1.concat)(parts);
87564
87564
  case "LabeledStatement":
87565
87565
  return (0, lines_1.concat)([
87566
- path22.call(print5, "label"),
87566
+ path22.call(print4, "label"),
87567
87567
  ":\n",
87568
- path22.call(print5, "body")
87568
+ path22.call(print4, "body")
87569
87569
  ]);
87570
87570
  case "TryStatement":
87571
- parts.push("try ", path22.call(print5, "block"));
87571
+ parts.push("try ", path22.call(print4, "block"));
87572
87572
  if (n2.handler) {
87573
- parts.push(" ", path22.call(print5, "handler"));
87573
+ parts.push(" ", path22.call(print4, "handler"));
87574
87574
  } else if (n2.handlers) {
87575
87575
  path22.each(function(handlerPath) {
87576
- parts.push(" ", print5(handlerPath));
87576
+ parts.push(" ", print4(handlerPath));
87577
87577
  }, "handlers");
87578
87578
  }
87579
87579
  if (n2.finalizer) {
87580
- parts.push(" finally ", path22.call(print5, "finalizer"));
87580
+ parts.push(" finally ", path22.call(print4, "finalizer"));
87581
87581
  }
87582
87582
  return (0, lines_1.concat)(parts);
87583
87583
  case "CatchClause":
87584
87584
  parts.push("catch ");
87585
87585
  if (n2.param) {
87586
- parts.push("(", path22.call(print5, "param"));
87586
+ parts.push("(", path22.call(print4, "param"));
87587
87587
  }
87588
87588
  if (n2.guard) {
87589
- parts.push(" if ", path22.call(print5, "guard"));
87589
+ parts.push(" if ", path22.call(print4, "guard"));
87590
87590
  }
87591
87591
  if (n2.param) {
87592
87592
  parts.push(") ");
87593
87593
  }
87594
- parts.push(path22.call(print5, "body"));
87594
+ parts.push(path22.call(print4, "body"));
87595
87595
  return (0, lines_1.concat)(parts);
87596
87596
  case "ThrowStatement":
87597
- return (0, lines_1.concat)(["throw ", path22.call(print5, "argument"), ";"]);
87597
+ return (0, lines_1.concat)(["throw ", path22.call(print4, "argument"), ";"]);
87598
87598
  case "SwitchStatement":
87599
87599
  return (0, lines_1.concat)([
87600
87600
  "switch (",
87601
- path22.call(print5, "discriminant"),
87601
+ path22.call(print4, "discriminant"),
87602
87602
  ") {\n",
87603
- (0, lines_1.fromString)("\n").join(path22.map(print5, "cases")),
87603
+ (0, lines_1.fromString)("\n").join(path22.map(print4, "cases")),
87604
87604
  "\n}"
87605
87605
  ]);
87606
87606
  case "SwitchCase":
87607
87607
  if (n2.test)
87608
- parts.push("case ", path22.call(print5, "test"), ":");
87608
+ parts.push("case ", path22.call(print4, "test"), ":");
87609
87609
  else
87610
87610
  parts.push("default:");
87611
87611
  if (n2.consequent.length > 0) {
87612
87612
  parts.push("\n", path22.call(function(consequentPath) {
87613
- return printStatementSequence(consequentPath, options, print5);
87613
+ return printStatementSequence(consequentPath, options, print4);
87614
87614
  }, "consequent").indent(options.tabWidth));
87615
87615
  }
87616
87616
  return (0, lines_1.concat)(parts);
87617
87617
  case "DebuggerStatement":
87618
87618
  return (0, lines_1.fromString)("debugger;");
87619
87619
  case "JSXAttribute":
87620
- parts.push(path22.call(print5, "name"));
87620
+ parts.push(path22.call(print4, "name"));
87621
87621
  if (n2.value)
87622
- parts.push("=", path22.call(print5, "value"));
87622
+ parts.push("=", path22.call(print4, "value"));
87623
87623
  return (0, lines_1.concat)(parts);
87624
87624
  case "JSXIdentifier":
87625
87625
  return (0, lines_1.fromString)(n2.name, options);
87626
87626
  case "JSXNamespacedName":
87627
87627
  return (0, lines_1.fromString)(":").join([
87628
- path22.call(print5, "namespace"),
87629
- path22.call(print5, "name")
87628
+ path22.call(print4, "namespace"),
87629
+ path22.call(print4, "name")
87630
87630
  ]);
87631
87631
  case "JSXMemberExpression":
87632
87632
  return (0, lines_1.fromString)(".").join([
87633
- path22.call(print5, "object"),
87634
- path22.call(print5, "property")
87633
+ path22.call(print4, "object"),
87634
+ path22.call(print4, "property")
87635
87635
  ]);
87636
87636
  case "JSXSpreadAttribute":
87637
- return (0, lines_1.concat)(["{...", path22.call(print5, "argument"), "}"]);
87637
+ return (0, lines_1.concat)(["{...", path22.call(print4, "argument"), "}"]);
87638
87638
  case "JSXSpreadChild":
87639
- return (0, lines_1.concat)(["{...", path22.call(print5, "expression"), "}"]);
87639
+ return (0, lines_1.concat)(["{...", path22.call(print4, "expression"), "}"]);
87640
87640
  case "JSXExpressionContainer":
87641
- return (0, lines_1.concat)(["{", path22.call(print5, "expression"), "}"]);
87641
+ return (0, lines_1.concat)(["{", path22.call(print4, "expression"), "}"]);
87642
87642
  case "JSXElement":
87643
87643
  case "JSXFragment": {
87644
87644
  var openingPropName = "opening" + (n2.type === "JSXElement" ? "Element" : "Fragment");
87645
87645
  var closingPropName = "closing" + (n2.type === "JSXElement" ? "Element" : "Fragment");
87646
- var openingLines = path22.call(print5, openingPropName);
87646
+ var openingLines = path22.call(print4, openingPropName);
87647
87647
  if (n2[openingPropName].selfClosing) {
87648
87648
  assert_1.default.ok(!n2[closingPropName], "unexpected " + closingPropName + " element in self-closing " + n2.type);
87649
87649
  return openingLines;
@@ -87657,16 +87657,16 @@ var require_printer2 = __commonJS2({
87657
87657
  return "\n";
87658
87658
  }
87659
87659
  }
87660
- return print5(childPath);
87660
+ return print4(childPath);
87661
87661
  }, "children")).indentTail(options.tabWidth);
87662
- var closingLines = path22.call(print5, closingPropName);
87662
+ var closingLines = path22.call(print4, closingPropName);
87663
87663
  return (0, lines_1.concat)([openingLines, childLines, closingLines]);
87664
87664
  }
87665
87665
  case "JSXOpeningElement": {
87666
- parts.push("<", path22.call(print5, "name"));
87666
+ parts.push("<", path22.call(print4, "name"));
87667
87667
  var attrParts_1 = [];
87668
87668
  path22.each(function(attrPath) {
87669
- attrParts_1.push(" ", print5(attrPath));
87669
+ attrParts_1.push(" ", print4(attrPath));
87670
87670
  }, "attributes");
87671
87671
  var attrLines = (0, lines_1.concat)(attrParts_1);
87672
87672
  var needLineWrap = attrLines.length > 1 || attrLines.getLineLength(1) > options.wrapColumn;
@@ -87683,7 +87683,7 @@ var require_printer2 = __commonJS2({
87683
87683
  return (0, lines_1.concat)(parts);
87684
87684
  }
87685
87685
  case "JSXClosingElement":
87686
- return (0, lines_1.concat)(["</", path22.call(print5, "name"), ">"]);
87686
+ return (0, lines_1.concat)(["</", path22.call(print4, "name"), ">"]);
87687
87687
  case "JSXOpeningFragment":
87688
87688
  return (0, lines_1.fromString)("<>");
87689
87689
  case "JSXClosingFragment":
@@ -87694,9 +87694,9 @@ var require_printer2 = __commonJS2({
87694
87694
  return (0, lines_1.fromString)("");
87695
87695
  case "TypeAnnotatedIdentifier":
87696
87696
  return (0, lines_1.concat)([
87697
- path22.call(print5, "annotation"),
87697
+ path22.call(print4, "annotation"),
87698
87698
  " ",
87699
- path22.call(print5, "identifier")
87699
+ path22.call(print4, "identifier")
87700
87700
  ]);
87701
87701
  case "ClassBody":
87702
87702
  if (n2.body.length === 0) {
@@ -87705,12 +87705,12 @@ var require_printer2 = __commonJS2({
87705
87705
  return (0, lines_1.concat)([
87706
87706
  "{\n",
87707
87707
  path22.call(function(bodyPath) {
87708
- return printStatementSequence(bodyPath, options, print5);
87708
+ return printStatementSequence(bodyPath, options, print4);
87709
87709
  }, "body").indent(options.tabWidth),
87710
87710
  "\n}"
87711
87711
  ]);
87712
87712
  case "ClassPropertyDefinition":
87713
- parts.push("static ", path22.call(print5, "definition"));
87713
+ parts.push("static ", path22.call(print4, "definition"));
87714
87714
  if (!namedTypes.MethodDefinition.check(n2.definition))
87715
87715
  parts.push(";");
87716
87716
  return (0, lines_1.concat)(parts);
@@ -87731,12 +87731,12 @@ var require_printer2 = __commonJS2({
87731
87731
  if (n2.readonly) {
87732
87732
  parts.push("readonly ");
87733
87733
  }
87734
- var key = path22.call(print5, "key");
87734
+ var key = path22.call(print4, "key");
87735
87735
  if (n2.computed) {
87736
87736
  key = (0, lines_1.concat)(["[", key, "]"]);
87737
87737
  }
87738
87738
  if (n2.variance) {
87739
- key = (0, lines_1.concat)([printVariance(path22, print5), key]);
87739
+ key = (0, lines_1.concat)([printVariance(path22, print4), key]);
87740
87740
  }
87741
87741
  parts.push(key);
87742
87742
  if (n2.optional) {
@@ -87746,10 +87746,10 @@ var require_printer2 = __commonJS2({
87746
87746
  parts.push("!");
87747
87747
  }
87748
87748
  if (n2.typeAnnotation) {
87749
- parts.push(path22.call(print5, "typeAnnotation"));
87749
+ parts.push(path22.call(print4, "typeAnnotation"));
87750
87750
  }
87751
87751
  if (n2.value) {
87752
- parts.push(" = ", path22.call(print5, "value"));
87752
+ parts.push(" = ", path22.call(print4, "value"));
87753
87753
  }
87754
87754
  parts.push(";");
87755
87755
  return (0, lines_1.concat)(parts);
@@ -87758,21 +87758,21 @@ var require_printer2 = __commonJS2({
87758
87758
  if (n2.static) {
87759
87759
  parts.push("static ");
87760
87760
  }
87761
- parts.push(path22.call(print5, "key"));
87761
+ parts.push(path22.call(print4, "key"));
87762
87762
  if (n2.typeAnnotation) {
87763
- parts.push(path22.call(print5, "typeAnnotation"));
87763
+ parts.push(path22.call(print4, "typeAnnotation"));
87764
87764
  }
87765
87765
  if (n2.value) {
87766
- parts.push(" = ", path22.call(print5, "value"));
87766
+ parts.push(" = ", path22.call(print4, "value"));
87767
87767
  }
87768
87768
  parts.push(";");
87769
87769
  return (0, lines_1.concat)(parts);
87770
87770
  case "ClassAccessorProperty": {
87771
87771
  parts.push.apply(parts, tslib_1.__spreadArray(tslib_1.__spreadArray([], printClassMemberModifiers(n2), false), ["accessor "], false));
87772
87772
  if (n2.computed) {
87773
- parts.push("[", path22.call(print5, "key"), "]");
87773
+ parts.push("[", path22.call(print4, "key"), "]");
87774
87774
  } else {
87775
- parts.push(path22.call(print5, "key"));
87775
+ parts.push(path22.call(print4, "key"));
87776
87776
  }
87777
87777
  if (n2.optional) {
87778
87778
  parts.push("?");
@@ -87781,10 +87781,10 @@ var require_printer2 = __commonJS2({
87781
87781
  parts.push("!");
87782
87782
  }
87783
87783
  if (n2.typeAnnotation) {
87784
- parts.push(path22.call(print5, "typeAnnotation"));
87784
+ parts.push(path22.call(print4, "typeAnnotation"));
87785
87785
  }
87786
87786
  if (n2.value) {
87787
- parts.push(" = ", path22.call(print5, "value"));
87787
+ parts.push(" = ", path22.call(print4, "value"));
87788
87788
  }
87789
87789
  parts.push(";");
87790
87790
  return (0, lines_1.concat)(parts);
@@ -87800,21 +87800,21 @@ var require_printer2 = __commonJS2({
87800
87800
  }
87801
87801
  parts.push("class");
87802
87802
  if (n2.id) {
87803
- parts.push(" ", path22.call(print5, "id"));
87803
+ parts.push(" ", path22.call(print4, "id"));
87804
87804
  }
87805
87805
  if (n2.typeParameters) {
87806
- parts.push(path22.call(print5, "typeParameters"));
87806
+ parts.push(path22.call(print4, "typeParameters"));
87807
87807
  }
87808
87808
  if (n2.superClass) {
87809
- parts.push(" extends ", path22.call(print5, "superClass"), path22.call(print5, "superTypeParameters"));
87809
+ parts.push(" extends ", path22.call(print4, "superClass"), path22.call(print4, "superTypeParameters"));
87810
87810
  }
87811
87811
  if (n2.extends && n2.extends.length > 0) {
87812
- parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print5, "extends")));
87812
+ parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print4, "extends")));
87813
87813
  }
87814
87814
  if (n2["implements"] && n2["implements"].length > 0) {
87815
- parts.push(" implements ", (0, lines_1.fromString)(", ").join(path22.map(print5, "implements")));
87815
+ parts.push(" implements ", (0, lines_1.fromString)(", ").join(path22.map(print4, "implements")));
87816
87816
  }
87817
- parts.push(" ", path22.call(print5, "body"));
87817
+ parts.push(" ", path22.call(print4, "body"));
87818
87818
  if (n2.type === "DeclareClass") {
87819
87819
  return printFlowDeclaration(path22, parts);
87820
87820
  } else {
@@ -87823,11 +87823,11 @@ var require_printer2 = __commonJS2({
87823
87823
  case "TemplateElement":
87824
87824
  return (0, lines_1.fromString)(n2.value.raw, options).lockIndentTail();
87825
87825
  case "TemplateLiteral": {
87826
- var expressions_1 = path22.map(print5, "expressions");
87826
+ var expressions_1 = path22.map(print4, "expressions");
87827
87827
  parts.push("`");
87828
87828
  path22.each(function(childPath) {
87829
87829
  var i22 = childPath.getName();
87830
- parts.push(print5(childPath));
87830
+ parts.push(print4(childPath));
87831
87831
  if (i22 < expressions_1.length) {
87832
87832
  parts.push("${", expressions_1[i22], "}");
87833
87833
  }
@@ -87836,7 +87836,7 @@ var require_printer2 = __commonJS2({
87836
87836
  return (0, lines_1.concat)(parts).lockIndentTail();
87837
87837
  }
87838
87838
  case "TaggedTemplateExpression":
87839
- return (0, lines_1.concat)([path22.call(print5, "tag"), path22.call(print5, "quasi")]);
87839
+ return (0, lines_1.concat)([path22.call(print4, "tag"), path22.call(print4, "quasi")]);
87840
87840
  case "Node":
87841
87841
  case "Printable":
87842
87842
  case "SourceLocation":
@@ -87870,7 +87870,7 @@ var require_printer2 = __commonJS2({
87870
87870
  if (n2.typeAnnotation.type !== "FunctionTypeAnnotation") {
87871
87871
  parts.push(": ");
87872
87872
  }
87873
- parts.push(path22.call(print5, "typeAnnotation"));
87873
+ parts.push(path22.call(print4, "typeAnnotation"));
87874
87874
  return (0, lines_1.concat)(parts);
87875
87875
  }
87876
87876
  return (0, lines_1.fromString)("");
@@ -87884,9 +87884,9 @@ var require_printer2 = __commonJS2({
87884
87884
  case "MixedTypeAnnotation":
87885
87885
  return (0, lines_1.fromString)("mixed", options);
87886
87886
  case "ArrayTypeAnnotation":
87887
- return (0, lines_1.concat)([path22.call(print5, "elementType"), "[]"]);
87887
+ return (0, lines_1.concat)([path22.call(print4, "elementType"), "[]"]);
87888
87888
  case "TupleTypeAnnotation": {
87889
- var printed_2 = path22.map(print5, "types");
87889
+ var printed_2 = path22.map(print4, "types");
87890
87890
  var joined = (0, lines_1.fromString)(", ").join(printed_2);
87891
87891
  var oneLine_3 = joined.getLineLength(1) <= options.wrapColumn;
87892
87892
  if (oneLine_3) {
@@ -87933,38 +87933,38 @@ var require_printer2 = __commonJS2({
87933
87933
  case "InterfaceTypeAnnotation":
87934
87934
  parts.push("interface");
87935
87935
  if (n2.extends && n2.extends.length > 0) {
87936
- parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print5, "extends")));
87936
+ parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print4, "extends")));
87937
87937
  }
87938
- parts.push(" ", path22.call(print5, "body"));
87938
+ parts.push(" ", path22.call(print4, "body"));
87939
87939
  return (0, lines_1.concat)(parts);
87940
87940
  case "DeclareFunction":
87941
87941
  return printFlowDeclaration(path22, [
87942
87942
  "function ",
87943
- path22.call(print5, "id"),
87943
+ path22.call(print4, "id"),
87944
87944
  ";"
87945
87945
  ]);
87946
87946
  case "DeclareModule":
87947
87947
  return printFlowDeclaration(path22, [
87948
87948
  "module ",
87949
- path22.call(print5, "id"),
87949
+ path22.call(print4, "id"),
87950
87950
  " ",
87951
- path22.call(print5, "body")
87951
+ path22.call(print4, "body")
87952
87952
  ]);
87953
87953
  case "DeclareModuleExports":
87954
87954
  return printFlowDeclaration(path22, [
87955
87955
  "module.exports",
87956
- path22.call(print5, "typeAnnotation")
87956
+ path22.call(print4, "typeAnnotation")
87957
87957
  ]);
87958
87958
  case "DeclareVariable":
87959
- return printFlowDeclaration(path22, ["var ", path22.call(print5, "id"), ";"]);
87959
+ return printFlowDeclaration(path22, ["var ", path22.call(print4, "id"), ";"]);
87960
87960
  case "DeclareExportDeclaration":
87961
87961
  case "DeclareExportAllDeclaration":
87962
- return (0, lines_1.concat)(["declare ", printExportDeclaration(path22, options, print5)]);
87962
+ return (0, lines_1.concat)(["declare ", printExportDeclaration(path22, options, print4)]);
87963
87963
  case "EnumDeclaration":
87964
87964
  return (0, lines_1.concat)([
87965
87965
  "enum ",
87966
- path22.call(print5, "id"),
87967
- path22.call(print5, "body")
87966
+ path22.call(print4, "id"),
87967
+ path22.call(print4, "body")
87968
87968
  ]);
87969
87969
  case "EnumBooleanBody":
87970
87970
  case "EnumNumberBody":
@@ -87976,24 +87976,24 @@ var require_printer2 = __commonJS2({
87976
87976
  n2.type.slice(4, -4).toLowerCase()
87977
87977
  );
87978
87978
  }
87979
- parts.push(" {\n", (0, lines_1.fromString)("\n").join(path22.map(print5, "members")).indent(options.tabWidth), "\n}");
87979
+ parts.push(" {\n", (0, lines_1.fromString)("\n").join(path22.map(print4, "members")).indent(options.tabWidth), "\n}");
87980
87980
  return (0, lines_1.concat)(parts);
87981
87981
  }
87982
87982
  case "EnumDefaultedMember":
87983
- return (0, lines_1.concat)([path22.call(print5, "id"), ","]);
87983
+ return (0, lines_1.concat)([path22.call(print4, "id"), ","]);
87984
87984
  case "EnumBooleanMember":
87985
87985
  case "EnumNumberMember":
87986
87986
  case "EnumStringMember":
87987
87987
  return (0, lines_1.concat)([
87988
- path22.call(print5, "id"),
87988
+ path22.call(print4, "id"),
87989
87989
  " = ",
87990
- path22.call(print5, "init"),
87990
+ path22.call(print4, "init"),
87991
87991
  ","
87992
87992
  ]);
87993
87993
  case "InferredPredicate":
87994
87994
  return (0, lines_1.fromString)("%checks", options);
87995
87995
  case "DeclaredPredicate":
87996
- return (0, lines_1.concat)(["%checks(", path22.call(print5, "value"), ")"]);
87996
+ return (0, lines_1.concat)(["%checks(", path22.call(print4, "value"), ")"]);
87997
87997
  case "FunctionTypeAnnotation": {
87998
87998
  var parent = path22.getParentNode(0);
87999
87999
  var isArrowFunctionTypeAnnotation = !(namedTypes.ObjectTypeCallProperty.check(parent) || namedTypes.ObjectTypeInternalSlot.check(parent) && parent.method || namedTypes.DeclareFunction.check(path22.getParentNode(2)));
@@ -88003,14 +88003,14 @@ var require_printer2 = __commonJS2({
88003
88003
  }
88004
88004
  var hasTypeParameters = !!n2.typeParameters;
88005
88005
  var needsParens = hasTypeParameters || n2.params.length !== 1 || n2.params[0].name;
88006
- parts.push(hasTypeParameters ? path22.call(print5, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path22, options, print5), needsParens ? ")" : "");
88006
+ parts.push(hasTypeParameters ? path22.call(print4, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path22, options, print4), needsParens ? ")" : "");
88007
88007
  if (n2.returnType) {
88008
- parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path22.call(print5, "returnType"));
88008
+ parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path22.call(print4, "returnType"));
88009
88009
  }
88010
88010
  return (0, lines_1.concat)(parts);
88011
88011
  }
88012
88012
  case "FunctionTypeParam": {
88013
- var name = path22.call(print5, "name");
88013
+ var name = path22.call(print4, "name");
88014
88014
  parts.push(name);
88015
88015
  if (n2.optional) {
88016
88016
  parts.push("?");
@@ -88018,13 +88018,13 @@ var require_printer2 = __commonJS2({
88018
88018
  if (name.infos[0].line) {
88019
88019
  parts.push(": ");
88020
88020
  }
88021
- parts.push(path22.call(print5, "typeAnnotation"));
88021
+ parts.push(path22.call(print4, "typeAnnotation"));
88022
88022
  return (0, lines_1.concat)(parts);
88023
88023
  }
88024
88024
  case "GenericTypeAnnotation":
88025
88025
  return (0, lines_1.concat)([
88026
- path22.call(print5, "id"),
88027
- path22.call(print5, "typeParameters")
88026
+ path22.call(print4, "id"),
88027
+ path22.call(print4, "typeParameters")
88028
88028
  ]);
88029
88029
  case "DeclareInterface":
88030
88030
  parts.push("declare ");
@@ -88033,24 +88033,24 @@ var require_printer2 = __commonJS2({
88033
88033
  if (n2.declare) {
88034
88034
  parts.push("declare ");
88035
88035
  }
88036
- parts.push("interface ", path22.call(print5, "id"), path22.call(print5, "typeParameters"), " ");
88036
+ parts.push("interface ", path22.call(print4, "id"), path22.call(print4, "typeParameters"), " ");
88037
88037
  if (n2["extends"] && n2["extends"].length > 0) {
88038
- parts.push("extends ", (0, lines_1.fromString)(", ").join(path22.map(print5, "extends")), " ");
88038
+ parts.push("extends ", (0, lines_1.fromString)(", ").join(path22.map(print4, "extends")), " ");
88039
88039
  }
88040
88040
  if (n2.body) {
88041
- parts.push(path22.call(print5, "body"));
88041
+ parts.push(path22.call(print4, "body"));
88042
88042
  }
88043
88043
  return (0, lines_1.concat)(parts);
88044
88044
  case "ClassImplements":
88045
88045
  case "InterfaceExtends":
88046
88046
  return (0, lines_1.concat)([
88047
- path22.call(print5, "id"),
88048
- path22.call(print5, "typeParameters")
88047
+ path22.call(print4, "id"),
88048
+ path22.call(print4, "typeParameters")
88049
88049
  ]);
88050
88050
  case "IntersectionTypeAnnotation":
88051
- return (0, lines_1.fromString)(" & ").join(path22.map(print5, "types"));
88051
+ return (0, lines_1.fromString)(" & ").join(path22.map(print4, "types"));
88052
88052
  case "NullableTypeAnnotation":
88053
- return (0, lines_1.concat)(["?", path22.call(print5, "typeAnnotation")]);
88053
+ return (0, lines_1.concat)(["?", path22.call(print4, "typeAnnotation")]);
88054
88054
  case "NullLiteralTypeAnnotation":
88055
88055
  return (0, lines_1.fromString)("null", options);
88056
88056
  case "ThisTypeAnnotation":
@@ -88058,40 +88058,40 @@ var require_printer2 = __commonJS2({
88058
88058
  case "NumberTypeAnnotation":
88059
88059
  return (0, lines_1.fromString)("number", options);
88060
88060
  case "ObjectTypeCallProperty":
88061
- return path22.call(print5, "value");
88061
+ return path22.call(print4, "value");
88062
88062
  case "ObjectTypeIndexer":
88063
88063
  if (n2.static) {
88064
88064
  parts.push("static ");
88065
88065
  }
88066
- parts.push(printVariance(path22, print5), "[");
88066
+ parts.push(printVariance(path22, print4), "[");
88067
88067
  if (n2.id) {
88068
- parts.push(path22.call(print5, "id"), ": ");
88068
+ parts.push(path22.call(print4, "id"), ": ");
88069
88069
  }
88070
- parts.push(path22.call(print5, "key"), "]: ", path22.call(print5, "value"));
88070
+ parts.push(path22.call(print4, "key"), "]: ", path22.call(print4, "value"));
88071
88071
  return (0, lines_1.concat)(parts);
88072
88072
  case "ObjectTypeProperty":
88073
88073
  return (0, lines_1.concat)([
88074
- printVariance(path22, print5),
88075
- path22.call(print5, "key"),
88074
+ printVariance(path22, print4),
88075
+ path22.call(print4, "key"),
88076
88076
  n2.optional ? "?" : "",
88077
88077
  ": ",
88078
- path22.call(print5, "value")
88078
+ path22.call(print4, "value")
88079
88079
  ]);
88080
88080
  case "ObjectTypeInternalSlot":
88081
88081
  return (0, lines_1.concat)([
88082
88082
  n2.static ? "static " : "",
88083
88083
  "[[",
88084
- path22.call(print5, "id"),
88084
+ path22.call(print4, "id"),
88085
88085
  "]]",
88086
88086
  n2.optional ? "?" : "",
88087
88087
  n2.value.type !== "FunctionTypeAnnotation" ? ": " : "",
88088
- path22.call(print5, "value")
88088
+ path22.call(print4, "value")
88089
88089
  ]);
88090
88090
  case "QualifiedTypeIdentifier":
88091
88091
  return (0, lines_1.concat)([
88092
- path22.call(print5, "qualification"),
88092
+ path22.call(print4, "qualification"),
88093
88093
  ".",
88094
- path22.call(print5, "id")
88094
+ path22.call(print4, "id")
88095
88095
  ]);
88096
88096
  case "StringLiteralTypeAnnotation":
88097
88097
  return (0, lines_1.fromString)(nodeStr(n2.value, options), options);
@@ -88108,36 +88108,36 @@ var require_printer2 = __commonJS2({
88108
88108
  case "TypeAlias":
88109
88109
  return (0, lines_1.concat)([
88110
88110
  "type ",
88111
- path22.call(print5, "id"),
88112
- path22.call(print5, "typeParameters"),
88111
+ path22.call(print4, "id"),
88112
+ path22.call(print4, "typeParameters"),
88113
88113
  " = ",
88114
- path22.call(print5, "right"),
88114
+ path22.call(print4, "right"),
88115
88115
  ";"
88116
88116
  ]);
88117
88117
  case "DeclareOpaqueType":
88118
88118
  parts.push("declare ");
88119
88119
  case "OpaqueType":
88120
- parts.push("opaque type ", path22.call(print5, "id"), path22.call(print5, "typeParameters"));
88120
+ parts.push("opaque type ", path22.call(print4, "id"), path22.call(print4, "typeParameters"));
88121
88121
  if (n2["supertype"]) {
88122
- parts.push(": ", path22.call(print5, "supertype"));
88122
+ parts.push(": ", path22.call(print4, "supertype"));
88123
88123
  }
88124
88124
  if (n2["impltype"]) {
88125
- parts.push(" = ", path22.call(print5, "impltype"));
88125
+ parts.push(" = ", path22.call(print4, "impltype"));
88126
88126
  }
88127
88127
  parts.push(";");
88128
88128
  return (0, lines_1.concat)(parts);
88129
88129
  case "TypeCastExpression":
88130
88130
  return (0, lines_1.concat)([
88131
88131
  "(",
88132
- path22.call(print5, "expression"),
88133
- path22.call(print5, "typeAnnotation"),
88132
+ path22.call(print4, "expression"),
88133
+ path22.call(print4, "typeAnnotation"),
88134
88134
  ")"
88135
88135
  ]);
88136
88136
  case "TypeParameterDeclaration":
88137
88137
  case "TypeParameterInstantiation":
88138
88138
  return (0, lines_1.concat)([
88139
88139
  "<",
88140
- (0, lines_1.fromString)(", ").join(path22.map(print5, "params")),
88140
+ (0, lines_1.fromString)(", ").join(path22.map(print4, "params")),
88141
88141
  ">"
88142
88142
  ]);
88143
88143
  case "Variance":
@@ -88150,32 +88150,32 @@ var require_printer2 = __commonJS2({
88150
88150
  return (0, lines_1.fromString)("");
88151
88151
  case "TypeParameter":
88152
88152
  if (n2.variance) {
88153
- parts.push(printVariance(path22, print5));
88153
+ parts.push(printVariance(path22, print4));
88154
88154
  }
88155
- parts.push(path22.call(print5, "name"));
88155
+ parts.push(path22.call(print4, "name"));
88156
88156
  if (n2.bound) {
88157
- parts.push(path22.call(print5, "bound"));
88157
+ parts.push(path22.call(print4, "bound"));
88158
88158
  }
88159
88159
  if (n2["default"]) {
88160
- parts.push("=", path22.call(print5, "default"));
88160
+ parts.push("=", path22.call(print4, "default"));
88161
88161
  }
88162
88162
  return (0, lines_1.concat)(parts);
88163
88163
  case "TypeofTypeAnnotation":
88164
88164
  return (0, lines_1.concat)([
88165
88165
  (0, lines_1.fromString)("typeof ", options),
88166
- path22.call(print5, "argument")
88166
+ path22.call(print4, "argument")
88167
88167
  ]);
88168
88168
  case "IndexedAccessType":
88169
88169
  case "OptionalIndexedAccessType":
88170
88170
  return (0, lines_1.concat)([
88171
- path22.call(print5, "objectType"),
88171
+ path22.call(print4, "objectType"),
88172
88172
  n2.optional ? "?." : "",
88173
88173
  "[",
88174
- path22.call(print5, "indexType"),
88174
+ path22.call(print4, "indexType"),
88175
88175
  "]"
88176
88176
  ]);
88177
88177
  case "UnionTypeAnnotation":
88178
- return (0, lines_1.fromString)(" | ").join(path22.map(print5, "types"));
88178
+ return (0, lines_1.fromString)(" | ").join(path22.map(print4, "types"));
88179
88179
  case "VoidTypeAnnotation":
88180
88180
  return (0, lines_1.fromString)("void", options);
88181
88181
  case "NullTypeAnnotation":
@@ -88215,77 +88215,77 @@ var require_printer2 = __commonJS2({
88215
88215
  case "TSNeverKeyword":
88216
88216
  return (0, lines_1.fromString)("never", options);
88217
88217
  case "TSArrayType":
88218
- return (0, lines_1.concat)([path22.call(print5, "elementType"), "[]"]);
88218
+ return (0, lines_1.concat)([path22.call(print4, "elementType"), "[]"]);
88219
88219
  case "TSLiteralType":
88220
- return path22.call(print5, "literal");
88220
+ return path22.call(print4, "literal");
88221
88221
  case "TSUnionType":
88222
- return (0, lines_1.fromString)(" | ").join(path22.map(print5, "types"));
88222
+ return (0, lines_1.fromString)(" | ").join(path22.map(print4, "types"));
88223
88223
  case "TSIntersectionType":
88224
- return (0, lines_1.fromString)(" & ").join(path22.map(print5, "types"));
88224
+ return (0, lines_1.fromString)(" & ").join(path22.map(print4, "types"));
88225
88225
  case "TSConditionalType":
88226
- parts.push(path22.call(print5, "checkType"), " extends ", path22.call(print5, "extendsType"), " ? ", path22.call(print5, "trueType"), " : ", path22.call(print5, "falseType"));
88226
+ parts.push(path22.call(print4, "checkType"), " extends ", path22.call(print4, "extendsType"), " ? ", path22.call(print4, "trueType"), " : ", path22.call(print4, "falseType"));
88227
88227
  return (0, lines_1.concat)(parts);
88228
88228
  case "TSInferType":
88229
- parts.push("infer ", path22.call(print5, "typeParameter"));
88229
+ parts.push("infer ", path22.call(print4, "typeParameter"));
88230
88230
  return (0, lines_1.concat)(parts);
88231
88231
  case "TSParenthesizedType":
88232
- return (0, lines_1.concat)(["(", path22.call(print5, "typeAnnotation"), ")"]);
88232
+ return (0, lines_1.concat)(["(", path22.call(print4, "typeAnnotation"), ")"]);
88233
88233
  case "TSFunctionType":
88234
88234
  return (0, lines_1.concat)([
88235
- path22.call(print5, "typeParameters"),
88235
+ path22.call(print4, "typeParameters"),
88236
88236
  "(",
88237
- printFunctionParams(path22, options, print5),
88237
+ printFunctionParams(path22, options, print4),
88238
88238
  ") => ",
88239
- path22.call(print5, "typeAnnotation", "typeAnnotation")
88239
+ path22.call(print4, "typeAnnotation", "typeAnnotation")
88240
88240
  ]);
88241
88241
  case "TSConstructorType":
88242
88242
  return (0, lines_1.concat)([
88243
88243
  "new ",
88244
- path22.call(print5, "typeParameters"),
88244
+ path22.call(print4, "typeParameters"),
88245
88245
  "(",
88246
- printFunctionParams(path22, options, print5),
88246
+ printFunctionParams(path22, options, print4),
88247
88247
  ") => ",
88248
- path22.call(print5, "typeAnnotation", "typeAnnotation")
88248
+ path22.call(print4, "typeAnnotation", "typeAnnotation")
88249
88249
  ]);
88250
88250
  case "TSMappedType": {
88251
- parts.push(n2.readonly ? "readonly " : "", "[", path22.call(print5, "typeParameter"), "]", n2.optional ? "?" : "");
88251
+ parts.push(n2.readonly ? "readonly " : "", "[", path22.call(print4, "typeParameter"), "]", n2.optional ? "?" : "");
88252
88252
  if (n2.typeAnnotation) {
88253
- parts.push(": ", path22.call(print5, "typeAnnotation"), ";");
88253
+ parts.push(": ", path22.call(print4, "typeAnnotation"), ";");
88254
88254
  }
88255
88255
  return (0, lines_1.concat)(["{\n", (0, lines_1.concat)(parts).indent(options.tabWidth), "\n}"]);
88256
88256
  }
88257
88257
  case "TSTupleType":
88258
88258
  return (0, lines_1.concat)([
88259
88259
  "[",
88260
- (0, lines_1.fromString)(", ").join(path22.map(print5, "elementTypes")),
88260
+ (0, lines_1.fromString)(", ").join(path22.map(print4, "elementTypes")),
88261
88261
  "]"
88262
88262
  ]);
88263
88263
  case "TSNamedTupleMember":
88264
- parts.push(path22.call(print5, "label"));
88264
+ parts.push(path22.call(print4, "label"));
88265
88265
  if (n2.optional) {
88266
88266
  parts.push("?");
88267
88267
  }
88268
- parts.push(": ", path22.call(print5, "elementType"));
88268
+ parts.push(": ", path22.call(print4, "elementType"));
88269
88269
  return (0, lines_1.concat)(parts);
88270
88270
  case "TSRestType":
88271
- return (0, lines_1.concat)(["...", path22.call(print5, "typeAnnotation")]);
88271
+ return (0, lines_1.concat)(["...", path22.call(print4, "typeAnnotation")]);
88272
88272
  case "TSOptionalType":
88273
- return (0, lines_1.concat)([path22.call(print5, "typeAnnotation"), "?"]);
88273
+ return (0, lines_1.concat)([path22.call(print4, "typeAnnotation"), "?"]);
88274
88274
  case "TSIndexedAccessType":
88275
88275
  return (0, lines_1.concat)([
88276
- path22.call(print5, "objectType"),
88276
+ path22.call(print4, "objectType"),
88277
88277
  "[",
88278
- path22.call(print5, "indexType"),
88278
+ path22.call(print4, "indexType"),
88279
88279
  "]"
88280
88280
  ]);
88281
88281
  case "TSTypeOperator":
88282
88282
  return (0, lines_1.concat)([
88283
- path22.call(print5, "operator"),
88283
+ path22.call(print4, "operator"),
88284
88284
  " ",
88285
- path22.call(print5, "typeAnnotation")
88285
+ path22.call(print4, "typeAnnotation")
88286
88286
  ]);
88287
88287
  case "TSTypeLiteral": {
88288
- var members = (0, lines_1.fromString)("\n").join(path22.map(print5, "members").map(function(member) {
88288
+ var members = (0, lines_1.fromString)("\n").join(path22.map(print4, "members").map(function(member) {
88289
88289
  if (lastNonSpaceCharacter(member) !== ";") {
88290
88290
  return member.concat(";");
88291
88291
  }
@@ -88298,13 +88298,13 @@ var require_printer2 = __commonJS2({
88298
88298
  return (0, lines_1.concat)(parts);
88299
88299
  }
88300
88300
  case "TSEnumMember":
88301
- parts.push(path22.call(print5, "id"));
88301
+ parts.push(path22.call(print4, "id"));
88302
88302
  if (n2.initializer) {
88303
- parts.push(" = ", path22.call(print5, "initializer"));
88303
+ parts.push(" = ", path22.call(print4, "initializer"));
88304
88304
  }
88305
88305
  return (0, lines_1.concat)(parts);
88306
88306
  case "TSTypeQuery":
88307
- return (0, lines_1.concat)(["typeof ", path22.call(print5, "exprName")]);
88307
+ return (0, lines_1.concat)(["typeof ", path22.call(print4, "exprName")]);
88308
88308
  case "TSParameterProperty":
88309
88309
  if (n2.accessibility) {
88310
88310
  parts.push(n2.accessibility, " ");
@@ -88318,119 +88318,119 @@ var require_printer2 = __commonJS2({
88318
88318
  if (n2.readonly) {
88319
88319
  parts.push("readonly ");
88320
88320
  }
88321
- parts.push(path22.call(print5, "parameter"));
88321
+ parts.push(path22.call(print4, "parameter"));
88322
88322
  return (0, lines_1.concat)(parts);
88323
88323
  case "TSTypeReference":
88324
88324
  return (0, lines_1.concat)([
88325
- path22.call(print5, "typeName"),
88326
- path22.call(print5, "typeParameters")
88325
+ path22.call(print4, "typeName"),
88326
+ path22.call(print4, "typeParameters")
88327
88327
  ]);
88328
88328
  case "TSQualifiedName":
88329
- return (0, lines_1.concat)([path22.call(print5, "left"), ".", path22.call(print5, "right")]);
88329
+ return (0, lines_1.concat)([path22.call(print4, "left"), ".", path22.call(print4, "right")]);
88330
88330
  case "TSAsExpression":
88331
88331
  case "TSSatisfiesExpression": {
88332
- var expression = path22.call(print5, "expression");
88333
- parts.push(expression, n2.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path22.call(print5, "typeAnnotation"));
88332
+ var expression = path22.call(print4, "expression");
88333
+ parts.push(expression, n2.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path22.call(print4, "typeAnnotation"));
88334
88334
  return (0, lines_1.concat)(parts);
88335
88335
  }
88336
88336
  case "TSTypeCastExpression":
88337
88337
  return (0, lines_1.concat)([
88338
- path22.call(print5, "expression"),
88339
- path22.call(print5, "typeAnnotation")
88338
+ path22.call(print4, "expression"),
88339
+ path22.call(print4, "typeAnnotation")
88340
88340
  ]);
88341
88341
  case "TSNonNullExpression":
88342
- return (0, lines_1.concat)([path22.call(print5, "expression"), "!"]);
88342
+ return (0, lines_1.concat)([path22.call(print4, "expression"), "!"]);
88343
88343
  case "TSTypeAnnotation":
88344
- return (0, lines_1.concat)([": ", path22.call(print5, "typeAnnotation")]);
88344
+ return (0, lines_1.concat)([": ", path22.call(print4, "typeAnnotation")]);
88345
88345
  case "TSIndexSignature":
88346
88346
  return (0, lines_1.concat)([
88347
88347
  n2.readonly ? "readonly " : "",
88348
88348
  "[",
88349
- path22.map(print5, "parameters"),
88349
+ path22.map(print4, "parameters"),
88350
88350
  "]",
88351
- path22.call(print5, "typeAnnotation")
88351
+ path22.call(print4, "typeAnnotation")
88352
88352
  ]);
88353
88353
  case "TSPropertySignature":
88354
- parts.push(printVariance(path22, print5), n2.readonly ? "readonly " : "");
88354
+ parts.push(printVariance(path22, print4), n2.readonly ? "readonly " : "");
88355
88355
  if (n2.computed) {
88356
- parts.push("[", path22.call(print5, "key"), "]");
88356
+ parts.push("[", path22.call(print4, "key"), "]");
88357
88357
  } else {
88358
- parts.push(path22.call(print5, "key"));
88358
+ parts.push(path22.call(print4, "key"));
88359
88359
  }
88360
- parts.push(n2.optional ? "?" : "", path22.call(print5, "typeAnnotation"));
88360
+ parts.push(n2.optional ? "?" : "", path22.call(print4, "typeAnnotation"));
88361
88361
  return (0, lines_1.concat)(parts);
88362
88362
  case "TSMethodSignature":
88363
88363
  if (n2.computed) {
88364
- parts.push("[", path22.call(print5, "key"), "]");
88364
+ parts.push("[", path22.call(print4, "key"), "]");
88365
88365
  } else {
88366
- parts.push(path22.call(print5, "key"));
88366
+ parts.push(path22.call(print4, "key"));
88367
88367
  }
88368
88368
  if (n2.optional) {
88369
88369
  parts.push("?");
88370
88370
  }
88371
- parts.push(path22.call(print5, "typeParameters"), "(", printFunctionParams(path22, options, print5), ")", path22.call(print5, "typeAnnotation"));
88371
+ parts.push(path22.call(print4, "typeParameters"), "(", printFunctionParams(path22, options, print4), ")", path22.call(print4, "typeAnnotation"));
88372
88372
  return (0, lines_1.concat)(parts);
88373
88373
  case "TSTypePredicate":
88374
88374
  if (n2.asserts) {
88375
88375
  parts.push("asserts ");
88376
88376
  }
88377
- parts.push(path22.call(print5, "parameterName"));
88377
+ parts.push(path22.call(print4, "parameterName"));
88378
88378
  if (n2.typeAnnotation) {
88379
- parts.push(" is ", path22.call(print5, "typeAnnotation", "typeAnnotation"));
88379
+ parts.push(" is ", path22.call(print4, "typeAnnotation", "typeAnnotation"));
88380
88380
  }
88381
88381
  return (0, lines_1.concat)(parts);
88382
88382
  case "TSCallSignatureDeclaration":
88383
88383
  return (0, lines_1.concat)([
88384
- path22.call(print5, "typeParameters"),
88384
+ path22.call(print4, "typeParameters"),
88385
88385
  "(",
88386
- printFunctionParams(path22, options, print5),
88386
+ printFunctionParams(path22, options, print4),
88387
88387
  ")",
88388
- path22.call(print5, "typeAnnotation")
88388
+ path22.call(print4, "typeAnnotation")
88389
88389
  ]);
88390
88390
  case "TSConstructSignatureDeclaration":
88391
88391
  if (n2.typeParameters) {
88392
- parts.push("new", path22.call(print5, "typeParameters"));
88392
+ parts.push("new", path22.call(print4, "typeParameters"));
88393
88393
  } else {
88394
88394
  parts.push("new ");
88395
88395
  }
88396
- parts.push("(", printFunctionParams(path22, options, print5), ")", path22.call(print5, "typeAnnotation"));
88396
+ parts.push("(", printFunctionParams(path22, options, print4), ")", path22.call(print4, "typeAnnotation"));
88397
88397
  return (0, lines_1.concat)(parts);
88398
88398
  case "TSTypeAliasDeclaration":
88399
88399
  return (0, lines_1.concat)([
88400
88400
  n2.declare ? "declare " : "",
88401
88401
  "type ",
88402
- path22.call(print5, "id"),
88403
- path22.call(print5, "typeParameters"),
88402
+ path22.call(print4, "id"),
88403
+ path22.call(print4, "typeParameters"),
88404
88404
  " = ",
88405
- path22.call(print5, "typeAnnotation"),
88405
+ path22.call(print4, "typeAnnotation"),
88406
88406
  ";"
88407
88407
  ]);
88408
88408
  case "TSTypeParameter": {
88409
- parts.push(path22.call(print5, "name"));
88409
+ parts.push(path22.call(print4, "name"));
88410
88410
  var parent = path22.getParentNode(0);
88411
88411
  var isInMappedType = namedTypes.TSMappedType.check(parent);
88412
88412
  if (n2.constraint) {
88413
- parts.push(isInMappedType ? " in " : " extends ", path22.call(print5, "constraint"));
88413
+ parts.push(isInMappedType ? " in " : " extends ", path22.call(print4, "constraint"));
88414
88414
  }
88415
88415
  if (n2["default"]) {
88416
- parts.push(" = ", path22.call(print5, "default"));
88416
+ parts.push(" = ", path22.call(print4, "default"));
88417
88417
  }
88418
88418
  return (0, lines_1.concat)(parts);
88419
88419
  }
88420
88420
  case "TSTypeAssertion": {
88421
- parts.push("<", path22.call(print5, "typeAnnotation"), "> ", path22.call(print5, "expression"));
88421
+ parts.push("<", path22.call(print4, "typeAnnotation"), "> ", path22.call(print4, "expression"));
88422
88422
  return (0, lines_1.concat)(parts);
88423
88423
  }
88424
88424
  case "TSTypeParameterDeclaration":
88425
88425
  case "TSTypeParameterInstantiation":
88426
88426
  return (0, lines_1.concat)([
88427
88427
  "<",
88428
- (0, lines_1.fromString)(", ").join(path22.map(print5, "params")),
88428
+ (0, lines_1.fromString)(", ").join(path22.map(print4, "params")),
88429
88429
  ">"
88430
88430
  ]);
88431
88431
  case "TSEnumDeclaration": {
88432
- parts.push(n2.declare ? "declare " : "", n2.const ? "const " : "", "enum ", path22.call(print5, "id"));
88433
- var memberLines = (0, lines_1.fromString)(",\n").join(path22.map(print5, "members"));
88432
+ parts.push(n2.declare ? "declare " : "", n2.const ? "const " : "", "enum ", path22.call(print4, "id"));
88433
+ var memberLines = (0, lines_1.fromString)(",\n").join(path22.map(print4, "members"));
88434
88434
  if (memberLines.isEmpty()) {
88435
88435
  parts.push(" {}");
88436
88436
  } else {
@@ -88440,11 +88440,11 @@ var require_printer2 = __commonJS2({
88440
88440
  }
88441
88441
  case "TSExpressionWithTypeArguments":
88442
88442
  return (0, lines_1.concat)([
88443
- path22.call(print5, "expression"),
88444
- path22.call(print5, "typeParameters")
88443
+ path22.call(print4, "expression"),
88444
+ path22.call(print4, "typeParameters")
88445
88445
  ]);
88446
88446
  case "TSInterfaceBody": {
88447
- var lines = (0, lines_1.fromString)("\n").join(path22.map(print5, "body").map(function(element) {
88447
+ var lines = (0, lines_1.fromString)("\n").join(path22.map(print4, "body").map(function(element) {
88448
88448
  if (lastNonSpaceCharacter(element) !== ";") {
88449
88449
  return element.concat(";");
88450
88450
  }
@@ -88456,22 +88456,22 @@ var require_printer2 = __commonJS2({
88456
88456
  return (0, lines_1.concat)(["{\n", lines.indent(options.tabWidth), "\n}"]);
88457
88457
  }
88458
88458
  case "TSImportType":
88459
- parts.push("import(", path22.call(print5, "argument"), ")");
88459
+ parts.push("import(", path22.call(print4, "argument"), ")");
88460
88460
  if (n2.qualifier) {
88461
- parts.push(".", path22.call(print5, "qualifier"));
88461
+ parts.push(".", path22.call(print4, "qualifier"));
88462
88462
  }
88463
88463
  if (n2.typeParameters) {
88464
- parts.push(path22.call(print5, "typeParameters"));
88464
+ parts.push(path22.call(print4, "typeParameters"));
88465
88465
  }
88466
88466
  return (0, lines_1.concat)(parts);
88467
88467
  case "TSImportEqualsDeclaration":
88468
88468
  if (n2.isExport) {
88469
88469
  parts.push("export ");
88470
88470
  }
88471
- parts.push("import ", path22.call(print5, "id"), " = ", path22.call(print5, "moduleReference"));
88471
+ parts.push("import ", path22.call(print4, "id"), " = ", path22.call(print4, "moduleReference"));
88472
88472
  return maybeAddSemicolon((0, lines_1.concat)(parts));
88473
88473
  case "TSExternalModuleReference":
88474
- return (0, lines_1.concat)(["require(", path22.call(print5, "expression"), ")"]);
88474
+ return (0, lines_1.concat)(["require(", path22.call(print4, "expression"), ")"]);
88475
88475
  case "TSModuleDeclaration": {
88476
88476
  var parent = path22.getParentNode();
88477
88477
  if (parent.type === "TSModuleDeclaration") {
@@ -88496,16 +88496,16 @@ var require_printer2 = __commonJS2({
88496
88496
  }
88497
88497
  }
88498
88498
  }
88499
- parts.push(path22.call(print5, "id"));
88499
+ parts.push(path22.call(print4, "id"));
88500
88500
  if (n2.body) {
88501
88501
  parts.push(" ");
88502
- parts.push(path22.call(print5, "body"));
88502
+ parts.push(path22.call(print4, "body"));
88503
88503
  }
88504
88504
  return (0, lines_1.concat)(parts);
88505
88505
  }
88506
88506
  case "TSModuleBlock": {
88507
88507
  var naked = path22.call(function(bodyPath) {
88508
- return printStatementSequence(bodyPath, options, print5);
88508
+ return printStatementSequence(bodyPath, options, print4);
88509
88509
  }, "body");
88510
88510
  if (naked.isEmpty()) {
88511
88511
  parts.push("{}");
@@ -88515,11 +88515,11 @@ var require_printer2 = __commonJS2({
88515
88515
  return (0, lines_1.concat)(parts);
88516
88516
  }
88517
88517
  case "TSInstantiationExpression": {
88518
- parts.push(path22.call(print5, "expression"), path22.call(print5, "typeParameters"));
88518
+ parts.push(path22.call(print4, "expression"), path22.call(print4, "typeParameters"));
88519
88519
  return (0, lines_1.concat)(parts);
88520
88520
  }
88521
88521
  case "V8IntrinsicIdentifier":
88522
- return (0, lines_1.concat)(["%", path22.call(print5, "name")]);
88522
+ return (0, lines_1.concat)(["%", path22.call(print4, "name")]);
88523
88523
  case "TopicReference":
88524
88524
  return (0, lines_1.fromString)("#");
88525
88525
  case "ClassHeritage":
@@ -88569,7 +88569,7 @@ var require_printer2 = __commonJS2({
88569
88569
  }
88570
88570
  return (0, lines_1.concat)(parts);
88571
88571
  }
88572
- function printStatementSequence(path22, options, print5) {
88572
+ function printStatementSequence(path22, options, print4) {
88573
88573
  var filtered = [];
88574
88574
  var sawComment = false;
88575
88575
  var sawStatement = false;
@@ -88590,7 +88590,7 @@ var require_printer2 = __commonJS2({
88590
88590
  }
88591
88591
  filtered.push({
88592
88592
  node: stmt,
88593
- printed: print5(stmtPath)
88593
+ printed: print4(stmtPath)
88594
88594
  });
88595
88595
  });
88596
88596
  if (sawComment) {
@@ -88682,7 +88682,7 @@ var require_printer2 = __commonJS2({
88682
88682
  }
88683
88683
  return parts;
88684
88684
  }
88685
- function printMethod(path22, options, print5) {
88685
+ function printMethod(path22, options, print4) {
88686
88686
  var node2 = path22.getNode();
88687
88687
  var kind = node2.kind;
88688
88688
  var parts = [];
@@ -88700,7 +88700,7 @@ var require_printer2 = __commonJS2({
88700
88700
  if (kind === "get" || kind === "set") {
88701
88701
  parts.push(kind, " ");
88702
88702
  }
88703
- var key = path22.call(print5, "key");
88703
+ var key = path22.call(print4, "key");
88704
88704
  if (node2.computed) {
88705
88705
  key = (0, lines_1.concat)(["[", key, "]"]);
88706
88706
  }
@@ -88709,26 +88709,26 @@ var require_printer2 = __commonJS2({
88709
88709
  parts.push("?");
88710
88710
  }
88711
88711
  if (node2 === nodeValue) {
88712
- parts.push(path22.call(print5, "typeParameters"), "(", printFunctionParams(path22, options, print5), ")", path22.call(print5, "returnType"));
88712
+ parts.push(path22.call(print4, "typeParameters"), "(", printFunctionParams(path22, options, print4), ")", path22.call(print4, "returnType"));
88713
88713
  if (node2.body) {
88714
- parts.push(" ", path22.call(print5, "body"));
88714
+ parts.push(" ", path22.call(print4, "body"));
88715
88715
  } else {
88716
88716
  parts.push(";");
88717
88717
  }
88718
88718
  } else {
88719
- parts.push(path22.call(print5, "value", "typeParameters"), "(", path22.call(function(valuePath) {
88720
- return printFunctionParams(valuePath, options, print5);
88721
- }, "value"), ")", path22.call(print5, "value", "returnType"));
88719
+ parts.push(path22.call(print4, "value", "typeParameters"), "(", path22.call(function(valuePath) {
88720
+ return printFunctionParams(valuePath, options, print4);
88721
+ }, "value"), ")", path22.call(print4, "value", "returnType"));
88722
88722
  if (nodeValue.body) {
88723
- parts.push(" ", path22.call(print5, "value", "body"));
88723
+ parts.push(" ", path22.call(print4, "value", "body"));
88724
88724
  } else {
88725
88725
  parts.push(";");
88726
88726
  }
88727
88727
  }
88728
88728
  return (0, lines_1.concat)(parts);
88729
88729
  }
88730
- function printArgumentsList(path22, options, print5) {
88731
- var printed = path22.map(print5, "arguments");
88730
+ function printArgumentsList(path22, options, print4) {
88731
+ var printed = path22.map(print4, "arguments");
88732
88732
  var trailingComma = util2.isTrailingCommaEnabled(options, "parameters");
88733
88733
  var joined = (0, lines_1.fromString)(", ").join(printed);
88734
88734
  if (joined.getLineLength(1) > options.wrapColumn) {
@@ -88741,28 +88741,28 @@ var require_printer2 = __commonJS2({
88741
88741
  }
88742
88742
  return (0, lines_1.concat)(["(", joined, ")"]);
88743
88743
  }
88744
- function printFunctionParams(path22, options, print5) {
88744
+ function printFunctionParams(path22, options, print4) {
88745
88745
  var fun = path22.getValue();
88746
88746
  var params;
88747
88747
  var printed = [];
88748
88748
  if (fun.params) {
88749
88749
  params = fun.params;
88750
- printed = path22.map(print5, "params");
88750
+ printed = path22.map(print4, "params");
88751
88751
  } else if (fun.parameters) {
88752
88752
  params = fun.parameters;
88753
- printed = path22.map(print5, "parameters");
88753
+ printed = path22.map(print4, "parameters");
88754
88754
  }
88755
88755
  if (fun.defaults) {
88756
88756
  path22.each(function(defExprPath) {
88757
88757
  var i22 = defExprPath.getName();
88758
88758
  var p = printed[i22];
88759
88759
  if (p && defExprPath.getValue()) {
88760
- printed[i22] = (0, lines_1.concat)([p, " = ", print5(defExprPath)]);
88760
+ printed[i22] = (0, lines_1.concat)([p, " = ", print4(defExprPath)]);
88761
88761
  }
88762
88762
  }, "defaults");
88763
88763
  }
88764
88764
  if (fun.rest) {
88765
- printed.push((0, lines_1.concat)(["...", path22.call(print5, "rest")]));
88765
+ printed.push((0, lines_1.concat)(["...", path22.call(print4, "rest")]));
88766
88766
  }
88767
88767
  var joined = (0, lines_1.fromString)(", ").join(printed);
88768
88768
  if (joined.length > 1 || joined.getLineLength(1) > options.wrapColumn) {
@@ -88776,11 +88776,11 @@ var require_printer2 = __commonJS2({
88776
88776
  }
88777
88777
  return joined;
88778
88778
  }
88779
- function maybePrintImportAssertions(path22, options, print5) {
88779
+ function maybePrintImportAssertions(path22, options, print4) {
88780
88780
  var n2 = path22.getValue();
88781
88781
  if (n2.assertions && n2.assertions.length > 0) {
88782
88782
  var parts = [" assert {"];
88783
- var printed = path22.map(print5, "assertions");
88783
+ var printed = path22.map(print4, "assertions");
88784
88784
  var flat = (0, lines_1.fromString)(", ").join(printed);
88785
88785
  if (flat.length > 1 || flat.getLineLength(1) > options.wrapColumn) {
88786
88786
  parts.push("\n", (0, lines_1.fromString)(",\n").join(printed).indent(options.tabWidth), "\n}");
@@ -88791,7 +88791,7 @@ var require_printer2 = __commonJS2({
88791
88791
  }
88792
88792
  return (0, lines_1.fromString)("");
88793
88793
  }
88794
- function printExportDeclaration(path22, options, print5) {
88794
+ function printExportDeclaration(path22, options, print4) {
88795
88795
  var decl = path22.getValue();
88796
88796
  var parts = ["export "];
88797
88797
  if (decl.exportKind && decl.exportKind === "type") {
@@ -88805,7 +88805,7 @@ var require_printer2 = __commonJS2({
88805
88805
  parts.push("default ");
88806
88806
  }
88807
88807
  if (decl.declaration) {
88808
- parts.push(path22.call(print5, "declaration"));
88808
+ parts.push(path22.call(print4, "declaration"));
88809
88809
  } else if (decl.specifiers) {
88810
88810
  if (decl.specifiers.length === 1 && decl.specifiers[0].type === "ExportBatchSpecifier") {
88811
88811
  parts.push("*");
@@ -88817,9 +88817,9 @@ var require_printer2 = __commonJS2({
88817
88817
  path22.each(function(specifierPath) {
88818
88818
  var spec = specifierPath.getValue();
88819
88819
  if (spec.type === "ExportDefaultSpecifier") {
88820
- unbracedSpecifiers_2.push(print5(specifierPath));
88820
+ unbracedSpecifiers_2.push(print4(specifierPath));
88821
88821
  } else {
88822
- bracedSpecifiers_2.push(print5(specifierPath));
88822
+ bracedSpecifiers_2.push(print4(specifierPath));
88823
88823
  }
88824
88824
  }, "specifiers");
88825
88825
  unbracedSpecifiers_2.forEach(function(lines2, i22) {
@@ -88848,10 +88848,10 @@ var require_printer2 = __commonJS2({
88848
88848
  }
88849
88849
  }
88850
88850
  } else {
88851
- parts.push(shouldPrintSpaces ? "{ " : "{", (0, lines_1.fromString)(", ").join(path22.map(print5, "specifiers")), shouldPrintSpaces ? " }" : "}");
88851
+ parts.push(shouldPrintSpaces ? "{ " : "{", (0, lines_1.fromString)(", ").join(path22.map(print4, "specifiers")), shouldPrintSpaces ? " }" : "}");
88852
88852
  }
88853
88853
  if (decl.source) {
88854
- parts.push(" from ", path22.call(print5, "source"), maybePrintImportAssertions(path22, options, print5));
88854
+ parts.push(" from ", path22.call(print4, "source"), maybePrintImportAssertions(path22, options, print4));
88855
88855
  }
88856
88856
  }
88857
88857
  var lines = (0, lines_1.concat)(parts);
@@ -88869,7 +88869,7 @@ var require_printer2 = __commonJS2({
88869
88869
  }
88870
88870
  return (0, lines_1.concat)(parts);
88871
88871
  }
88872
- function printVariance(path22, print5) {
88872
+ function printVariance(path22, print4) {
88873
88873
  return path22.call(function(variancePath) {
88874
88874
  var value2 = variancePath.getValue();
88875
88875
  if (value2) {
@@ -88879,7 +88879,7 @@ var require_printer2 = __commonJS2({
88879
88879
  if (value2 === "minus") {
88880
88880
  return (0, lines_1.fromString)("-");
88881
88881
  }
88882
- return print5(variancePath);
88882
+ return print4(variancePath);
88883
88883
  }
88884
88884
  return (0, lines_1.fromString)("");
88885
88885
  }, "variance");
@@ -88964,10 +88964,10 @@ var require_main2 = __commonJS2({
88964
88964
  Object.defineProperty(exports, "visit", { enumerable: true, get: function() {
88965
88965
  return ast_types_1.visit;
88966
88966
  } });
88967
- function print5(node2, options) {
88967
+ function print4(node2, options) {
88968
88968
  return new printer_1.Printer(options).print(node2);
88969
88969
  }
88970
- exports.print = print5;
88970
+ exports.print = print4;
88971
88971
  function prettyPrint2(node2, options) {
88972
88972
  return new printer_1.Printer(options).printGenerically(node2);
88973
88973
  }
@@ -88991,7 +88991,7 @@ var require_main2 = __commonJS2({
88991
88991
  function runString(code, transformer, options) {
88992
88992
  var writeback = options && options.writeback || defaultWriteback;
88993
88993
  transformer((0, parser_1.parse)(code, options), function(node2) {
88994
- writeback(print5(node2, options).code);
88994
+ writeback(print4(node2, options).code);
88995
88995
  });
88996
88996
  }
88997
88997
  }
@@ -97665,10 +97665,10 @@ var require_printer4 = __commonJS3({
97665
97665
  Object.defineProperty(exports, "__esModule", {
97666
97666
  value: true
97667
97667
  });
97668
- exports.print = print12;
97668
+ exports.print = print11;
97669
97669
  var _visitor = require_visitor3();
97670
97670
  var _blockString = require_blockString3();
97671
- function print12(ast) {
97671
+ function print11(ast) {
97672
97672
  return (0, _visitor.visit)(ast, {
97673
97673
  leave: printDocASTReducer22
97674
97674
  });
@@ -148613,12 +148613,12 @@ var require_comments2 = __commonJS3({
148613
148613
  comment.trailing = true;
148614
148614
  addCommentHelper(node2, comment);
148615
148615
  }
148616
- function printLeadingComment(commentPath, print12) {
148616
+ function printLeadingComment(commentPath, print11) {
148617
148617
  var comment = commentPath.getValue();
148618
148618
  n2.Comment.assert(comment);
148619
148619
  var loc = comment.loc;
148620
148620
  var lines = loc && loc.lines;
148621
- var parts = [print12(commentPath)];
148621
+ var parts = [print11(commentPath)];
148622
148622
  if (comment.trailing) {
148623
148623
  parts.push("\n");
148624
148624
  } else if (lines instanceof lines_1.Lines) {
@@ -148633,7 +148633,7 @@ var require_comments2 = __commonJS3({
148633
148633
  }
148634
148634
  return (0, lines_1.concat)(parts);
148635
148635
  }
148636
- function printTrailingComment(commentPath, print12) {
148636
+ function printTrailingComment(commentPath, print11) {
148637
148637
  var comment = commentPath.getValue(commentPath);
148638
148638
  n2.Comment.assert(comment);
148639
148639
  var loc = comment.loc;
@@ -148648,12 +148648,12 @@ var require_comments2 = __commonJS3({
148648
148648
  parts.push(new Array(leadingSpace.length).join("\n"));
148649
148649
  }
148650
148650
  }
148651
- parts.push(print12(commentPath));
148651
+ parts.push(print11(commentPath));
148652
148652
  return (0, lines_1.concat)(parts);
148653
148653
  }
148654
- function printComments(path22, print12) {
148654
+ function printComments(path22, print11) {
148655
148655
  var value2 = path22.getValue();
148656
- var innerLines = print12(path22);
148656
+ var innerLines = print11(path22);
148657
148657
  var comments = n2.Node.check(value2) && types17.getFieldValue(value2, "comments");
148658
148658
  if (!comments || comments.length === 0) {
148659
148659
  return innerLines;
@@ -148665,9 +148665,9 @@ var require_comments2 = __commonJS3({
148665
148665
  var leading = types17.getFieldValue(comment, "leading");
148666
148666
  var trailing = types17.getFieldValue(comment, "trailing");
148667
148667
  if (leading || trailing && !(n2.Statement.check(value2) || comment.type === "Block" || comment.type === "CommentBlock")) {
148668
- leadingParts.push(printLeadingComment(commentPath, print12));
148668
+ leadingParts.push(printLeadingComment(commentPath, print11));
148669
148669
  } else if (trailing) {
148670
- trailingParts.push(printTrailingComment(commentPath, print12));
148670
+ trailingParts.push(printTrailingComment(commentPath, print11));
148671
148671
  }
148672
148672
  }, "comments");
148673
148673
  leadingParts.push.apply(leadingParts, trailingParts);
@@ -149352,7 +149352,7 @@ var require_patcher2 = __commonJS3({
149352
149352
  };
149353
149353
  exports.Patcher = Patcher;
149354
149354
  var Pp = Patcher.prototype;
149355
- Pp.tryToReprintComments = function(newNode, oldNode, print12) {
149355
+ Pp.tryToReprintComments = function(newNode, oldNode, print11) {
149356
149356
  var patcher = this;
149357
149357
  if (!newNode.comments && !oldNode.comments) {
149358
149358
  return true;
@@ -149369,7 +149369,7 @@ var require_patcher2 = __commonJS3({
149369
149369
  assert_1.default.ok(oldComment.leading || oldComment.trailing);
149370
149370
  patcher.replace(
149371
149371
  oldComment.loc,
149372
- print12(reprint.newPath).indentTail(oldComment.loc.indent)
149372
+ print11(reprint.newPath).indentTail(oldComment.loc.indent)
149373
149373
  );
149374
149374
  });
149375
149375
  }
@@ -149416,17 +149416,17 @@ var require_patcher2 = __commonJS3({
149416
149416
  var reprints = [];
149417
149417
  if (!lines || !findReprints(path22, reprints))
149418
149418
  return;
149419
- return function(print12) {
149419
+ return function(print11) {
149420
149420
  var patcher = new Patcher(lines);
149421
149421
  reprints.forEach(function(reprint) {
149422
149422
  var newNode = reprint.newPath.getValue();
149423
149423
  var oldNode = reprint.oldPath.getValue();
149424
149424
  SourceLocation3.assert(oldNode.loc, true);
149425
- var needToPrintNewPathWithComments = !patcher.tryToReprintComments(newNode, oldNode, print12);
149425
+ var needToPrintNewPathWithComments = !patcher.tryToReprintComments(newNode, oldNode, print11);
149426
149426
  if (needToPrintNewPathWithComments) {
149427
149427
  patcher.deleteComments(oldNode);
149428
149428
  }
149429
- var newLines = print12(reprint.newPath, {
149429
+ var newLines = print11(reprint.newPath, {
149430
149430
  includeComments: needToPrintNewPathWithComments,
149431
149431
  avoidRootParens: oldNode.type === newNode.type && reprint.oldPath.hasParens()
149432
149432
  }).indentTail(oldNode.loc.indent);
@@ -149641,10 +149641,10 @@ var require_printer22 = __commonJS3({
149641
149641
  function makePrintFunctionWith(options, overrides) {
149642
149642
  options = Object.assign({}, options, overrides);
149643
149643
  return function(path22) {
149644
- return print12(path22, options);
149644
+ return print11(path22, options);
149645
149645
  };
149646
149646
  }
149647
- function print12(path22, options) {
149647
+ function print11(path22, options) {
149648
149648
  assert_1.default.ok(path22 instanceof fast_path_1.default);
149649
149649
  options = options || {};
149650
149650
  if (options.includeComments) {
@@ -149660,7 +149660,7 @@ var require_printer22 = __commonJS3({
149660
149660
  }
149661
149661
  }
149662
149662
  var reprinter = (0, patcher_1.getReprinter)(path22);
149663
- var lines = reprinter ? reprinter(print12) : genericPrint(path22, config4, options, makePrintFunctionWith(options, {
149663
+ var lines = reprinter ? reprinter(print11) : genericPrint(path22, config4, options, makePrintFunctionWith(options, {
149664
149664
  includeComments: true,
149665
149665
  avoidRootParens: false
149666
149666
  }));
@@ -149671,7 +149671,7 @@ var require_printer22 = __commonJS3({
149671
149671
  if (!ast) {
149672
149672
  return emptyPrintResult;
149673
149673
  }
149674
- var lines = print12(fast_path_1.default.from(ast), {
149674
+ var lines = print11(fast_path_1.default.from(ast), {
149675
149675
  includeComments: true,
149676
149676
  avoidRootParens: false
149677
149677
  });
@@ -149724,7 +149724,7 @@ var require_printer22 = __commonJS3({
149724
149724
  }
149725
149725
  return (0, lines_1.concat)(parts);
149726
149726
  }
149727
- function genericPrintNoParens(path22, options, print12) {
149727
+ function genericPrintNoParens(path22, options, print11) {
149728
149728
  var n2 = path22.getValue();
149729
149729
  if (!n2) {
149730
149730
  return (0, lines_1.fromString)("");
@@ -149736,45 +149736,45 @@ var require_printer22 = __commonJS3({
149736
149736
  var parts = [];
149737
149737
  switch (n2.type) {
149738
149738
  case "File":
149739
- return path22.call(print12, "program");
149739
+ return path22.call(print11, "program");
149740
149740
  case "Program":
149741
149741
  if (n2.directives) {
149742
149742
  path22.each(function(childPath) {
149743
- parts.push(print12(childPath), ";\n");
149743
+ parts.push(print11(childPath), ";\n");
149744
149744
  }, "directives");
149745
149745
  }
149746
149746
  if (n2.interpreter) {
149747
- parts.push(path22.call(print12, "interpreter"));
149747
+ parts.push(path22.call(print11, "interpreter"));
149748
149748
  }
149749
149749
  parts.push(path22.call(function(bodyPath) {
149750
- return printStatementSequence(bodyPath, options, print12);
149750
+ return printStatementSequence(bodyPath, options, print11);
149751
149751
  }, "body"));
149752
149752
  return (0, lines_1.concat)(parts);
149753
149753
  case "Noop":
149754
149754
  case "EmptyStatement":
149755
149755
  return (0, lines_1.fromString)("");
149756
149756
  case "ExpressionStatement":
149757
- return (0, lines_1.concat)([path22.call(print12, "expression"), ";"]);
149757
+ return (0, lines_1.concat)([path22.call(print11, "expression"), ";"]);
149758
149758
  case "ParenthesizedExpression":
149759
- return (0, lines_1.concat)(["(", path22.call(print12, "expression"), ")"]);
149759
+ return (0, lines_1.concat)(["(", path22.call(print11, "expression"), ")"]);
149760
149760
  case "BinaryExpression":
149761
149761
  case "LogicalExpression":
149762
149762
  case "AssignmentExpression":
149763
149763
  return (0, lines_1.fromString)(" ").join([
149764
- path22.call(print12, "left"),
149764
+ path22.call(print11, "left"),
149765
149765
  n2.operator,
149766
- path22.call(print12, "right")
149766
+ path22.call(print11, "right")
149767
149767
  ]);
149768
149768
  case "AssignmentPattern":
149769
149769
  return (0, lines_1.concat)([
149770
- path22.call(print12, "left"),
149770
+ path22.call(print11, "left"),
149771
149771
  " = ",
149772
- path22.call(print12, "right")
149772
+ path22.call(print11, "right")
149773
149773
  ]);
149774
149774
  case "MemberExpression":
149775
149775
  case "OptionalMemberExpression": {
149776
- parts.push(path22.call(print12, "object"));
149777
- var property = path22.call(print12, "property");
149776
+ parts.push(path22.call(print11, "object"));
149777
+ var property = path22.call(print11, "property");
149778
149778
  var optional = types17.getFieldValue(n2, "optional");
149779
149779
  if (n2.computed) {
149780
149780
  parts.push(optional ? "?.[" : "[", property, "]");
@@ -149784,18 +149784,18 @@ var require_printer22 = __commonJS3({
149784
149784
  return (0, lines_1.concat)(parts);
149785
149785
  }
149786
149786
  case "ChainExpression":
149787
- return path22.call(print12, "expression");
149787
+ return path22.call(print11, "expression");
149788
149788
  case "MetaProperty":
149789
149789
  return (0, lines_1.concat)([
149790
- path22.call(print12, "meta"),
149790
+ path22.call(print11, "meta"),
149791
149791
  ".",
149792
- path22.call(print12, "property")
149792
+ path22.call(print11, "property")
149793
149793
  ]);
149794
149794
  case "BindExpression":
149795
149795
  if (n2.object) {
149796
- parts.push(path22.call(print12, "object"));
149796
+ parts.push(path22.call(print11, "object"));
149797
149797
  }
149798
- parts.push("::", path22.call(print12, "callee"));
149798
+ parts.push("::", path22.call(print11, "callee"));
149799
149799
  return (0, lines_1.concat)(parts);
149800
149800
  case "Path":
149801
149801
  return (0, lines_1.fromString)(".").join(n2.body);
@@ -149803,7 +149803,7 @@ var require_printer22 = __commonJS3({
149803
149803
  return (0, lines_1.concat)([
149804
149804
  (0, lines_1.fromString)(n2.name, options),
149805
149805
  n2.optional ? "?" : "",
149806
- path22.call(print12, "typeAnnotation")
149806
+ path22.call(print11, "typeAnnotation")
149807
149807
  ]);
149808
149808
  case "SpreadElement":
149809
149809
  case "SpreadElementPattern":
@@ -149814,8 +149814,8 @@ var require_printer22 = __commonJS3({
149814
149814
  case "RestElement":
149815
149815
  return (0, lines_1.concat)([
149816
149816
  "...",
149817
- path22.call(print12, "argument"),
149818
- path22.call(print12, "typeAnnotation")
149817
+ path22.call(print11, "argument"),
149818
+ path22.call(print11, "typeAnnotation")
149819
149819
  ]);
149820
149820
  case "FunctionDeclaration":
149821
149821
  case "FunctionExpression":
@@ -149830,15 +149830,15 @@ var require_printer22 = __commonJS3({
149830
149830
  if (n2.generator)
149831
149831
  parts.push("*");
149832
149832
  if (n2.id) {
149833
- parts.push(" ", path22.call(print12, "id"), path22.call(print12, "typeParameters"));
149833
+ parts.push(" ", path22.call(print11, "id"), path22.call(print11, "typeParameters"));
149834
149834
  } else {
149835
149835
  if (n2.typeParameters) {
149836
- parts.push(path22.call(print12, "typeParameters"));
149836
+ parts.push(path22.call(print11, "typeParameters"));
149837
149837
  }
149838
149838
  }
149839
- parts.push("(", printFunctionParams(path22, options, print12), ")", path22.call(print12, "returnType"));
149839
+ parts.push("(", printFunctionParams(path22, options, print11), ")", path22.call(print11, "returnType"));
149840
149840
  if (n2.body) {
149841
- parts.push(" ", path22.call(print12, "body"));
149841
+ parts.push(" ", path22.call(print11, "body"));
149842
149842
  }
149843
149843
  return (0, lines_1.concat)(parts);
149844
149844
  case "ArrowFunctionExpression":
@@ -149846,44 +149846,44 @@ var require_printer22 = __commonJS3({
149846
149846
  parts.push("async ");
149847
149847
  }
149848
149848
  if (n2.typeParameters) {
149849
- parts.push(path22.call(print12, "typeParameters"));
149849
+ parts.push(path22.call(print11, "typeParameters"));
149850
149850
  }
149851
149851
  if (!options.arrowParensAlways && n2.params.length === 1 && !n2.rest && n2.params[0].type === "Identifier" && !n2.params[0].typeAnnotation && !n2.returnType) {
149852
- parts.push(path22.call(print12, "params", 0));
149852
+ parts.push(path22.call(print11, "params", 0));
149853
149853
  } else {
149854
- parts.push("(", printFunctionParams(path22, options, print12), ")", path22.call(print12, "returnType"));
149854
+ parts.push("(", printFunctionParams(path22, options, print11), ")", path22.call(print11, "returnType"));
149855
149855
  }
149856
- parts.push(" => ", path22.call(print12, "body"));
149856
+ parts.push(" => ", path22.call(print11, "body"));
149857
149857
  return (0, lines_1.concat)(parts);
149858
149858
  case "MethodDefinition":
149859
- return printMethod(path22, options, print12);
149859
+ return printMethod(path22, options, print11);
149860
149860
  case "YieldExpression":
149861
149861
  parts.push("yield");
149862
149862
  if (n2.delegate)
149863
149863
  parts.push("*");
149864
149864
  if (n2.argument)
149865
- parts.push(" ", path22.call(print12, "argument"));
149865
+ parts.push(" ", path22.call(print11, "argument"));
149866
149866
  return (0, lines_1.concat)(parts);
149867
149867
  case "AwaitExpression":
149868
149868
  parts.push("await");
149869
149869
  if (n2.all)
149870
149870
  parts.push("*");
149871
149871
  if (n2.argument)
149872
- parts.push(" ", path22.call(print12, "argument"));
149872
+ parts.push(" ", path22.call(print11, "argument"));
149873
149873
  return (0, lines_1.concat)(parts);
149874
149874
  case "ModuleExpression":
149875
149875
  return (0, lines_1.concat)([
149876
149876
  "module {\n",
149877
- path22.call(print12, "body").indent(options.tabWidth),
149877
+ path22.call(print11, "body").indent(options.tabWidth),
149878
149878
  "\n}"
149879
149879
  ]);
149880
149880
  case "ModuleDeclaration":
149881
- parts.push("module", path22.call(print12, "id"));
149881
+ parts.push("module", path22.call(print11, "id"));
149882
149882
  if (n2.source) {
149883
149883
  assert_1.default.ok(!n2.body);
149884
- parts.push("from", path22.call(print12, "source"));
149884
+ parts.push("from", path22.call(print11, "source"));
149885
149885
  } else {
149886
- parts.push(path22.call(print12, "body"));
149886
+ parts.push(path22.call(print11, "body"));
149887
149887
  }
149888
149888
  return (0, lines_1.fromString)(" ").join(parts);
149889
149889
  case "ImportSpecifier":
@@ -149891,27 +149891,27 @@ var require_printer22 = __commonJS3({
149891
149891
  parts.push(n2.importKind + " ");
149892
149892
  }
149893
149893
  if (n2.imported) {
149894
- parts.push(path22.call(print12, "imported"));
149894
+ parts.push(path22.call(print11, "imported"));
149895
149895
  if (n2.local && n2.local.name !== n2.imported.name) {
149896
- parts.push(" as ", path22.call(print12, "local"));
149896
+ parts.push(" as ", path22.call(print11, "local"));
149897
149897
  }
149898
149898
  } else if (n2.id) {
149899
- parts.push(path22.call(print12, "id"));
149899
+ parts.push(path22.call(print11, "id"));
149900
149900
  if (n2.name) {
149901
- parts.push(" as ", path22.call(print12, "name"));
149901
+ parts.push(" as ", path22.call(print11, "name"));
149902
149902
  }
149903
149903
  }
149904
149904
  return (0, lines_1.concat)(parts);
149905
149905
  case "ExportSpecifier":
149906
149906
  if (n2.local) {
149907
- parts.push(path22.call(print12, "local"));
149907
+ parts.push(path22.call(print11, "local"));
149908
149908
  if (n2.exported && n2.exported.name !== n2.local.name) {
149909
- parts.push(" as ", path22.call(print12, "exported"));
149909
+ parts.push(" as ", path22.call(print11, "exported"));
149910
149910
  }
149911
149911
  } else if (n2.id) {
149912
- parts.push(path22.call(print12, "id"));
149912
+ parts.push(path22.call(print11, "id"));
149913
149913
  if (n2.name) {
149914
- parts.push(" as ", path22.call(print12, "name"));
149914
+ parts.push(" as ", path22.call(print11, "name"));
149915
149915
  }
149916
149916
  }
149917
149917
  return (0, lines_1.concat)(parts);
@@ -149920,40 +149920,40 @@ var require_printer22 = __commonJS3({
149920
149920
  case "ImportNamespaceSpecifier":
149921
149921
  parts.push("* as ");
149922
149922
  if (n2.local) {
149923
- parts.push(path22.call(print12, "local"));
149923
+ parts.push(path22.call(print11, "local"));
149924
149924
  } else if (n2.id) {
149925
- parts.push(path22.call(print12, "id"));
149925
+ parts.push(path22.call(print11, "id"));
149926
149926
  }
149927
149927
  return (0, lines_1.concat)(parts);
149928
149928
  case "ImportDefaultSpecifier":
149929
149929
  if (n2.local) {
149930
- return path22.call(print12, "local");
149930
+ return path22.call(print11, "local");
149931
149931
  }
149932
- return path22.call(print12, "id");
149932
+ return path22.call(print11, "id");
149933
149933
  case "TSExportAssignment":
149934
- return (0, lines_1.concat)(["export = ", path22.call(print12, "expression")]);
149934
+ return (0, lines_1.concat)(["export = ", path22.call(print11, "expression")]);
149935
149935
  case "ExportDeclaration":
149936
149936
  case "ExportDefaultDeclaration":
149937
149937
  case "ExportNamedDeclaration":
149938
- return printExportDeclaration(path22, options, print12);
149938
+ return printExportDeclaration(path22, options, print11);
149939
149939
  case "ExportAllDeclaration":
149940
149940
  parts.push("export *");
149941
149941
  if (n2.exported) {
149942
- parts.push(" as ", path22.call(print12, "exported"));
149942
+ parts.push(" as ", path22.call(print11, "exported"));
149943
149943
  }
149944
- parts.push(" from ", path22.call(print12, "source"), ";");
149944
+ parts.push(" from ", path22.call(print11, "source"), ";");
149945
149945
  return (0, lines_1.concat)(parts);
149946
149946
  case "TSNamespaceExportDeclaration":
149947
- parts.push("export as namespace ", path22.call(print12, "id"));
149947
+ parts.push("export as namespace ", path22.call(print11, "id"));
149948
149948
  return maybeAddSemicolon((0, lines_1.concat)(parts));
149949
149949
  case "ExportNamespaceSpecifier":
149950
- return (0, lines_1.concat)(["* as ", path22.call(print12, "exported")]);
149950
+ return (0, lines_1.concat)(["* as ", path22.call(print11, "exported")]);
149951
149951
  case "ExportDefaultSpecifier":
149952
- return path22.call(print12, "exported");
149952
+ return path22.call(print11, "exported");
149953
149953
  case "Import":
149954
149954
  return (0, lines_1.fromString)("import", options);
149955
149955
  case "ImportExpression":
149956
- return (0, lines_1.concat)(["import(", path22.call(print12, "source"), ")"]);
149956
+ return (0, lines_1.concat)(["import(", path22.call(print11, "source"), ")"]);
149957
149957
  case "ImportDeclaration": {
149958
149958
  parts.push("import ");
149959
149959
  if (n2.importKind && n2.importKind !== "value") {
@@ -149965,9 +149965,9 @@ var require_printer22 = __commonJS3({
149965
149965
  path22.each(function(specifierPath) {
149966
149966
  var spec = specifierPath.getValue();
149967
149967
  if (spec.type === "ImportSpecifier") {
149968
- bracedSpecifiers_1.push(print12(specifierPath));
149968
+ bracedSpecifiers_1.push(print11(specifierPath));
149969
149969
  } else if (spec.type === "ImportDefaultSpecifier" || spec.type === "ImportNamespaceSpecifier") {
149970
- unbracedSpecifiers_1.push(print12(specifierPath));
149970
+ unbracedSpecifiers_1.push(print11(specifierPath));
149971
149971
  }
149972
149972
  }, "specifiers");
149973
149973
  unbracedSpecifiers_1.forEach(function(lines2, i22) {
@@ -149997,16 +149997,16 @@ var require_printer22 = __commonJS3({
149997
149997
  }
149998
149998
  parts.push(" from ");
149999
149999
  }
150000
- parts.push(path22.call(print12, "source"), maybePrintImportAssertions(path22, options, print12), ";");
150000
+ parts.push(path22.call(print11, "source"), maybePrintImportAssertions(path22, options, print11), ";");
150001
150001
  return (0, lines_1.concat)(parts);
150002
150002
  }
150003
150003
  case "ImportAttribute":
150004
- return (0, lines_1.concat)([path22.call(print12, "key"), ": ", path22.call(print12, "value")]);
150004
+ return (0, lines_1.concat)([path22.call(print11, "key"), ": ", path22.call(print11, "value")]);
150005
150005
  case "StaticBlock":
150006
150006
  parts.push("static ");
150007
150007
  case "BlockStatement": {
150008
150008
  var naked_1 = path22.call(function(bodyPath) {
150009
- return printStatementSequence(bodyPath, options, print12);
150009
+ return printStatementSequence(bodyPath, options, print11);
150010
150010
  }, "body");
150011
150011
  if (naked_1.isEmpty()) {
150012
150012
  if (!n2.directives || n2.directives.length === 0) {
@@ -150017,7 +150017,7 @@ var require_printer22 = __commonJS3({
150017
150017
  parts.push("{\n");
150018
150018
  if (n2.directives) {
150019
150019
  path22.each(function(childPath) {
150020
- parts.push(maybeAddSemicolon(print12(childPath).indent(options.tabWidth)), n2.directives.length > 1 || !naked_1.isEmpty() ? "\n" : "");
150020
+ parts.push(maybeAddSemicolon(print11(childPath).indent(options.tabWidth)), n2.directives.length > 1 || !naked_1.isEmpty() ? "\n" : "");
150021
150021
  }, "directives");
150022
150022
  }
150023
150023
  parts.push(naked_1.indent(options.tabWidth));
@@ -150027,7 +150027,7 @@ var require_printer22 = __commonJS3({
150027
150027
  case "ReturnStatement": {
150028
150028
  parts.push("return");
150029
150029
  if (n2.argument) {
150030
- var argLines = path22.call(print12, "argument");
150030
+ var argLines = path22.call(print11, "argument");
150031
150031
  if (argLines.startsWithComment() || argLines.length > 1 && namedTypes.JSXElement && namedTypes.JSXElement.check(n2.argument)) {
150032
150032
  parts.push(" (\n", argLines.indent(options.tabWidth), "\n)");
150033
150033
  } else {
@@ -150039,17 +150039,17 @@ var require_printer22 = __commonJS3({
150039
150039
  }
150040
150040
  case "CallExpression":
150041
150041
  case "OptionalCallExpression":
150042
- parts.push(path22.call(print12, "callee"));
150042
+ parts.push(path22.call(print11, "callee"));
150043
150043
  if (n2.typeParameters) {
150044
- parts.push(path22.call(print12, "typeParameters"));
150044
+ parts.push(path22.call(print11, "typeParameters"));
150045
150045
  }
150046
150046
  if (n2.typeArguments) {
150047
- parts.push(path22.call(print12, "typeArguments"));
150047
+ parts.push(path22.call(print11, "typeArguments"));
150048
150048
  }
150049
150049
  if (types17.getFieldValue(n2, "optional")) {
150050
150050
  parts.push("?.");
150051
150051
  }
150052
- parts.push(printArgumentsList(path22, options, print12));
150052
+ parts.push(printArgumentsList(path22, options, print11));
150053
150053
  return (0, lines_1.concat)(parts);
150054
150054
  case "RecordExpression":
150055
150055
  parts.push("#");
@@ -150079,7 +150079,7 @@ var require_printer22 = __commonJS3({
150079
150079
  var i_1 = 0;
150080
150080
  fields.forEach(function(field) {
150081
150081
  path22.each(function(childPath) {
150082
- var lines2 = print12(childPath);
150082
+ var lines2 = print11(childPath);
150083
150083
  if (!oneLine_1) {
150084
150084
  lines2 = lines2.indent(options.tabWidth);
150085
150085
  }
@@ -150116,32 +150116,32 @@ var require_printer22 = __commonJS3({
150116
150116
  parts[parts.length - 1] = " " + rightBrace;
150117
150117
  }
150118
150118
  if (n2.typeAnnotation) {
150119
- parts.push(path22.call(print12, "typeAnnotation"));
150119
+ parts.push(path22.call(print11, "typeAnnotation"));
150120
150120
  }
150121
150121
  return (0, lines_1.concat)(parts);
150122
150122
  }
150123
150123
  case "PropertyPattern":
150124
150124
  return (0, lines_1.concat)([
150125
- path22.call(print12, "key"),
150125
+ path22.call(print11, "key"),
150126
150126
  ": ",
150127
- path22.call(print12, "pattern")
150127
+ path22.call(print11, "pattern")
150128
150128
  ]);
150129
150129
  case "ObjectProperty":
150130
150130
  case "Property": {
150131
150131
  if (n2.method || n2.kind === "get" || n2.kind === "set") {
150132
- return printMethod(path22, options, print12);
150132
+ return printMethod(path22, options, print11);
150133
150133
  }
150134
150134
  if (n2.shorthand && n2.value.type === "AssignmentPattern") {
150135
- return path22.call(print12, "value");
150135
+ return path22.call(print11, "value");
150136
150136
  }
150137
- var key = path22.call(print12, "key");
150137
+ var key = path22.call(print11, "key");
150138
150138
  if (n2.computed) {
150139
150139
  parts.push("[", key, "]");
150140
150140
  } else {
150141
150141
  parts.push(key);
150142
150142
  }
150143
150143
  if (!n2.shorthand || n2.key.name !== n2.value.name) {
150144
- parts.push(": ", path22.call(print12, "value"));
150144
+ parts.push(": ", path22.call(print11, "value"));
150145
150145
  }
150146
150146
  return (0, lines_1.concat)(parts);
150147
150147
  }
@@ -150149,18 +150149,18 @@ var require_printer22 = __commonJS3({
150149
150149
  case "ObjectMethod":
150150
150150
  case "ClassPrivateMethod":
150151
150151
  case "TSDeclareMethod":
150152
- return printMethod(path22, options, print12);
150152
+ return printMethod(path22, options, print11);
150153
150153
  case "PrivateName":
150154
- return (0, lines_1.concat)(["#", path22.call(print12, "id")]);
150154
+ return (0, lines_1.concat)(["#", path22.call(print11, "id")]);
150155
150155
  case "Decorator":
150156
- return (0, lines_1.concat)(["@", path22.call(print12, "expression")]);
150156
+ return (0, lines_1.concat)(["@", path22.call(print11, "expression")]);
150157
150157
  case "TupleExpression":
150158
150158
  parts.push("#");
150159
150159
  case "ArrayExpression":
150160
150160
  case "ArrayPattern": {
150161
150161
  var elems = n2.elements;
150162
150162
  var len_2 = elems.length;
150163
- var printed_1 = path22.map(print12, "elements");
150163
+ var printed_1 = path22.map(print11, "elements");
150164
150164
  var joined = (0, lines_1.fromString)(", ").join(printed_1);
150165
150165
  var oneLine_2 = joined.getLineLength(1) <= options.wrapColumn;
150166
150166
  if (oneLine_2) {
@@ -150198,12 +150198,12 @@ var require_printer22 = __commonJS3({
150198
150198
  parts.push("]");
150199
150199
  }
150200
150200
  if (n2.typeAnnotation) {
150201
- parts.push(path22.call(print12, "typeAnnotation"));
150201
+ parts.push(path22.call(print11, "typeAnnotation"));
150202
150202
  }
150203
150203
  return (0, lines_1.concat)(parts);
150204
150204
  }
150205
150205
  case "SequenceExpression":
150206
- return (0, lines_1.fromString)(", ").join(path22.map(print12, "expressions"));
150206
+ return (0, lines_1.fromString)(", ").join(path22.map(print11, "expressions"));
150207
150207
  case "ThisExpression":
150208
150208
  return (0, lines_1.fromString)("this");
150209
150209
  case "Super":
@@ -150224,7 +150224,7 @@ var require_printer22 = __commonJS3({
150224
150224
  case "Literal":
150225
150225
  return (0, lines_1.fromString)(getPossibleRaw(n2) || (typeof n2.value === "string" ? nodeStr(n2.value, options) : n2.value), options);
150226
150226
  case "Directive":
150227
- return path22.call(print12, "value");
150227
+ return path22.call(print11, "value");
150228
150228
  case "DirectiveLiteral":
150229
150229
  return (0, lines_1.fromString)(getPossibleRaw(n2) || nodeStr(n2.value, options), options);
150230
150230
  case "InterpreterDirective":
@@ -150238,32 +150238,32 @@ var require_printer22 = __commonJS3({
150238
150238
  parts.push(n2.operator);
150239
150239
  if (/[a-z]$/.test(n2.operator))
150240
150240
  parts.push(" ");
150241
- parts.push(path22.call(print12, "argument"));
150241
+ parts.push(path22.call(print11, "argument"));
150242
150242
  return (0, lines_1.concat)(parts);
150243
150243
  case "UpdateExpression":
150244
- parts.push(path22.call(print12, "argument"), n2.operator);
150244
+ parts.push(path22.call(print11, "argument"), n2.operator);
150245
150245
  if (n2.prefix)
150246
150246
  parts.reverse();
150247
150247
  return (0, lines_1.concat)(parts);
150248
150248
  case "ConditionalExpression":
150249
150249
  return (0, lines_1.concat)([
150250
- path22.call(print12, "test"),
150250
+ path22.call(print11, "test"),
150251
150251
  " ? ",
150252
- path22.call(print12, "consequent"),
150252
+ path22.call(print11, "consequent"),
150253
150253
  " : ",
150254
- path22.call(print12, "alternate")
150254
+ path22.call(print11, "alternate")
150255
150255
  ]);
150256
150256
  case "NewExpression": {
150257
- parts.push("new ", path22.call(print12, "callee"));
150257
+ parts.push("new ", path22.call(print11, "callee"));
150258
150258
  if (n2.typeParameters) {
150259
- parts.push(path22.call(print12, "typeParameters"));
150259
+ parts.push(path22.call(print11, "typeParameters"));
150260
150260
  }
150261
150261
  if (n2.typeArguments) {
150262
- parts.push(path22.call(print12, "typeArguments"));
150262
+ parts.push(path22.call(print11, "typeArguments"));
150263
150263
  }
150264
150264
  var args = n2.arguments;
150265
150265
  if (args) {
150266
- parts.push(printArgumentsList(path22, options, print12));
150266
+ parts.push(printArgumentsList(path22, options, print11));
150267
150267
  }
150268
150268
  return (0, lines_1.concat)(parts);
150269
150269
  }
@@ -150274,7 +150274,7 @@ var require_printer22 = __commonJS3({
150274
150274
  parts.push(n2.kind, " ");
150275
150275
  var maxLen_1 = 0;
150276
150276
  var printed = path22.map(function(childPath) {
150277
- var lines2 = print12(childPath);
150277
+ var lines2 = print11(childPath);
150278
150278
  maxLen_1 = Math.max(lines2.length, maxLen_1);
150279
150279
  return lines2;
150280
150280
  }, "declarations");
@@ -150293,30 +150293,30 @@ var require_printer22 = __commonJS3({
150293
150293
  }
150294
150294
  case "VariableDeclarator":
150295
150295
  return n2.init ? (0, lines_1.fromString)(" = ").join([
150296
- path22.call(print12, "id"),
150297
- path22.call(print12, "init")
150298
- ]) : path22.call(print12, "id");
150296
+ path22.call(print11, "id"),
150297
+ path22.call(print11, "init")
150298
+ ]) : path22.call(print11, "id");
150299
150299
  case "WithStatement":
150300
150300
  return (0, lines_1.concat)([
150301
150301
  "with (",
150302
- path22.call(print12, "object"),
150302
+ path22.call(print11, "object"),
150303
150303
  ") ",
150304
- path22.call(print12, "body")
150304
+ path22.call(print11, "body")
150305
150305
  ]);
150306
150306
  case "IfStatement": {
150307
- var con = adjustClause(path22.call(print12, "consequent"), options);
150308
- parts.push("if (", path22.call(print12, "test"), ")", con);
150307
+ var con = adjustClause(path22.call(print11, "consequent"), options);
150308
+ parts.push("if (", path22.call(print11, "test"), ")", con);
150309
150309
  if (n2.alternate)
150310
- parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path22.call(print12, "alternate"), options));
150310
+ parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path22.call(print11, "alternate"), options));
150311
150311
  return (0, lines_1.concat)(parts);
150312
150312
  }
150313
150313
  case "ForStatement": {
150314
- var init = path22.call(print12, "init");
150314
+ var init = path22.call(print11, "init");
150315
150315
  var sep22 = init.length > 1 ? ";\n" : "; ";
150316
150316
  var forParen = "for (";
150317
- var indented = (0, lines_1.fromString)(sep22).join([init, path22.call(print12, "test"), path22.call(print12, "update")]).indentTail(forParen.length);
150317
+ var indented = (0, lines_1.fromString)(sep22).join([init, path22.call(print11, "test"), path22.call(print11, "update")]).indentTail(forParen.length);
150318
150318
  var head = (0, lines_1.concat)([forParen, indented, ")"]);
150319
- var clause = adjustClause(path22.call(print12, "body"), options);
150319
+ var clause = adjustClause(path22.call(print11, "body"), options);
150320
150320
  parts.push(head);
150321
150321
  if (head.length > 1) {
150322
150322
  parts.push("\n");
@@ -150328,18 +150328,18 @@ var require_printer22 = __commonJS3({
150328
150328
  case "WhileStatement":
150329
150329
  return (0, lines_1.concat)([
150330
150330
  "while (",
150331
- path22.call(print12, "test"),
150331
+ path22.call(print11, "test"),
150332
150332
  ")",
150333
- adjustClause(path22.call(print12, "body"), options)
150333
+ adjustClause(path22.call(print11, "body"), options)
150334
150334
  ]);
150335
150335
  case "ForInStatement":
150336
150336
  return (0, lines_1.concat)([
150337
150337
  n2.each ? "for each (" : "for (",
150338
- path22.call(print12, "left"),
150338
+ path22.call(print11, "left"),
150339
150339
  " in ",
150340
- path22.call(print12, "right"),
150340
+ path22.call(print11, "right"),
150341
150341
  ")",
150342
- adjustClause(path22.call(print12, "body"), options)
150342
+ adjustClause(path22.call(print11, "body"), options)
150343
150343
  ]);
150344
150344
  case "ForOfStatement":
150345
150345
  case "ForAwaitStatement":
@@ -150347,122 +150347,122 @@ var require_printer22 = __commonJS3({
150347
150347
  if (n2.await || n2.type === "ForAwaitStatement") {
150348
150348
  parts.push("await ");
150349
150349
  }
150350
- parts.push("(", path22.call(print12, "left"), " of ", path22.call(print12, "right"), ")", adjustClause(path22.call(print12, "body"), options));
150350
+ parts.push("(", path22.call(print11, "left"), " of ", path22.call(print11, "right"), ")", adjustClause(path22.call(print11, "body"), options));
150351
150351
  return (0, lines_1.concat)(parts);
150352
150352
  case "DoWhileStatement": {
150353
150353
  var doBody = (0, lines_1.concat)([
150354
150354
  "do",
150355
- adjustClause(path22.call(print12, "body"), options)
150355
+ adjustClause(path22.call(print11, "body"), options)
150356
150356
  ]);
150357
150357
  parts.push(doBody);
150358
150358
  if (endsWithBrace(doBody))
150359
150359
  parts.push(" while");
150360
150360
  else
150361
150361
  parts.push("\nwhile");
150362
- parts.push(" (", path22.call(print12, "test"), ");");
150362
+ parts.push(" (", path22.call(print11, "test"), ");");
150363
150363
  return (0, lines_1.concat)(parts);
150364
150364
  }
150365
150365
  case "DoExpression": {
150366
150366
  var statements = path22.call(function(bodyPath) {
150367
- return printStatementSequence(bodyPath, options, print12);
150367
+ return printStatementSequence(bodyPath, options, print11);
150368
150368
  }, "body");
150369
150369
  return (0, lines_1.concat)(["do {\n", statements.indent(options.tabWidth), "\n}"]);
150370
150370
  }
150371
150371
  case "BreakStatement":
150372
150372
  parts.push("break");
150373
150373
  if (n2.label)
150374
- parts.push(" ", path22.call(print12, "label"));
150374
+ parts.push(" ", path22.call(print11, "label"));
150375
150375
  parts.push(";");
150376
150376
  return (0, lines_1.concat)(parts);
150377
150377
  case "ContinueStatement":
150378
150378
  parts.push("continue");
150379
150379
  if (n2.label)
150380
- parts.push(" ", path22.call(print12, "label"));
150380
+ parts.push(" ", path22.call(print11, "label"));
150381
150381
  parts.push(";");
150382
150382
  return (0, lines_1.concat)(parts);
150383
150383
  case "LabeledStatement":
150384
150384
  return (0, lines_1.concat)([
150385
- path22.call(print12, "label"),
150385
+ path22.call(print11, "label"),
150386
150386
  ":\n",
150387
- path22.call(print12, "body")
150387
+ path22.call(print11, "body")
150388
150388
  ]);
150389
150389
  case "TryStatement":
150390
- parts.push("try ", path22.call(print12, "block"));
150390
+ parts.push("try ", path22.call(print11, "block"));
150391
150391
  if (n2.handler) {
150392
- parts.push(" ", path22.call(print12, "handler"));
150392
+ parts.push(" ", path22.call(print11, "handler"));
150393
150393
  } else if (n2.handlers) {
150394
150394
  path22.each(function(handlerPath) {
150395
- parts.push(" ", print12(handlerPath));
150395
+ parts.push(" ", print11(handlerPath));
150396
150396
  }, "handlers");
150397
150397
  }
150398
150398
  if (n2.finalizer) {
150399
- parts.push(" finally ", path22.call(print12, "finalizer"));
150399
+ parts.push(" finally ", path22.call(print11, "finalizer"));
150400
150400
  }
150401
150401
  return (0, lines_1.concat)(parts);
150402
150402
  case "CatchClause":
150403
150403
  parts.push("catch ");
150404
150404
  if (n2.param) {
150405
- parts.push("(", path22.call(print12, "param"));
150405
+ parts.push("(", path22.call(print11, "param"));
150406
150406
  }
150407
150407
  if (n2.guard) {
150408
- parts.push(" if ", path22.call(print12, "guard"));
150408
+ parts.push(" if ", path22.call(print11, "guard"));
150409
150409
  }
150410
150410
  if (n2.param) {
150411
150411
  parts.push(") ");
150412
150412
  }
150413
- parts.push(path22.call(print12, "body"));
150413
+ parts.push(path22.call(print11, "body"));
150414
150414
  return (0, lines_1.concat)(parts);
150415
150415
  case "ThrowStatement":
150416
- return (0, lines_1.concat)(["throw ", path22.call(print12, "argument"), ";"]);
150416
+ return (0, lines_1.concat)(["throw ", path22.call(print11, "argument"), ";"]);
150417
150417
  case "SwitchStatement":
150418
150418
  return (0, lines_1.concat)([
150419
150419
  "switch (",
150420
- path22.call(print12, "discriminant"),
150420
+ path22.call(print11, "discriminant"),
150421
150421
  ") {\n",
150422
- (0, lines_1.fromString)("\n").join(path22.map(print12, "cases")),
150422
+ (0, lines_1.fromString)("\n").join(path22.map(print11, "cases")),
150423
150423
  "\n}"
150424
150424
  ]);
150425
150425
  case "SwitchCase":
150426
150426
  if (n2.test)
150427
- parts.push("case ", path22.call(print12, "test"), ":");
150427
+ parts.push("case ", path22.call(print11, "test"), ":");
150428
150428
  else
150429
150429
  parts.push("default:");
150430
150430
  if (n2.consequent.length > 0) {
150431
150431
  parts.push("\n", path22.call(function(consequentPath) {
150432
- return printStatementSequence(consequentPath, options, print12);
150432
+ return printStatementSequence(consequentPath, options, print11);
150433
150433
  }, "consequent").indent(options.tabWidth));
150434
150434
  }
150435
150435
  return (0, lines_1.concat)(parts);
150436
150436
  case "DebuggerStatement":
150437
150437
  return (0, lines_1.fromString)("debugger;");
150438
150438
  case "JSXAttribute":
150439
- parts.push(path22.call(print12, "name"));
150439
+ parts.push(path22.call(print11, "name"));
150440
150440
  if (n2.value)
150441
- parts.push("=", path22.call(print12, "value"));
150441
+ parts.push("=", path22.call(print11, "value"));
150442
150442
  return (0, lines_1.concat)(parts);
150443
150443
  case "JSXIdentifier":
150444
150444
  return (0, lines_1.fromString)(n2.name, options);
150445
150445
  case "JSXNamespacedName":
150446
150446
  return (0, lines_1.fromString)(":").join([
150447
- path22.call(print12, "namespace"),
150448
- path22.call(print12, "name")
150447
+ path22.call(print11, "namespace"),
150448
+ path22.call(print11, "name")
150449
150449
  ]);
150450
150450
  case "JSXMemberExpression":
150451
150451
  return (0, lines_1.fromString)(".").join([
150452
- path22.call(print12, "object"),
150453
- path22.call(print12, "property")
150452
+ path22.call(print11, "object"),
150453
+ path22.call(print11, "property")
150454
150454
  ]);
150455
150455
  case "JSXSpreadAttribute":
150456
- return (0, lines_1.concat)(["{...", path22.call(print12, "argument"), "}"]);
150456
+ return (0, lines_1.concat)(["{...", path22.call(print11, "argument"), "}"]);
150457
150457
  case "JSXSpreadChild":
150458
- return (0, lines_1.concat)(["{...", path22.call(print12, "expression"), "}"]);
150458
+ return (0, lines_1.concat)(["{...", path22.call(print11, "expression"), "}"]);
150459
150459
  case "JSXExpressionContainer":
150460
- return (0, lines_1.concat)(["{", path22.call(print12, "expression"), "}"]);
150460
+ return (0, lines_1.concat)(["{", path22.call(print11, "expression"), "}"]);
150461
150461
  case "JSXElement":
150462
150462
  case "JSXFragment": {
150463
150463
  var openingPropName = "opening" + (n2.type === "JSXElement" ? "Element" : "Fragment");
150464
150464
  var closingPropName = "closing" + (n2.type === "JSXElement" ? "Element" : "Fragment");
150465
- var openingLines = path22.call(print12, openingPropName);
150465
+ var openingLines = path22.call(print11, openingPropName);
150466
150466
  if (n2[openingPropName].selfClosing) {
150467
150467
  assert_1.default.ok(!n2[closingPropName], "unexpected " + closingPropName + " element in self-closing " + n2.type);
150468
150468
  return openingLines;
@@ -150476,16 +150476,16 @@ var require_printer22 = __commonJS3({
150476
150476
  return "\n";
150477
150477
  }
150478
150478
  }
150479
- return print12(childPath);
150479
+ return print11(childPath);
150480
150480
  }, "children")).indentTail(options.tabWidth);
150481
- var closingLines = path22.call(print12, closingPropName);
150481
+ var closingLines = path22.call(print11, closingPropName);
150482
150482
  return (0, lines_1.concat)([openingLines, childLines, closingLines]);
150483
150483
  }
150484
150484
  case "JSXOpeningElement": {
150485
- parts.push("<", path22.call(print12, "name"));
150485
+ parts.push("<", path22.call(print11, "name"));
150486
150486
  var attrParts_1 = [];
150487
150487
  path22.each(function(attrPath) {
150488
- attrParts_1.push(" ", print12(attrPath));
150488
+ attrParts_1.push(" ", print11(attrPath));
150489
150489
  }, "attributes");
150490
150490
  var attrLines = (0, lines_1.concat)(attrParts_1);
150491
150491
  var needLineWrap = attrLines.length > 1 || attrLines.getLineLength(1) > options.wrapColumn;
@@ -150502,7 +150502,7 @@ var require_printer22 = __commonJS3({
150502
150502
  return (0, lines_1.concat)(parts);
150503
150503
  }
150504
150504
  case "JSXClosingElement":
150505
- return (0, lines_1.concat)(["</", path22.call(print12, "name"), ">"]);
150505
+ return (0, lines_1.concat)(["</", path22.call(print11, "name"), ">"]);
150506
150506
  case "JSXOpeningFragment":
150507
150507
  return (0, lines_1.fromString)("<>");
150508
150508
  case "JSXClosingFragment":
@@ -150513,9 +150513,9 @@ var require_printer22 = __commonJS3({
150513
150513
  return (0, lines_1.fromString)("");
150514
150514
  case "TypeAnnotatedIdentifier":
150515
150515
  return (0, lines_1.concat)([
150516
- path22.call(print12, "annotation"),
150516
+ path22.call(print11, "annotation"),
150517
150517
  " ",
150518
- path22.call(print12, "identifier")
150518
+ path22.call(print11, "identifier")
150519
150519
  ]);
150520
150520
  case "ClassBody":
150521
150521
  if (n2.body.length === 0) {
@@ -150524,12 +150524,12 @@ var require_printer22 = __commonJS3({
150524
150524
  return (0, lines_1.concat)([
150525
150525
  "{\n",
150526
150526
  path22.call(function(bodyPath) {
150527
- return printStatementSequence(bodyPath, options, print12);
150527
+ return printStatementSequence(bodyPath, options, print11);
150528
150528
  }, "body").indent(options.tabWidth),
150529
150529
  "\n}"
150530
150530
  ]);
150531
150531
  case "ClassPropertyDefinition":
150532
- parts.push("static ", path22.call(print12, "definition"));
150532
+ parts.push("static ", path22.call(print11, "definition"));
150533
150533
  if (!namedTypes.MethodDefinition.check(n2.definition))
150534
150534
  parts.push(";");
150535
150535
  return (0, lines_1.concat)(parts);
@@ -150550,12 +150550,12 @@ var require_printer22 = __commonJS3({
150550
150550
  if (n2.readonly) {
150551
150551
  parts.push("readonly ");
150552
150552
  }
150553
- var key = path22.call(print12, "key");
150553
+ var key = path22.call(print11, "key");
150554
150554
  if (n2.computed) {
150555
150555
  key = (0, lines_1.concat)(["[", key, "]"]);
150556
150556
  }
150557
150557
  if (n2.variance) {
150558
- key = (0, lines_1.concat)([printVariance(path22, print12), key]);
150558
+ key = (0, lines_1.concat)([printVariance(path22, print11), key]);
150559
150559
  }
150560
150560
  parts.push(key);
150561
150561
  if (n2.optional) {
@@ -150565,10 +150565,10 @@ var require_printer22 = __commonJS3({
150565
150565
  parts.push("!");
150566
150566
  }
150567
150567
  if (n2.typeAnnotation) {
150568
- parts.push(path22.call(print12, "typeAnnotation"));
150568
+ parts.push(path22.call(print11, "typeAnnotation"));
150569
150569
  }
150570
150570
  if (n2.value) {
150571
- parts.push(" = ", path22.call(print12, "value"));
150571
+ parts.push(" = ", path22.call(print11, "value"));
150572
150572
  }
150573
150573
  parts.push(";");
150574
150574
  return (0, lines_1.concat)(parts);
@@ -150577,21 +150577,21 @@ var require_printer22 = __commonJS3({
150577
150577
  if (n2.static) {
150578
150578
  parts.push("static ");
150579
150579
  }
150580
- parts.push(path22.call(print12, "key"));
150580
+ parts.push(path22.call(print11, "key"));
150581
150581
  if (n2.typeAnnotation) {
150582
- parts.push(path22.call(print12, "typeAnnotation"));
150582
+ parts.push(path22.call(print11, "typeAnnotation"));
150583
150583
  }
150584
150584
  if (n2.value) {
150585
- parts.push(" = ", path22.call(print12, "value"));
150585
+ parts.push(" = ", path22.call(print11, "value"));
150586
150586
  }
150587
150587
  parts.push(";");
150588
150588
  return (0, lines_1.concat)(parts);
150589
150589
  case "ClassAccessorProperty": {
150590
150590
  parts.push.apply(parts, tslib_1.__spreadArray(tslib_1.__spreadArray([], printClassMemberModifiers(n2), false), ["accessor "], false));
150591
150591
  if (n2.computed) {
150592
- parts.push("[", path22.call(print12, "key"), "]");
150592
+ parts.push("[", path22.call(print11, "key"), "]");
150593
150593
  } else {
150594
- parts.push(path22.call(print12, "key"));
150594
+ parts.push(path22.call(print11, "key"));
150595
150595
  }
150596
150596
  if (n2.optional) {
150597
150597
  parts.push("?");
@@ -150600,10 +150600,10 @@ var require_printer22 = __commonJS3({
150600
150600
  parts.push("!");
150601
150601
  }
150602
150602
  if (n2.typeAnnotation) {
150603
- parts.push(path22.call(print12, "typeAnnotation"));
150603
+ parts.push(path22.call(print11, "typeAnnotation"));
150604
150604
  }
150605
150605
  if (n2.value) {
150606
- parts.push(" = ", path22.call(print12, "value"));
150606
+ parts.push(" = ", path22.call(print11, "value"));
150607
150607
  }
150608
150608
  parts.push(";");
150609
150609
  return (0, lines_1.concat)(parts);
@@ -150619,21 +150619,21 @@ var require_printer22 = __commonJS3({
150619
150619
  }
150620
150620
  parts.push("class");
150621
150621
  if (n2.id) {
150622
- parts.push(" ", path22.call(print12, "id"));
150622
+ parts.push(" ", path22.call(print11, "id"));
150623
150623
  }
150624
150624
  if (n2.typeParameters) {
150625
- parts.push(path22.call(print12, "typeParameters"));
150625
+ parts.push(path22.call(print11, "typeParameters"));
150626
150626
  }
150627
150627
  if (n2.superClass) {
150628
- parts.push(" extends ", path22.call(print12, "superClass"), path22.call(print12, "superTypeParameters"));
150628
+ parts.push(" extends ", path22.call(print11, "superClass"), path22.call(print11, "superTypeParameters"));
150629
150629
  }
150630
150630
  if (n2.extends && n2.extends.length > 0) {
150631
- parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print12, "extends")));
150631
+ parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print11, "extends")));
150632
150632
  }
150633
150633
  if (n2["implements"] && n2["implements"].length > 0) {
150634
- parts.push(" implements ", (0, lines_1.fromString)(", ").join(path22.map(print12, "implements")));
150634
+ parts.push(" implements ", (0, lines_1.fromString)(", ").join(path22.map(print11, "implements")));
150635
150635
  }
150636
- parts.push(" ", path22.call(print12, "body"));
150636
+ parts.push(" ", path22.call(print11, "body"));
150637
150637
  if (n2.type === "DeclareClass") {
150638
150638
  return printFlowDeclaration(path22, parts);
150639
150639
  } else {
@@ -150642,11 +150642,11 @@ var require_printer22 = __commonJS3({
150642
150642
  case "TemplateElement":
150643
150643
  return (0, lines_1.fromString)(n2.value.raw, options).lockIndentTail();
150644
150644
  case "TemplateLiteral": {
150645
- var expressions_1 = path22.map(print12, "expressions");
150645
+ var expressions_1 = path22.map(print11, "expressions");
150646
150646
  parts.push("`");
150647
150647
  path22.each(function(childPath) {
150648
150648
  var i22 = childPath.getName();
150649
- parts.push(print12(childPath));
150649
+ parts.push(print11(childPath));
150650
150650
  if (i22 < expressions_1.length) {
150651
150651
  parts.push("${", expressions_1[i22], "}");
150652
150652
  }
@@ -150655,7 +150655,7 @@ var require_printer22 = __commonJS3({
150655
150655
  return (0, lines_1.concat)(parts).lockIndentTail();
150656
150656
  }
150657
150657
  case "TaggedTemplateExpression":
150658
- return (0, lines_1.concat)([path22.call(print12, "tag"), path22.call(print12, "quasi")]);
150658
+ return (0, lines_1.concat)([path22.call(print11, "tag"), path22.call(print11, "quasi")]);
150659
150659
  case "Node":
150660
150660
  case "Printable":
150661
150661
  case "SourceLocation":
@@ -150689,7 +150689,7 @@ var require_printer22 = __commonJS3({
150689
150689
  if (n2.typeAnnotation.type !== "FunctionTypeAnnotation") {
150690
150690
  parts.push(": ");
150691
150691
  }
150692
- parts.push(path22.call(print12, "typeAnnotation"));
150692
+ parts.push(path22.call(print11, "typeAnnotation"));
150693
150693
  return (0, lines_1.concat)(parts);
150694
150694
  }
150695
150695
  return (0, lines_1.fromString)("");
@@ -150703,9 +150703,9 @@ var require_printer22 = __commonJS3({
150703
150703
  case "MixedTypeAnnotation":
150704
150704
  return (0, lines_1.fromString)("mixed", options);
150705
150705
  case "ArrayTypeAnnotation":
150706
- return (0, lines_1.concat)([path22.call(print12, "elementType"), "[]"]);
150706
+ return (0, lines_1.concat)([path22.call(print11, "elementType"), "[]"]);
150707
150707
  case "TupleTypeAnnotation": {
150708
- var printed_2 = path22.map(print12, "types");
150708
+ var printed_2 = path22.map(print11, "types");
150709
150709
  var joined = (0, lines_1.fromString)(", ").join(printed_2);
150710
150710
  var oneLine_3 = joined.getLineLength(1) <= options.wrapColumn;
150711
150711
  if (oneLine_3) {
@@ -150752,38 +150752,38 @@ var require_printer22 = __commonJS3({
150752
150752
  case "InterfaceTypeAnnotation":
150753
150753
  parts.push("interface");
150754
150754
  if (n2.extends && n2.extends.length > 0) {
150755
- parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print12, "extends")));
150755
+ parts.push(" extends ", (0, lines_1.fromString)(", ").join(path22.map(print11, "extends")));
150756
150756
  }
150757
- parts.push(" ", path22.call(print12, "body"));
150757
+ parts.push(" ", path22.call(print11, "body"));
150758
150758
  return (0, lines_1.concat)(parts);
150759
150759
  case "DeclareFunction":
150760
150760
  return printFlowDeclaration(path22, [
150761
150761
  "function ",
150762
- path22.call(print12, "id"),
150762
+ path22.call(print11, "id"),
150763
150763
  ";"
150764
150764
  ]);
150765
150765
  case "DeclareModule":
150766
150766
  return printFlowDeclaration(path22, [
150767
150767
  "module ",
150768
- path22.call(print12, "id"),
150768
+ path22.call(print11, "id"),
150769
150769
  " ",
150770
- path22.call(print12, "body")
150770
+ path22.call(print11, "body")
150771
150771
  ]);
150772
150772
  case "DeclareModuleExports":
150773
150773
  return printFlowDeclaration(path22, [
150774
150774
  "module.exports",
150775
- path22.call(print12, "typeAnnotation")
150775
+ path22.call(print11, "typeAnnotation")
150776
150776
  ]);
150777
150777
  case "DeclareVariable":
150778
- return printFlowDeclaration(path22, ["var ", path22.call(print12, "id"), ";"]);
150778
+ return printFlowDeclaration(path22, ["var ", path22.call(print11, "id"), ";"]);
150779
150779
  case "DeclareExportDeclaration":
150780
150780
  case "DeclareExportAllDeclaration":
150781
- return (0, lines_1.concat)(["declare ", printExportDeclaration(path22, options, print12)]);
150781
+ return (0, lines_1.concat)(["declare ", printExportDeclaration(path22, options, print11)]);
150782
150782
  case "EnumDeclaration":
150783
150783
  return (0, lines_1.concat)([
150784
150784
  "enum ",
150785
- path22.call(print12, "id"),
150786
- path22.call(print12, "body")
150785
+ path22.call(print11, "id"),
150786
+ path22.call(print11, "body")
150787
150787
  ]);
150788
150788
  case "EnumBooleanBody":
150789
150789
  case "EnumNumberBody":
@@ -150795,24 +150795,24 @@ var require_printer22 = __commonJS3({
150795
150795
  n2.type.slice(4, -4).toLowerCase()
150796
150796
  );
150797
150797
  }
150798
- parts.push(" {\n", (0, lines_1.fromString)("\n").join(path22.map(print12, "members")).indent(options.tabWidth), "\n}");
150798
+ parts.push(" {\n", (0, lines_1.fromString)("\n").join(path22.map(print11, "members")).indent(options.tabWidth), "\n}");
150799
150799
  return (0, lines_1.concat)(parts);
150800
150800
  }
150801
150801
  case "EnumDefaultedMember":
150802
- return (0, lines_1.concat)([path22.call(print12, "id"), ","]);
150802
+ return (0, lines_1.concat)([path22.call(print11, "id"), ","]);
150803
150803
  case "EnumBooleanMember":
150804
150804
  case "EnumNumberMember":
150805
150805
  case "EnumStringMember":
150806
150806
  return (0, lines_1.concat)([
150807
- path22.call(print12, "id"),
150807
+ path22.call(print11, "id"),
150808
150808
  " = ",
150809
- path22.call(print12, "init"),
150809
+ path22.call(print11, "init"),
150810
150810
  ","
150811
150811
  ]);
150812
150812
  case "InferredPredicate":
150813
150813
  return (0, lines_1.fromString)("%checks", options);
150814
150814
  case "DeclaredPredicate":
150815
- return (0, lines_1.concat)(["%checks(", path22.call(print12, "value"), ")"]);
150815
+ return (0, lines_1.concat)(["%checks(", path22.call(print11, "value"), ")"]);
150816
150816
  case "FunctionTypeAnnotation": {
150817
150817
  var parent = path22.getParentNode(0);
150818
150818
  var isArrowFunctionTypeAnnotation = !(namedTypes.ObjectTypeCallProperty.check(parent) || namedTypes.ObjectTypeInternalSlot.check(parent) && parent.method || namedTypes.DeclareFunction.check(path22.getParentNode(2)));
@@ -150822,14 +150822,14 @@ var require_printer22 = __commonJS3({
150822
150822
  }
150823
150823
  var hasTypeParameters = !!n2.typeParameters;
150824
150824
  var needsParens = hasTypeParameters || n2.params.length !== 1 || n2.params[0].name;
150825
- parts.push(hasTypeParameters ? path22.call(print12, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path22, options, print12), needsParens ? ")" : "");
150825
+ parts.push(hasTypeParameters ? path22.call(print11, "typeParameters") : "", needsParens ? "(" : "", printFunctionParams(path22, options, print11), needsParens ? ")" : "");
150826
150826
  if (n2.returnType) {
150827
- parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path22.call(print12, "returnType"));
150827
+ parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path22.call(print11, "returnType"));
150828
150828
  }
150829
150829
  return (0, lines_1.concat)(parts);
150830
150830
  }
150831
150831
  case "FunctionTypeParam": {
150832
- var name = path22.call(print12, "name");
150832
+ var name = path22.call(print11, "name");
150833
150833
  parts.push(name);
150834
150834
  if (n2.optional) {
150835
150835
  parts.push("?");
@@ -150837,13 +150837,13 @@ var require_printer22 = __commonJS3({
150837
150837
  if (name.infos[0].line) {
150838
150838
  parts.push(": ");
150839
150839
  }
150840
- parts.push(path22.call(print12, "typeAnnotation"));
150840
+ parts.push(path22.call(print11, "typeAnnotation"));
150841
150841
  return (0, lines_1.concat)(parts);
150842
150842
  }
150843
150843
  case "GenericTypeAnnotation":
150844
150844
  return (0, lines_1.concat)([
150845
- path22.call(print12, "id"),
150846
- path22.call(print12, "typeParameters")
150845
+ path22.call(print11, "id"),
150846
+ path22.call(print11, "typeParameters")
150847
150847
  ]);
150848
150848
  case "DeclareInterface":
150849
150849
  parts.push("declare ");
@@ -150852,24 +150852,24 @@ var require_printer22 = __commonJS3({
150852
150852
  if (n2.declare) {
150853
150853
  parts.push("declare ");
150854
150854
  }
150855
- parts.push("interface ", path22.call(print12, "id"), path22.call(print12, "typeParameters"), " ");
150855
+ parts.push("interface ", path22.call(print11, "id"), path22.call(print11, "typeParameters"), " ");
150856
150856
  if (n2["extends"] && n2["extends"].length > 0) {
150857
- parts.push("extends ", (0, lines_1.fromString)(", ").join(path22.map(print12, "extends")), " ");
150857
+ parts.push("extends ", (0, lines_1.fromString)(", ").join(path22.map(print11, "extends")), " ");
150858
150858
  }
150859
150859
  if (n2.body) {
150860
- parts.push(path22.call(print12, "body"));
150860
+ parts.push(path22.call(print11, "body"));
150861
150861
  }
150862
150862
  return (0, lines_1.concat)(parts);
150863
150863
  case "ClassImplements":
150864
150864
  case "InterfaceExtends":
150865
150865
  return (0, lines_1.concat)([
150866
- path22.call(print12, "id"),
150867
- path22.call(print12, "typeParameters")
150866
+ path22.call(print11, "id"),
150867
+ path22.call(print11, "typeParameters")
150868
150868
  ]);
150869
150869
  case "IntersectionTypeAnnotation":
150870
- return (0, lines_1.fromString)(" & ").join(path22.map(print12, "types"));
150870
+ return (0, lines_1.fromString)(" & ").join(path22.map(print11, "types"));
150871
150871
  case "NullableTypeAnnotation":
150872
- return (0, lines_1.concat)(["?", path22.call(print12, "typeAnnotation")]);
150872
+ return (0, lines_1.concat)(["?", path22.call(print11, "typeAnnotation")]);
150873
150873
  case "NullLiteralTypeAnnotation":
150874
150874
  return (0, lines_1.fromString)("null", options);
150875
150875
  case "ThisTypeAnnotation":
@@ -150877,40 +150877,40 @@ var require_printer22 = __commonJS3({
150877
150877
  case "NumberTypeAnnotation":
150878
150878
  return (0, lines_1.fromString)("number", options);
150879
150879
  case "ObjectTypeCallProperty":
150880
- return path22.call(print12, "value");
150880
+ return path22.call(print11, "value");
150881
150881
  case "ObjectTypeIndexer":
150882
150882
  if (n2.static) {
150883
150883
  parts.push("static ");
150884
150884
  }
150885
- parts.push(printVariance(path22, print12), "[");
150885
+ parts.push(printVariance(path22, print11), "[");
150886
150886
  if (n2.id) {
150887
- parts.push(path22.call(print12, "id"), ": ");
150887
+ parts.push(path22.call(print11, "id"), ": ");
150888
150888
  }
150889
- parts.push(path22.call(print12, "key"), "]: ", path22.call(print12, "value"));
150889
+ parts.push(path22.call(print11, "key"), "]: ", path22.call(print11, "value"));
150890
150890
  return (0, lines_1.concat)(parts);
150891
150891
  case "ObjectTypeProperty":
150892
150892
  return (0, lines_1.concat)([
150893
- printVariance(path22, print12),
150894
- path22.call(print12, "key"),
150893
+ printVariance(path22, print11),
150894
+ path22.call(print11, "key"),
150895
150895
  n2.optional ? "?" : "",
150896
150896
  ": ",
150897
- path22.call(print12, "value")
150897
+ path22.call(print11, "value")
150898
150898
  ]);
150899
150899
  case "ObjectTypeInternalSlot":
150900
150900
  return (0, lines_1.concat)([
150901
150901
  n2.static ? "static " : "",
150902
150902
  "[[",
150903
- path22.call(print12, "id"),
150903
+ path22.call(print11, "id"),
150904
150904
  "]]",
150905
150905
  n2.optional ? "?" : "",
150906
150906
  n2.value.type !== "FunctionTypeAnnotation" ? ": " : "",
150907
- path22.call(print12, "value")
150907
+ path22.call(print11, "value")
150908
150908
  ]);
150909
150909
  case "QualifiedTypeIdentifier":
150910
150910
  return (0, lines_1.concat)([
150911
- path22.call(print12, "qualification"),
150911
+ path22.call(print11, "qualification"),
150912
150912
  ".",
150913
- path22.call(print12, "id")
150913
+ path22.call(print11, "id")
150914
150914
  ]);
150915
150915
  case "StringLiteralTypeAnnotation":
150916
150916
  return (0, lines_1.fromString)(nodeStr(n2.value, options), options);
@@ -150927,36 +150927,36 @@ var require_printer22 = __commonJS3({
150927
150927
  case "TypeAlias":
150928
150928
  return (0, lines_1.concat)([
150929
150929
  "type ",
150930
- path22.call(print12, "id"),
150931
- path22.call(print12, "typeParameters"),
150930
+ path22.call(print11, "id"),
150931
+ path22.call(print11, "typeParameters"),
150932
150932
  " = ",
150933
- path22.call(print12, "right"),
150933
+ path22.call(print11, "right"),
150934
150934
  ";"
150935
150935
  ]);
150936
150936
  case "DeclareOpaqueType":
150937
150937
  parts.push("declare ");
150938
150938
  case "OpaqueType":
150939
- parts.push("opaque type ", path22.call(print12, "id"), path22.call(print12, "typeParameters"));
150939
+ parts.push("opaque type ", path22.call(print11, "id"), path22.call(print11, "typeParameters"));
150940
150940
  if (n2["supertype"]) {
150941
- parts.push(": ", path22.call(print12, "supertype"));
150941
+ parts.push(": ", path22.call(print11, "supertype"));
150942
150942
  }
150943
150943
  if (n2["impltype"]) {
150944
- parts.push(" = ", path22.call(print12, "impltype"));
150944
+ parts.push(" = ", path22.call(print11, "impltype"));
150945
150945
  }
150946
150946
  parts.push(";");
150947
150947
  return (0, lines_1.concat)(parts);
150948
150948
  case "TypeCastExpression":
150949
150949
  return (0, lines_1.concat)([
150950
150950
  "(",
150951
- path22.call(print12, "expression"),
150952
- path22.call(print12, "typeAnnotation"),
150951
+ path22.call(print11, "expression"),
150952
+ path22.call(print11, "typeAnnotation"),
150953
150953
  ")"
150954
150954
  ]);
150955
150955
  case "TypeParameterDeclaration":
150956
150956
  case "TypeParameterInstantiation":
150957
150957
  return (0, lines_1.concat)([
150958
150958
  "<",
150959
- (0, lines_1.fromString)(", ").join(path22.map(print12, "params")),
150959
+ (0, lines_1.fromString)(", ").join(path22.map(print11, "params")),
150960
150960
  ">"
150961
150961
  ]);
150962
150962
  case "Variance":
@@ -150969,32 +150969,32 @@ var require_printer22 = __commonJS3({
150969
150969
  return (0, lines_1.fromString)("");
150970
150970
  case "TypeParameter":
150971
150971
  if (n2.variance) {
150972
- parts.push(printVariance(path22, print12));
150972
+ parts.push(printVariance(path22, print11));
150973
150973
  }
150974
- parts.push(path22.call(print12, "name"));
150974
+ parts.push(path22.call(print11, "name"));
150975
150975
  if (n2.bound) {
150976
- parts.push(path22.call(print12, "bound"));
150976
+ parts.push(path22.call(print11, "bound"));
150977
150977
  }
150978
150978
  if (n2["default"]) {
150979
- parts.push("=", path22.call(print12, "default"));
150979
+ parts.push("=", path22.call(print11, "default"));
150980
150980
  }
150981
150981
  return (0, lines_1.concat)(parts);
150982
150982
  case "TypeofTypeAnnotation":
150983
150983
  return (0, lines_1.concat)([
150984
150984
  (0, lines_1.fromString)("typeof ", options),
150985
- path22.call(print12, "argument")
150985
+ path22.call(print11, "argument")
150986
150986
  ]);
150987
150987
  case "IndexedAccessType":
150988
150988
  case "OptionalIndexedAccessType":
150989
150989
  return (0, lines_1.concat)([
150990
- path22.call(print12, "objectType"),
150990
+ path22.call(print11, "objectType"),
150991
150991
  n2.optional ? "?." : "",
150992
150992
  "[",
150993
- path22.call(print12, "indexType"),
150993
+ path22.call(print11, "indexType"),
150994
150994
  "]"
150995
150995
  ]);
150996
150996
  case "UnionTypeAnnotation":
150997
- return (0, lines_1.fromString)(" | ").join(path22.map(print12, "types"));
150997
+ return (0, lines_1.fromString)(" | ").join(path22.map(print11, "types"));
150998
150998
  case "VoidTypeAnnotation":
150999
150999
  return (0, lines_1.fromString)("void", options);
151000
151000
  case "NullTypeAnnotation":
@@ -151034,77 +151034,77 @@ var require_printer22 = __commonJS3({
151034
151034
  case "TSNeverKeyword":
151035
151035
  return (0, lines_1.fromString)("never", options);
151036
151036
  case "TSArrayType":
151037
- return (0, lines_1.concat)([path22.call(print12, "elementType"), "[]"]);
151037
+ return (0, lines_1.concat)([path22.call(print11, "elementType"), "[]"]);
151038
151038
  case "TSLiteralType":
151039
- return path22.call(print12, "literal");
151039
+ return path22.call(print11, "literal");
151040
151040
  case "TSUnionType":
151041
- return (0, lines_1.fromString)(" | ").join(path22.map(print12, "types"));
151041
+ return (0, lines_1.fromString)(" | ").join(path22.map(print11, "types"));
151042
151042
  case "TSIntersectionType":
151043
- return (0, lines_1.fromString)(" & ").join(path22.map(print12, "types"));
151043
+ return (0, lines_1.fromString)(" & ").join(path22.map(print11, "types"));
151044
151044
  case "TSConditionalType":
151045
- parts.push(path22.call(print12, "checkType"), " extends ", path22.call(print12, "extendsType"), " ? ", path22.call(print12, "trueType"), " : ", path22.call(print12, "falseType"));
151045
+ parts.push(path22.call(print11, "checkType"), " extends ", path22.call(print11, "extendsType"), " ? ", path22.call(print11, "trueType"), " : ", path22.call(print11, "falseType"));
151046
151046
  return (0, lines_1.concat)(parts);
151047
151047
  case "TSInferType":
151048
- parts.push("infer ", path22.call(print12, "typeParameter"));
151048
+ parts.push("infer ", path22.call(print11, "typeParameter"));
151049
151049
  return (0, lines_1.concat)(parts);
151050
151050
  case "TSParenthesizedType":
151051
- return (0, lines_1.concat)(["(", path22.call(print12, "typeAnnotation"), ")"]);
151051
+ return (0, lines_1.concat)(["(", path22.call(print11, "typeAnnotation"), ")"]);
151052
151052
  case "TSFunctionType":
151053
151053
  return (0, lines_1.concat)([
151054
- path22.call(print12, "typeParameters"),
151054
+ path22.call(print11, "typeParameters"),
151055
151055
  "(",
151056
- printFunctionParams(path22, options, print12),
151056
+ printFunctionParams(path22, options, print11),
151057
151057
  ") => ",
151058
- path22.call(print12, "typeAnnotation", "typeAnnotation")
151058
+ path22.call(print11, "typeAnnotation", "typeAnnotation")
151059
151059
  ]);
151060
151060
  case "TSConstructorType":
151061
151061
  return (0, lines_1.concat)([
151062
151062
  "new ",
151063
- path22.call(print12, "typeParameters"),
151063
+ path22.call(print11, "typeParameters"),
151064
151064
  "(",
151065
- printFunctionParams(path22, options, print12),
151065
+ printFunctionParams(path22, options, print11),
151066
151066
  ") => ",
151067
- path22.call(print12, "typeAnnotation", "typeAnnotation")
151067
+ path22.call(print11, "typeAnnotation", "typeAnnotation")
151068
151068
  ]);
151069
151069
  case "TSMappedType": {
151070
- parts.push(n2.readonly ? "readonly " : "", "[", path22.call(print12, "typeParameter"), "]", n2.optional ? "?" : "");
151070
+ parts.push(n2.readonly ? "readonly " : "", "[", path22.call(print11, "typeParameter"), "]", n2.optional ? "?" : "");
151071
151071
  if (n2.typeAnnotation) {
151072
- parts.push(": ", path22.call(print12, "typeAnnotation"), ";");
151072
+ parts.push(": ", path22.call(print11, "typeAnnotation"), ";");
151073
151073
  }
151074
151074
  return (0, lines_1.concat)(["{\n", (0, lines_1.concat)(parts).indent(options.tabWidth), "\n}"]);
151075
151075
  }
151076
151076
  case "TSTupleType":
151077
151077
  return (0, lines_1.concat)([
151078
151078
  "[",
151079
- (0, lines_1.fromString)(", ").join(path22.map(print12, "elementTypes")),
151079
+ (0, lines_1.fromString)(", ").join(path22.map(print11, "elementTypes")),
151080
151080
  "]"
151081
151081
  ]);
151082
151082
  case "TSNamedTupleMember":
151083
- parts.push(path22.call(print12, "label"));
151083
+ parts.push(path22.call(print11, "label"));
151084
151084
  if (n2.optional) {
151085
151085
  parts.push("?");
151086
151086
  }
151087
- parts.push(": ", path22.call(print12, "elementType"));
151087
+ parts.push(": ", path22.call(print11, "elementType"));
151088
151088
  return (0, lines_1.concat)(parts);
151089
151089
  case "TSRestType":
151090
- return (0, lines_1.concat)(["...", path22.call(print12, "typeAnnotation")]);
151090
+ return (0, lines_1.concat)(["...", path22.call(print11, "typeAnnotation")]);
151091
151091
  case "TSOptionalType":
151092
- return (0, lines_1.concat)([path22.call(print12, "typeAnnotation"), "?"]);
151092
+ return (0, lines_1.concat)([path22.call(print11, "typeAnnotation"), "?"]);
151093
151093
  case "TSIndexedAccessType":
151094
151094
  return (0, lines_1.concat)([
151095
- path22.call(print12, "objectType"),
151095
+ path22.call(print11, "objectType"),
151096
151096
  "[",
151097
- path22.call(print12, "indexType"),
151097
+ path22.call(print11, "indexType"),
151098
151098
  "]"
151099
151099
  ]);
151100
151100
  case "TSTypeOperator":
151101
151101
  return (0, lines_1.concat)([
151102
- path22.call(print12, "operator"),
151102
+ path22.call(print11, "operator"),
151103
151103
  " ",
151104
- path22.call(print12, "typeAnnotation")
151104
+ path22.call(print11, "typeAnnotation")
151105
151105
  ]);
151106
151106
  case "TSTypeLiteral": {
151107
- var members = (0, lines_1.fromString)("\n").join(path22.map(print12, "members").map(function(member) {
151107
+ var members = (0, lines_1.fromString)("\n").join(path22.map(print11, "members").map(function(member) {
151108
151108
  if (lastNonSpaceCharacter(member) !== ";") {
151109
151109
  return member.concat(";");
151110
151110
  }
@@ -151117,13 +151117,13 @@ var require_printer22 = __commonJS3({
151117
151117
  return (0, lines_1.concat)(parts);
151118
151118
  }
151119
151119
  case "TSEnumMember":
151120
- parts.push(path22.call(print12, "id"));
151120
+ parts.push(path22.call(print11, "id"));
151121
151121
  if (n2.initializer) {
151122
- parts.push(" = ", path22.call(print12, "initializer"));
151122
+ parts.push(" = ", path22.call(print11, "initializer"));
151123
151123
  }
151124
151124
  return (0, lines_1.concat)(parts);
151125
151125
  case "TSTypeQuery":
151126
- return (0, lines_1.concat)(["typeof ", path22.call(print12, "exprName")]);
151126
+ return (0, lines_1.concat)(["typeof ", path22.call(print11, "exprName")]);
151127
151127
  case "TSParameterProperty":
151128
151128
  if (n2.accessibility) {
151129
151129
  parts.push(n2.accessibility, " ");
@@ -151137,119 +151137,119 @@ var require_printer22 = __commonJS3({
151137
151137
  if (n2.readonly) {
151138
151138
  parts.push("readonly ");
151139
151139
  }
151140
- parts.push(path22.call(print12, "parameter"));
151140
+ parts.push(path22.call(print11, "parameter"));
151141
151141
  return (0, lines_1.concat)(parts);
151142
151142
  case "TSTypeReference":
151143
151143
  return (0, lines_1.concat)([
151144
- path22.call(print12, "typeName"),
151145
- path22.call(print12, "typeParameters")
151144
+ path22.call(print11, "typeName"),
151145
+ path22.call(print11, "typeParameters")
151146
151146
  ]);
151147
151147
  case "TSQualifiedName":
151148
- return (0, lines_1.concat)([path22.call(print12, "left"), ".", path22.call(print12, "right")]);
151148
+ return (0, lines_1.concat)([path22.call(print11, "left"), ".", path22.call(print11, "right")]);
151149
151149
  case "TSAsExpression":
151150
151150
  case "TSSatisfiesExpression": {
151151
- var expression = path22.call(print12, "expression");
151152
- parts.push(expression, n2.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path22.call(print12, "typeAnnotation"));
151151
+ var expression = path22.call(print11, "expression");
151152
+ parts.push(expression, n2.type === "TSSatisfiesExpression" ? " satisfies " : " as ", path22.call(print11, "typeAnnotation"));
151153
151153
  return (0, lines_1.concat)(parts);
151154
151154
  }
151155
151155
  case "TSTypeCastExpression":
151156
151156
  return (0, lines_1.concat)([
151157
- path22.call(print12, "expression"),
151158
- path22.call(print12, "typeAnnotation")
151157
+ path22.call(print11, "expression"),
151158
+ path22.call(print11, "typeAnnotation")
151159
151159
  ]);
151160
151160
  case "TSNonNullExpression":
151161
- return (0, lines_1.concat)([path22.call(print12, "expression"), "!"]);
151161
+ return (0, lines_1.concat)([path22.call(print11, "expression"), "!"]);
151162
151162
  case "TSTypeAnnotation":
151163
- return (0, lines_1.concat)([": ", path22.call(print12, "typeAnnotation")]);
151163
+ return (0, lines_1.concat)([": ", path22.call(print11, "typeAnnotation")]);
151164
151164
  case "TSIndexSignature":
151165
151165
  return (0, lines_1.concat)([
151166
151166
  n2.readonly ? "readonly " : "",
151167
151167
  "[",
151168
- path22.map(print12, "parameters"),
151168
+ path22.map(print11, "parameters"),
151169
151169
  "]",
151170
- path22.call(print12, "typeAnnotation")
151170
+ path22.call(print11, "typeAnnotation")
151171
151171
  ]);
151172
151172
  case "TSPropertySignature":
151173
- parts.push(printVariance(path22, print12), n2.readonly ? "readonly " : "");
151173
+ parts.push(printVariance(path22, print11), n2.readonly ? "readonly " : "");
151174
151174
  if (n2.computed) {
151175
- parts.push("[", path22.call(print12, "key"), "]");
151175
+ parts.push("[", path22.call(print11, "key"), "]");
151176
151176
  } else {
151177
- parts.push(path22.call(print12, "key"));
151177
+ parts.push(path22.call(print11, "key"));
151178
151178
  }
151179
- parts.push(n2.optional ? "?" : "", path22.call(print12, "typeAnnotation"));
151179
+ parts.push(n2.optional ? "?" : "", path22.call(print11, "typeAnnotation"));
151180
151180
  return (0, lines_1.concat)(parts);
151181
151181
  case "TSMethodSignature":
151182
151182
  if (n2.computed) {
151183
- parts.push("[", path22.call(print12, "key"), "]");
151183
+ parts.push("[", path22.call(print11, "key"), "]");
151184
151184
  } else {
151185
- parts.push(path22.call(print12, "key"));
151185
+ parts.push(path22.call(print11, "key"));
151186
151186
  }
151187
151187
  if (n2.optional) {
151188
151188
  parts.push("?");
151189
151189
  }
151190
- parts.push(path22.call(print12, "typeParameters"), "(", printFunctionParams(path22, options, print12), ")", path22.call(print12, "typeAnnotation"));
151190
+ parts.push(path22.call(print11, "typeParameters"), "(", printFunctionParams(path22, options, print11), ")", path22.call(print11, "typeAnnotation"));
151191
151191
  return (0, lines_1.concat)(parts);
151192
151192
  case "TSTypePredicate":
151193
151193
  if (n2.asserts) {
151194
151194
  parts.push("asserts ");
151195
151195
  }
151196
- parts.push(path22.call(print12, "parameterName"));
151196
+ parts.push(path22.call(print11, "parameterName"));
151197
151197
  if (n2.typeAnnotation) {
151198
- parts.push(" is ", path22.call(print12, "typeAnnotation", "typeAnnotation"));
151198
+ parts.push(" is ", path22.call(print11, "typeAnnotation", "typeAnnotation"));
151199
151199
  }
151200
151200
  return (0, lines_1.concat)(parts);
151201
151201
  case "TSCallSignatureDeclaration":
151202
151202
  return (0, lines_1.concat)([
151203
- path22.call(print12, "typeParameters"),
151203
+ path22.call(print11, "typeParameters"),
151204
151204
  "(",
151205
- printFunctionParams(path22, options, print12),
151205
+ printFunctionParams(path22, options, print11),
151206
151206
  ")",
151207
- path22.call(print12, "typeAnnotation")
151207
+ path22.call(print11, "typeAnnotation")
151208
151208
  ]);
151209
151209
  case "TSConstructSignatureDeclaration":
151210
151210
  if (n2.typeParameters) {
151211
- parts.push("new", path22.call(print12, "typeParameters"));
151211
+ parts.push("new", path22.call(print11, "typeParameters"));
151212
151212
  } else {
151213
151213
  parts.push("new ");
151214
151214
  }
151215
- parts.push("(", printFunctionParams(path22, options, print12), ")", path22.call(print12, "typeAnnotation"));
151215
+ parts.push("(", printFunctionParams(path22, options, print11), ")", path22.call(print11, "typeAnnotation"));
151216
151216
  return (0, lines_1.concat)(parts);
151217
151217
  case "TSTypeAliasDeclaration":
151218
151218
  return (0, lines_1.concat)([
151219
151219
  n2.declare ? "declare " : "",
151220
151220
  "type ",
151221
- path22.call(print12, "id"),
151222
- path22.call(print12, "typeParameters"),
151221
+ path22.call(print11, "id"),
151222
+ path22.call(print11, "typeParameters"),
151223
151223
  " = ",
151224
- path22.call(print12, "typeAnnotation"),
151224
+ path22.call(print11, "typeAnnotation"),
151225
151225
  ";"
151226
151226
  ]);
151227
151227
  case "TSTypeParameter": {
151228
- parts.push(path22.call(print12, "name"));
151228
+ parts.push(path22.call(print11, "name"));
151229
151229
  var parent = path22.getParentNode(0);
151230
151230
  var isInMappedType = namedTypes.TSMappedType.check(parent);
151231
151231
  if (n2.constraint) {
151232
- parts.push(isInMappedType ? " in " : " extends ", path22.call(print12, "constraint"));
151232
+ parts.push(isInMappedType ? " in " : " extends ", path22.call(print11, "constraint"));
151233
151233
  }
151234
151234
  if (n2["default"]) {
151235
- parts.push(" = ", path22.call(print12, "default"));
151235
+ parts.push(" = ", path22.call(print11, "default"));
151236
151236
  }
151237
151237
  return (0, lines_1.concat)(parts);
151238
151238
  }
151239
151239
  case "TSTypeAssertion": {
151240
- parts.push("<", path22.call(print12, "typeAnnotation"), "> ", path22.call(print12, "expression"));
151240
+ parts.push("<", path22.call(print11, "typeAnnotation"), "> ", path22.call(print11, "expression"));
151241
151241
  return (0, lines_1.concat)(parts);
151242
151242
  }
151243
151243
  case "TSTypeParameterDeclaration":
151244
151244
  case "TSTypeParameterInstantiation":
151245
151245
  return (0, lines_1.concat)([
151246
151246
  "<",
151247
- (0, lines_1.fromString)(", ").join(path22.map(print12, "params")),
151247
+ (0, lines_1.fromString)(", ").join(path22.map(print11, "params")),
151248
151248
  ">"
151249
151249
  ]);
151250
151250
  case "TSEnumDeclaration": {
151251
- parts.push(n2.declare ? "declare " : "", n2.const ? "const " : "", "enum ", path22.call(print12, "id"));
151252
- var memberLines = (0, lines_1.fromString)(",\n").join(path22.map(print12, "members"));
151251
+ parts.push(n2.declare ? "declare " : "", n2.const ? "const " : "", "enum ", path22.call(print11, "id"));
151252
+ var memberLines = (0, lines_1.fromString)(",\n").join(path22.map(print11, "members"));
151253
151253
  if (memberLines.isEmpty()) {
151254
151254
  parts.push(" {}");
151255
151255
  } else {
@@ -151259,11 +151259,11 @@ var require_printer22 = __commonJS3({
151259
151259
  }
151260
151260
  case "TSExpressionWithTypeArguments":
151261
151261
  return (0, lines_1.concat)([
151262
- path22.call(print12, "expression"),
151263
- path22.call(print12, "typeParameters")
151262
+ path22.call(print11, "expression"),
151263
+ path22.call(print11, "typeParameters")
151264
151264
  ]);
151265
151265
  case "TSInterfaceBody": {
151266
- var lines = (0, lines_1.fromString)("\n").join(path22.map(print12, "body").map(function(element) {
151266
+ var lines = (0, lines_1.fromString)("\n").join(path22.map(print11, "body").map(function(element) {
151267
151267
  if (lastNonSpaceCharacter(element) !== ";") {
151268
151268
  return element.concat(";");
151269
151269
  }
@@ -151275,22 +151275,22 @@ var require_printer22 = __commonJS3({
151275
151275
  return (0, lines_1.concat)(["{\n", lines.indent(options.tabWidth), "\n}"]);
151276
151276
  }
151277
151277
  case "TSImportType":
151278
- parts.push("import(", path22.call(print12, "argument"), ")");
151278
+ parts.push("import(", path22.call(print11, "argument"), ")");
151279
151279
  if (n2.qualifier) {
151280
- parts.push(".", path22.call(print12, "qualifier"));
151280
+ parts.push(".", path22.call(print11, "qualifier"));
151281
151281
  }
151282
151282
  if (n2.typeParameters) {
151283
- parts.push(path22.call(print12, "typeParameters"));
151283
+ parts.push(path22.call(print11, "typeParameters"));
151284
151284
  }
151285
151285
  return (0, lines_1.concat)(parts);
151286
151286
  case "TSImportEqualsDeclaration":
151287
151287
  if (n2.isExport) {
151288
151288
  parts.push("export ");
151289
151289
  }
151290
- parts.push("import ", path22.call(print12, "id"), " = ", path22.call(print12, "moduleReference"));
151290
+ parts.push("import ", path22.call(print11, "id"), " = ", path22.call(print11, "moduleReference"));
151291
151291
  return maybeAddSemicolon((0, lines_1.concat)(parts));
151292
151292
  case "TSExternalModuleReference":
151293
- return (0, lines_1.concat)(["require(", path22.call(print12, "expression"), ")"]);
151293
+ return (0, lines_1.concat)(["require(", path22.call(print11, "expression"), ")"]);
151294
151294
  case "TSModuleDeclaration": {
151295
151295
  var parent = path22.getParentNode();
151296
151296
  if (parent.type === "TSModuleDeclaration") {
@@ -151315,16 +151315,16 @@ var require_printer22 = __commonJS3({
151315
151315
  }
151316
151316
  }
151317
151317
  }
151318
- parts.push(path22.call(print12, "id"));
151318
+ parts.push(path22.call(print11, "id"));
151319
151319
  if (n2.body) {
151320
151320
  parts.push(" ");
151321
- parts.push(path22.call(print12, "body"));
151321
+ parts.push(path22.call(print11, "body"));
151322
151322
  }
151323
151323
  return (0, lines_1.concat)(parts);
151324
151324
  }
151325
151325
  case "TSModuleBlock": {
151326
151326
  var naked = path22.call(function(bodyPath) {
151327
- return printStatementSequence(bodyPath, options, print12);
151327
+ return printStatementSequence(bodyPath, options, print11);
151328
151328
  }, "body");
151329
151329
  if (naked.isEmpty()) {
151330
151330
  parts.push("{}");
@@ -151334,11 +151334,11 @@ var require_printer22 = __commonJS3({
151334
151334
  return (0, lines_1.concat)(parts);
151335
151335
  }
151336
151336
  case "TSInstantiationExpression": {
151337
- parts.push(path22.call(print12, "expression"), path22.call(print12, "typeParameters"));
151337
+ parts.push(path22.call(print11, "expression"), path22.call(print11, "typeParameters"));
151338
151338
  return (0, lines_1.concat)(parts);
151339
151339
  }
151340
151340
  case "V8IntrinsicIdentifier":
151341
- return (0, lines_1.concat)(["%", path22.call(print12, "name")]);
151341
+ return (0, lines_1.concat)(["%", path22.call(print11, "name")]);
151342
151342
  case "TopicReference":
151343
151343
  return (0, lines_1.fromString)("#");
151344
151344
  case "ClassHeritage":
@@ -151388,7 +151388,7 @@ var require_printer22 = __commonJS3({
151388
151388
  }
151389
151389
  return (0, lines_1.concat)(parts);
151390
151390
  }
151391
- function printStatementSequence(path22, options, print12) {
151391
+ function printStatementSequence(path22, options, print11) {
151392
151392
  var filtered = [];
151393
151393
  var sawComment = false;
151394
151394
  var sawStatement = false;
@@ -151409,7 +151409,7 @@ var require_printer22 = __commonJS3({
151409
151409
  }
151410
151410
  filtered.push({
151411
151411
  node: stmt,
151412
- printed: print12(stmtPath)
151412
+ printed: print11(stmtPath)
151413
151413
  });
151414
151414
  });
151415
151415
  if (sawComment) {
@@ -151501,7 +151501,7 @@ var require_printer22 = __commonJS3({
151501
151501
  }
151502
151502
  return parts;
151503
151503
  }
151504
- function printMethod(path22, options, print12) {
151504
+ function printMethod(path22, options, print11) {
151505
151505
  var node2 = path22.getNode();
151506
151506
  var kind = node2.kind;
151507
151507
  var parts = [];
@@ -151519,7 +151519,7 @@ var require_printer22 = __commonJS3({
151519
151519
  if (kind === "get" || kind === "set") {
151520
151520
  parts.push(kind, " ");
151521
151521
  }
151522
- var key = path22.call(print12, "key");
151522
+ var key = path22.call(print11, "key");
151523
151523
  if (node2.computed) {
151524
151524
  key = (0, lines_1.concat)(["[", key, "]"]);
151525
151525
  }
@@ -151528,26 +151528,26 @@ var require_printer22 = __commonJS3({
151528
151528
  parts.push("?");
151529
151529
  }
151530
151530
  if (node2 === nodeValue) {
151531
- parts.push(path22.call(print12, "typeParameters"), "(", printFunctionParams(path22, options, print12), ")", path22.call(print12, "returnType"));
151531
+ parts.push(path22.call(print11, "typeParameters"), "(", printFunctionParams(path22, options, print11), ")", path22.call(print11, "returnType"));
151532
151532
  if (node2.body) {
151533
- parts.push(" ", path22.call(print12, "body"));
151533
+ parts.push(" ", path22.call(print11, "body"));
151534
151534
  } else {
151535
151535
  parts.push(";");
151536
151536
  }
151537
151537
  } else {
151538
- parts.push(path22.call(print12, "value", "typeParameters"), "(", path22.call(function(valuePath) {
151539
- return printFunctionParams(valuePath, options, print12);
151540
- }, "value"), ")", path22.call(print12, "value", "returnType"));
151538
+ parts.push(path22.call(print11, "value", "typeParameters"), "(", path22.call(function(valuePath) {
151539
+ return printFunctionParams(valuePath, options, print11);
151540
+ }, "value"), ")", path22.call(print11, "value", "returnType"));
151541
151541
  if (nodeValue.body) {
151542
- parts.push(" ", path22.call(print12, "value", "body"));
151542
+ parts.push(" ", path22.call(print11, "value", "body"));
151543
151543
  } else {
151544
151544
  parts.push(";");
151545
151545
  }
151546
151546
  }
151547
151547
  return (0, lines_1.concat)(parts);
151548
151548
  }
151549
- function printArgumentsList(path22, options, print12) {
151550
- var printed = path22.map(print12, "arguments");
151549
+ function printArgumentsList(path22, options, print11) {
151550
+ var printed = path22.map(print11, "arguments");
151551
151551
  var trailingComma = util2.isTrailingCommaEnabled(options, "parameters");
151552
151552
  var joined = (0, lines_1.fromString)(", ").join(printed);
151553
151553
  if (joined.getLineLength(1) > options.wrapColumn) {
@@ -151560,28 +151560,28 @@ var require_printer22 = __commonJS3({
151560
151560
  }
151561
151561
  return (0, lines_1.concat)(["(", joined, ")"]);
151562
151562
  }
151563
- function printFunctionParams(path22, options, print12) {
151563
+ function printFunctionParams(path22, options, print11) {
151564
151564
  var fun = path22.getValue();
151565
151565
  var params;
151566
151566
  var printed = [];
151567
151567
  if (fun.params) {
151568
151568
  params = fun.params;
151569
- printed = path22.map(print12, "params");
151569
+ printed = path22.map(print11, "params");
151570
151570
  } else if (fun.parameters) {
151571
151571
  params = fun.parameters;
151572
- printed = path22.map(print12, "parameters");
151572
+ printed = path22.map(print11, "parameters");
151573
151573
  }
151574
151574
  if (fun.defaults) {
151575
151575
  path22.each(function(defExprPath) {
151576
151576
  var i22 = defExprPath.getName();
151577
151577
  var p = printed[i22];
151578
151578
  if (p && defExprPath.getValue()) {
151579
- printed[i22] = (0, lines_1.concat)([p, " = ", print12(defExprPath)]);
151579
+ printed[i22] = (0, lines_1.concat)([p, " = ", print11(defExprPath)]);
151580
151580
  }
151581
151581
  }, "defaults");
151582
151582
  }
151583
151583
  if (fun.rest) {
151584
- printed.push((0, lines_1.concat)(["...", path22.call(print12, "rest")]));
151584
+ printed.push((0, lines_1.concat)(["...", path22.call(print11, "rest")]));
151585
151585
  }
151586
151586
  var joined = (0, lines_1.fromString)(", ").join(printed);
151587
151587
  if (joined.length > 1 || joined.getLineLength(1) > options.wrapColumn) {
@@ -151595,11 +151595,11 @@ var require_printer22 = __commonJS3({
151595
151595
  }
151596
151596
  return joined;
151597
151597
  }
151598
- function maybePrintImportAssertions(path22, options, print12) {
151598
+ function maybePrintImportAssertions(path22, options, print11) {
151599
151599
  var n2 = path22.getValue();
151600
151600
  if (n2.assertions && n2.assertions.length > 0) {
151601
151601
  var parts = [" assert {"];
151602
- var printed = path22.map(print12, "assertions");
151602
+ var printed = path22.map(print11, "assertions");
151603
151603
  var flat = (0, lines_1.fromString)(", ").join(printed);
151604
151604
  if (flat.length > 1 || flat.getLineLength(1) > options.wrapColumn) {
151605
151605
  parts.push("\n", (0, lines_1.fromString)(",\n").join(printed).indent(options.tabWidth), "\n}");
@@ -151610,7 +151610,7 @@ var require_printer22 = __commonJS3({
151610
151610
  }
151611
151611
  return (0, lines_1.fromString)("");
151612
151612
  }
151613
- function printExportDeclaration(path22, options, print12) {
151613
+ function printExportDeclaration(path22, options, print11) {
151614
151614
  var decl = path22.getValue();
151615
151615
  var parts = ["export "];
151616
151616
  if (decl.exportKind && decl.exportKind === "type") {
@@ -151624,7 +151624,7 @@ var require_printer22 = __commonJS3({
151624
151624
  parts.push("default ");
151625
151625
  }
151626
151626
  if (decl.declaration) {
151627
- parts.push(path22.call(print12, "declaration"));
151627
+ parts.push(path22.call(print11, "declaration"));
151628
151628
  } else if (decl.specifiers) {
151629
151629
  if (decl.specifiers.length === 1 && decl.specifiers[0].type === "ExportBatchSpecifier") {
151630
151630
  parts.push("*");
@@ -151636,9 +151636,9 @@ var require_printer22 = __commonJS3({
151636
151636
  path22.each(function(specifierPath) {
151637
151637
  var spec = specifierPath.getValue();
151638
151638
  if (spec.type === "ExportDefaultSpecifier") {
151639
- unbracedSpecifiers_2.push(print12(specifierPath));
151639
+ unbracedSpecifiers_2.push(print11(specifierPath));
151640
151640
  } else {
151641
- bracedSpecifiers_2.push(print12(specifierPath));
151641
+ bracedSpecifiers_2.push(print11(specifierPath));
151642
151642
  }
151643
151643
  }, "specifiers");
151644
151644
  unbracedSpecifiers_2.forEach(function(lines2, i22) {
@@ -151667,10 +151667,10 @@ var require_printer22 = __commonJS3({
151667
151667
  }
151668
151668
  }
151669
151669
  } else {
151670
- parts.push(shouldPrintSpaces ? "{ " : "{", (0, lines_1.fromString)(", ").join(path22.map(print12, "specifiers")), shouldPrintSpaces ? " }" : "}");
151670
+ parts.push(shouldPrintSpaces ? "{ " : "{", (0, lines_1.fromString)(", ").join(path22.map(print11, "specifiers")), shouldPrintSpaces ? " }" : "}");
151671
151671
  }
151672
151672
  if (decl.source) {
151673
- parts.push(" from ", path22.call(print12, "source"), maybePrintImportAssertions(path22, options, print12));
151673
+ parts.push(" from ", path22.call(print11, "source"), maybePrintImportAssertions(path22, options, print11));
151674
151674
  }
151675
151675
  }
151676
151676
  var lines = (0, lines_1.concat)(parts);
@@ -151688,7 +151688,7 @@ var require_printer22 = __commonJS3({
151688
151688
  }
151689
151689
  return (0, lines_1.concat)(parts);
151690
151690
  }
151691
- function printVariance(path22, print12) {
151691
+ function printVariance(path22, print11) {
151692
151692
  return path22.call(function(variancePath) {
151693
151693
  var value2 = variancePath.getValue();
151694
151694
  if (value2) {
@@ -151698,7 +151698,7 @@ var require_printer22 = __commonJS3({
151698
151698
  if (value2 === "minus") {
151699
151699
  return (0, lines_1.fromString)("-");
151700
151700
  }
151701
- return print12(variancePath);
151701
+ return print11(variancePath);
151702
151702
  }
151703
151703
  return (0, lines_1.fromString)("");
151704
151704
  }, "variance");
@@ -151783,10 +151783,10 @@ var require_main22 = __commonJS3({
151783
151783
  Object.defineProperty(exports, "visit", { enumerable: true, get: function() {
151784
151784
  return ast_types_1.visit;
151785
151785
  } });
151786
- function print12(node2, options) {
151786
+ function print11(node2, options) {
151787
151787
  return new printer_1.Printer(options).print(node2);
151788
151788
  }
151789
- exports.print = print12;
151789
+ exports.print = print11;
151790
151790
  function prettyPrint3(node2, options) {
151791
151791
  return new printer_1.Printer(options).printGenerically(node2);
151792
151792
  }
@@ -151810,7 +151810,7 @@ var require_main22 = __commonJS3({
151810
151810
  function runString(code, transformer, options) {
151811
151811
  var writeback = options && options.writeback || defaultWriteback;
151812
151812
  transformer((0, parser_1.parse)(code, options), function(node2) {
151813
- writeback(print12(node2, options).code);
151813
+ writeback(print11(node2, options).code);
151814
151814
  });
151815
151815
  }
151816
151816
  }
@@ -181844,14 +181844,14 @@ function plugin_config(config4) {
181844
181844
  static: false,
181845
181845
  ...cfg,
181846
181846
  customStores: {
181847
- query: "$houdini/plugins/houdini-svelte/runtime/stores.QueryStore",
181848
- mutation: "$houdini/plugins/houdini-svelte/runtime/stores.MutationStore",
181849
- fragment: "$houdini/plugins/houdini-svelte/runtime/stores.FragmentStore",
181850
- subscription: "$houdini/plugins/houdini-svelte/runtime/stores.SubscriptionStore",
181851
- queryCursor: "$houdini/plugins/houdini-svelte/runtime/stores.QueryStoreCursor",
181852
- queryOffset: "$houdini/plugins/houdini-svelte/runtime/stores.QueryStoreOffset",
181853
- fragmentCursor: "$houdini/plugins/houdini-svelte/runtime/stores.FragmentStoreCursor",
181854
- fragmentOffset: "$houdini/plugins/houdini-svelte/runtime/stores.FragmentStoreOffset",
181847
+ query: "../runtime/stores/query.QueryStore",
181848
+ mutation: "../runtime/stores/mutation.MutationStore",
181849
+ fragment: "../runtime/stores/fragment.FragmentStore",
181850
+ subscription: "../runtime/stores/subscription.SubscriptionStore",
181851
+ queryCursor: "../runtime/stores/pagination/query.QueryStoreCursor",
181852
+ queryOffset: "../runtime/stores/pagination/query.QueryStoreOffset",
181853
+ fragmentCursor: "../runtime/stores/pagination/fragment.FragmentStoreCursor",
181854
+ fragmentOffset: "../runtime/stores/pagination/fragment.FragmentStoreOffset",
181855
181855
  ...cfg?.customStores
181856
181856
  }
181857
181857
  };
@@ -182483,6 +182483,7 @@ async function queryStore({ config: config4, pluginRoot }, doc) {
182483
182483
  const { store_class, statement } = store_import2(config4, which);
182484
182484
  const storeData = `${statement}
182485
182485
  import artifact from '$houdini/artifacts/${artifactName}'
182486
+ import { initClient } from '$houdini/plugins/houdini-svelte/runtime/client'
182486
182487
 
182487
182488
  export class ${storeName} extends ${store_class} {
182488
182489
  constructor() {
@@ -182495,6 +182496,8 @@ export class ${storeName} extends ${store_class} {
182495
182496
  }
182496
182497
 
182497
182498
  export async function load_${artifactName}(params) {
182499
+ await initClient()
182500
+
182498
182501
  const store = new ${storeName}()
182499
182502
 
182500
182503
  await store.fetch(params)
@@ -183928,21 +183931,16 @@ export const error = svelteKitError
183928
183931
  `;
183929
183932
  return framework === "kit" ? sveltekit_adapter : content;
183930
183933
  },
183931
- [path_exports.join("imports", "client.js")]: ({ config: cfg }) => {
183932
- const config4 = plugin_config(cfg);
183934
+ "client.js": ({ config: config4, content }) => {
183933
183935
  const networkFilePath = path_exports.join(
183934
- cfg.pluginRuntimeDirectory("houdini-svelte"),
183935
- "imports",
183936
- "clientImport.js"
183936
+ config4.pluginRuntimeDirectory("houdini-svelte"),
183937
+ "network.js"
183937
183938
  );
183938
183939
  const relativePath = path_exports.relative(
183939
183940
  path_exports.dirname(networkFilePath),
183940
- path_exports.join(cfg.projectRoot, config4.client ?? "src/client")
183941
+ path_exports.join(config4.projectRoot, plugin_config(config4).client)
183941
183942
  );
183942
- return `import client from "${relativePath}"
183943
-
183944
- export default client
183945
- `;
183943
+ return content.replace("HOUDINI_CLIENT_PATH", relativePath);
183946
183944
  }
183947
183945
  },
183948
183946
  artifactData,