Text.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = function (d, b) {
  4. extendStatics = Object.setPrototypeOf ||
  5. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  6. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  7. return extendStatics(d, b);
  8. };
  9. return function (d, b) {
  10. if (typeof b !== "function" && b !== null)
  11. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  12. extendStatics(d, b);
  13. function __() { this.constructor = d; }
  14. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  15. };
  16. })();
  17. Object.defineProperty(exports, "__esModule", { value: true });
  18. exports.LiteComment = exports.LiteText = void 0;
  19. var LiteText = (function () {
  20. function LiteText(text) {
  21. if (text === void 0) { text = ''; }
  22. this.value = text;
  23. }
  24. Object.defineProperty(LiteText.prototype, "kind", {
  25. get: function () {
  26. return '#text';
  27. },
  28. enumerable: false,
  29. configurable: true
  30. });
  31. return LiteText;
  32. }());
  33. exports.LiteText = LiteText;
  34. var LiteComment = (function (_super) {
  35. __extends(LiteComment, _super);
  36. function LiteComment() {
  37. return _super !== null && _super.apply(this, arguments) || this;
  38. }
  39. Object.defineProperty(LiteComment.prototype, "kind", {
  40. get: function () {
  41. return '#comment';
  42. },
  43. enumerable: false,
  44. configurable: true
  45. });
  46. return LiteComment;
  47. }(LiteText));
  48. exports.LiteComment = LiteComment;
  49. //# sourceMappingURL=Text.js.map