Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MarlinLineParserResultStart_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- 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); } }
- function MarlinLineParserResultStart_createClass(Constructor, protoProps, staticProps) { if (protoProps) MarlinLineParserResultStart_defineProperties(Constructor.prototype, protoProps); if (staticProps) MarlinLineParserResultStart_defineProperties(Constructor, staticProps); return Constructor; }
- var MarlinLineParserResultStart = /*#__PURE__*/function () {
- function MarlinLineParserResultStart() {
- MarlinLineParserResultStart_classCallCheck(this, MarlinLineParserResultStart);
- }
- MarlinLineParserResultStart_createClass(MarlinLineParserResultStart, null, [{
- key: "parse",
- // start
- value: function parse(line) {
- var r = line.match(/^start$/);
- if (!r) {
- return null;
- }
- var payload = {};
- return {
- type: MarlinLineParserResultStart,
- payload: payload
- };
- }
- }]);
- return MarlinLineParserResultStart;
- }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement