deprecated.js 738 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.addDeprecatedGenerators = addDeprecatedGenerators;
  6. function addDeprecatedGenerators(PrinterClass) {
  7. {
  8. const deprecatedBabel7Generators = {
  9. Noop() {},
  10. TSExpressionWithTypeArguments(node) {
  11. this.print(node.expression);
  12. this.print(node.typeParameters);
  13. },
  14. DecimalLiteral(node) {
  15. const raw = this.getPossibleRaw(node);
  16. if (!this.format.minified && raw !== undefined) {
  17. this.word(raw);
  18. return;
  19. }
  20. this.word(node.value + "m");
  21. }
  22. };
  23. Object.assign(PrinterClass.prototype, deprecatedBabel7Generators);
  24. }
  25. }
  26. //# sourceMappingURL=deprecated.js.map