Advertisement
Guest User

Untitled

a guest
Feb 28th, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. function MarlinLineParserResultStart_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  2.  
  3. function MarlinLineParserResultStart_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  4.  
  5. function MarlinLineParserResultStart_createClass(Constructor, protoProps, staticProps) { if (protoProps) MarlinLineParserResultStart_defineProperties(Constructor.prototype, protoProps); if (staticProps) MarlinLineParserResultStart_defineProperties(Constructor, staticProps); return Constructor; }
  6.  
  7. var MarlinLineParserResultStart = /*#__PURE__*/function () {
  8. function MarlinLineParserResultStart() {
  9. MarlinLineParserResultStart_classCallCheck(this, MarlinLineParserResultStart);
  10. }
  11.  
  12. MarlinLineParserResultStart_createClass(MarlinLineParserResultStart, null, [{
  13. key: "parse",
  14. // start
  15. value: function parse(line) {
  16. var r = line.match(/^start$/);
  17.  
  18. if (!r) {
  19. return null;
  20. }
  21.  
  22. var payload = {};
  23. return {
  24. type: MarlinLineParserResultStart,
  25. payload: payload
  26. };
  27. }
  28. }]);
  29.  
  30. return MarlinLineParserResultStart;
  31. }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement