index.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _exportNames = {
  6. numberLiteralFromRaw: true,
  7. withLoc: true,
  8. withRaw: true,
  9. funcParam: true,
  10. indexLiteral: true,
  11. memIndexLiteral: true,
  12. instruction: true,
  13. objectInstruction: true,
  14. traverse: true,
  15. signatures: true,
  16. cloneNode: true,
  17. moduleContextFromModuleAST: true
  18. };
  19. Object.defineProperty(exports, "numberLiteralFromRaw", {
  20. enumerable: true,
  21. get: function get() {
  22. return _nodeHelpers.numberLiteralFromRaw;
  23. }
  24. });
  25. Object.defineProperty(exports, "withLoc", {
  26. enumerable: true,
  27. get: function get() {
  28. return _nodeHelpers.withLoc;
  29. }
  30. });
  31. Object.defineProperty(exports, "withRaw", {
  32. enumerable: true,
  33. get: function get() {
  34. return _nodeHelpers.withRaw;
  35. }
  36. });
  37. Object.defineProperty(exports, "funcParam", {
  38. enumerable: true,
  39. get: function get() {
  40. return _nodeHelpers.funcParam;
  41. }
  42. });
  43. Object.defineProperty(exports, "indexLiteral", {
  44. enumerable: true,
  45. get: function get() {
  46. return _nodeHelpers.indexLiteral;
  47. }
  48. });
  49. Object.defineProperty(exports, "memIndexLiteral", {
  50. enumerable: true,
  51. get: function get() {
  52. return _nodeHelpers.memIndexLiteral;
  53. }
  54. });
  55. Object.defineProperty(exports, "instruction", {
  56. enumerable: true,
  57. get: function get() {
  58. return _nodeHelpers.instruction;
  59. }
  60. });
  61. Object.defineProperty(exports, "objectInstruction", {
  62. enumerable: true,
  63. get: function get() {
  64. return _nodeHelpers.objectInstruction;
  65. }
  66. });
  67. Object.defineProperty(exports, "traverse", {
  68. enumerable: true,
  69. get: function get() {
  70. return _traverse.traverse;
  71. }
  72. });
  73. Object.defineProperty(exports, "signatures", {
  74. enumerable: true,
  75. get: function get() {
  76. return _signatures.signatures;
  77. }
  78. });
  79. Object.defineProperty(exports, "cloneNode", {
  80. enumerable: true,
  81. get: function get() {
  82. return _clone.cloneNode;
  83. }
  84. });
  85. Object.defineProperty(exports, "moduleContextFromModuleAST", {
  86. enumerable: true,
  87. get: function get() {
  88. return _astModuleToModuleContext.moduleContextFromModuleAST;
  89. }
  90. });
  91. var _nodes = require("./nodes");
  92. Object.keys(_nodes).forEach(function (key) {
  93. if (key === "default" || key === "__esModule") return;
  94. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  95. if (key in exports && exports[key] === _nodes[key]) return;
  96. Object.defineProperty(exports, key, {
  97. enumerable: true,
  98. get: function get() {
  99. return _nodes[key];
  100. }
  101. });
  102. });
  103. var _nodeHelpers = require("./node-helpers.js");
  104. var _traverse = require("./traverse");
  105. var _signatures = require("./signatures");
  106. var _utils = require("./utils");
  107. Object.keys(_utils).forEach(function (key) {
  108. if (key === "default" || key === "__esModule") return;
  109. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  110. if (key in exports && exports[key] === _utils[key]) return;
  111. Object.defineProperty(exports, key, {
  112. enumerable: true,
  113. get: function get() {
  114. return _utils[key];
  115. }
  116. });
  117. });
  118. var _clone = require("./clone");
  119. var _astModuleToModuleContext = require("./transform/ast-module-to-module-context");