UNPKG

skypager-project

Version:
2,220 lines (2,199 loc) 101 kB
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModules[moduleId].exports; /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ // Flag the module as loaded /******/ module.l = true; /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ // identity function for calling harmory imports with the correct context /******/ __webpack_require__.i = function(value) { return value; }; /******/ // define getter function for harmory exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ Object.defineProperty(exports, name, { /******/ configurable: false, /******/ enumerable: true, /******/ get: getter /******/ }); /******/ }; /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 177); /******/ }) /************************************************************************/ /******/ ({ /***/ 177: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(86); /***/ }, /***/ 86: /***/ function(module, exports) { module.exports = { "path": "/Users/jonathan/Skypager/packages/skypager-project/src/utils/emitter.js", "ast": { "type": "File", "start": 0, "end": 532, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 13, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 532, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 13, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "Object" }, "property": { "type": "Identifier", "name": "defineProperty" }, "computed": false }, "arguments": [ { "type": "Identifier", "name": "exports" }, { "type": "StringLiteral", "extra": { "rawValue": "__esModule", "raw": "\"__esModule\"" }, "value": "__esModule" }, { "type": "ObjectExpression", "properties": [ { "type": "ObjectProperty", "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "name": "value" }, "value": { "type": "BooleanLiteral", "value": true } } ] } ] } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "start": 58, "end": 71, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 29 }, "identifierName": "attachEmitter" }, "name": "attachEmitter", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 58, "end": 71, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 29 }, "identifierName": "attachEmitter" }, "name": "attachEmitter", "trailingComments": [], "leadingComments": [], "innerComments": [] } } }, { "type": "VariableDeclaration", "kind": "var", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "_fbemitter" }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require" }, "arguments": [ { "type": "StringLiteral", "value": "fbemitter", "trailingComments": [], "leadingComments": [], "innerComments": [] } ] } } ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 40 } } }, { "type": "FunctionDeclaration", "start": 49, "end": 501, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 10, "column": 1 } }, "id": { "type": "Identifier", "start": 58, "end": 71, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 29 }, "identifierName": "attachEmitter" }, "name": "attachEmitter", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 72, "end": 79, "loc": { "start": { "line": 3, "column": 30 }, "end": { "line": 3, "column": 37 }, "identifierName": "project" }, "name": "project" } ], "body": { "type": "BlockStatement", "start": 81, "end": 501, "loc": { "start": { "line": 3, "column": 39 }, "end": { "line": 10, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 87, "end": 130, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 47 } }, "expression": { "type": "CallExpression", "start": 87, "end": 130, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 87, "end": 99, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 16 } }, "object": { "type": "Identifier", "start": 87, "end": 94, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 11 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 95, "end": 99, "loc": { "start": { "line": 4, "column": 12 }, "end": { "line": 4, "column": 16 }, "identifierName": "hide" }, "name": "hide" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 100, "end": 109, "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 26 } }, "extra": { "rawValue": "emitter", "raw": "'emitter'" }, "value": "emitter" }, { "type": "NewExpression", "start": 111, "end": 129, "loc": { "start": { "line": 4, "column": 28 }, "end": { "line": 4, "column": 46 } }, "callee": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "_fbemitter" }, "property": { "type": "Identifier", "start": 9, "end": 21, "name": "EventEmitter" }, "computed": false, "trailingComments": [], "leadingComments": [], "innerComments": [] }, "arguments": [] } ] } }, { "type": "ExpressionStatement", "start": 135, "end": 204, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 73 } }, "expression": { "type": "CallExpression", "start": 135, "end": 204, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 73 } }, "callee": { "type": "MemberExpression", "start": 135, "end": 147, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 16 } }, "object": { "type": "Identifier", "start": 135, "end": 142, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 11 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 143, "end": 147, "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 16 }, "identifierName": "hide" }, "name": "hide" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 148, "end": 152, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 21 } }, "extra": { "rawValue": "on", "raw": "'on'" }, "value": "on" }, { "type": "CallExpression", "start": 154, "end": 203, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 72 } }, "callee": { "type": "MemberExpression", "start": 154, "end": 186, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 55 } }, "object": { "type": "MemberExpression", "start": 154, "end": 181, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 50 } }, "object": { "type": "MemberExpression", "start": 154, "end": 169, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 38 } }, "object": { "type": "Identifier", "start": 154, "end": 161, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 30 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 162, "end": 169, "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 38 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false }, "property": { "type": "Identifier", "start": 170, "end": 181, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 5, "column": 50 }, "identifierName": "addListener" }, "name": "addListener" }, "computed": false }, "property": { "type": "Identifier", "start": 182, "end": 186, "loc": { "start": { "line": 5, "column": 51 }, "end": { "line": 5, "column": 55 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 187, "end": 202, "loc": { "start": { "line": 5, "column": 56 }, "end": { "line": 5, "column": 71 } }, "object": { "type": "Identifier", "start": 187, "end": 194, "loc": { "start": { "line": 5, "column": 56 }, "end": { "line": 5, "column": 63 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 195, "end": 202, "loc": { "start": { "line": 5, "column": 64 }, "end": { "line": 5, "column": 71 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false } ] } ] } }, { "type": "ExpressionStatement", "start": 209, "end": 273, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 68 } }, "expression": { "type": "CallExpression", "start": 209, "end": 273, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 209, "end": 221, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 16 } }, "object": { "type": "Identifier", "start": 209, "end": 216, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 11 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 217, "end": 221, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 16 }, "identifierName": "hide" }, "name": "hide" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 222, "end": 228, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 23 } }, "extra": { "rawValue": "once", "raw": "'once'" }, "value": "once" }, { "type": "CallExpression", "start": 230, "end": 272, "loc": { "start": { "line": 6, "column": 25 }, "end": { "line": 6, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 230, "end": 255, "loc": { "start": { "line": 6, "column": 25 }, "end": { "line": 6, "column": 50 } }, "object": { "type": "MemberExpression", "start": 230, "end": 250, "loc": { "start": { "line": 6, "column": 25 }, "end": { "line": 6, "column": 45 } }, "object": { "type": "MemberExpression", "start": 230, "end": 245, "loc": { "start": { "line": 6, "column": 25 }, "end": { "line": 6, "column": 40 } }, "object": { "type": "Identifier", "start": 230, "end": 237, "loc": { "start": { "line": 6, "column": 25 }, "end": { "line": 6, "column": 32 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 238, "end": 245, "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 40 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false }, "property": { "type": "Identifier", "start": 246, "end": 250, "loc": { "start": { "line": 6, "column": 41 }, "end": { "line": 6, "column": 45 }, "identifierName": "once" }, "name": "once" }, "computed": false }, "property": { "type": "Identifier", "start": 251, "end": 255, "loc": { "start": { "line": 6, "column": 46 }, "end": { "line": 6, "column": 50 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 256, "end": 271, "loc": { "start": { "line": 6, "column": 51 }, "end": { "line": 6, "column": 66 } }, "object": { "type": "Identifier", "start": 256, "end": 263, "loc": { "start": { "line": 6, "column": 51 }, "end": { "line": 6, "column": 58 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 264, "end": 271, "loc": { "start": { "line": 6, "column": 59 }, "end": { "line": 6, "column": 66 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false } ] } ] } }, { "type": "ExpressionStatement", "start": 278, "end": 358, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 84 } }, "expression": { "type": "CallExpression", "start": 278, "end": 358, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 84 } }, "callee": { "type": "MemberExpression", "start": 278, "end": 290, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 16 } }, "object": { "type": "Identifier", "start": 278, "end": 285, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 11 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 286, "end": 290, "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 16 }, "identifierName": "hide" }, "name": "hide" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 291, "end": 296, "loc": { "start": { "line": 7, "column": 17 }, "end": { "line": 7, "column": 22 } }, "extra": { "rawValue": "off", "raw": "'off'" }, "value": "off" }, { "type": "CallExpression", "start": 298, "end": 357, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 83 } }, "callee": { "type": "MemberExpression", "start": 298, "end": 340, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 66 } }, "object": { "type": "MemberExpression", "start": 298, "end": 335, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 61 } }, "object": { "type": "MemberExpression", "start": 298, "end": 313, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 39 } }, "object": { "type": "Identifier", "start": 298, "end": 305, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 31 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 306, "end": 313, "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 39 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false }, "property": { "type": "Identifier", "start": 314, "end": 335, "loc": { "start": { "line": 7, "column": 40 }, "end": { "line": 7, "column": 61 }, "identifierName": "removeCurrentListener" }, "name": "removeCurrentListener" }, "computed": false }, "property": { "type": "Identifier", "start": 336, "end": 340, "loc": { "start": { "line": 7, "column": 62 }, "end": { "line": 7, "column": 66 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 341, "end": 356, "loc": { "start": { "line": 7, "column": 67 }, "end": { "line": 7, "column": 82 } }, "object": { "type": "Identifier", "start": 341, "end": 348, "loc": { "start": { "line": 7, "column": 67 }, "end": { "line": 7, "column": 74 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 349, "end": 356, "loc": { "start": { "line": 7, "column": 75 }, "end": { "line": 7, "column": 82 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false } ] } ] } }, { "type": "ExpressionStatement", "start": 363, "end": 427, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 68 } }, "expression": { "type": "CallExpression", "start": 363, "end": 427, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 68 } }, "callee": { "type": "MemberExpression", "start": 363, "end": 375, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 16 } }, "object": { "type": "Identifier", "start": 363, "end": 370, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 11 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 371, "end": 375, "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 16 }, "identifierName": "hide" }, "name": "hide" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 376, "end": 382, "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 23 } }, "extra": { "rawValue": "emit", "raw": "'emit'" }, "value": "emit" }, { "type": "CallExpression", "start": 384, "end": 426, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 384, "end": 409, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 50 } }, "object": { "type": "MemberExpression", "start": 384, "end": 404, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 45 } }, "object": { "type": "MemberExpression", "start": 384, "end": 399, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 40 } }, "object": { "type": "Identifier", "start": 384, "end": 391, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 32 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 392, "end": 399, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 40 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false }, "property": { "type": "Identifier", "start": 400, "end": 404, "loc": { "start": { "line": 8, "column": 41 }, "end": { "line": 8, "column": 45 }, "identifierName": "emit" }, "name": "emit" }, "computed": false }, "property": { "type": "Identifier", "start": 405, "end": 409, "loc": { "start": { "line": 8, "column": 46 }, "end": { "line": 8, "column": 50 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 410, "end": 425, "loc": { "start": { "line": 8, "column": 51 }, "end": { "line": 8, "column": 66 } }, "object": { "type": "Identifier", "start": 410, "end": 417, "loc": { "start": { "line": 8, "column": 51 }, "end": { "line": 8, "column": 58 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 418, "end": 425, "loc": { "start": { "line": 8, "column": 59 }, "end": { "line": 8, "column": 66 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false } ] } ] } }, { "type": "ExpressionStatement", "start": 432, "end": 499, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 71 } }, "expression": { "type": "CallExpression", "start": 432, "end": 499, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 432, "end": 444, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 16 } }, "object": { "type": "Identifier", "start": 432, "end": 439, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 11 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 440, "end": 444, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 16 }, "identifierName": "hide" }, "name": "hide" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 445, "end": 454, "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 26 } }, "extra": { "rawValue": "trigger", "raw": "'trigger'" }, "value": "trigger" }, { "type": "CallExpression", "start": 456, "end": 498, "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 70 } }, "callee": { "type": "MemberExpression", "start": 456, "end": 481, "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 53 } }, "object": { "type": "MemberExpression", "start": 456, "end": 476, "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 48 } }, "object": { "type": "MemberExpression", "start": 456, "end": 471, "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 43 } }, "object": { "type": "Identifier", "start": 456, "end": 463, "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 35 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 464, "end": 471, "loc": { "start": { "line": 9, "column": 36 }, "end": { "line": 9, "column": 43 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false }, "property": { "type": "Identifier", "start": 472, "end": 476, "loc": { "start": { "line": 9, "column": 44 }, "end": { "line": 9, "column": 48 }, "identifierName": "emit" }, "name": "emit" }, "computed": false }, "property": { "type": "Identifier", "start": 477, "end": 481, "loc": { "start": { "line": 9, "column": 49 }, "end": { "line": 9, "column": 53 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 482, "end": 497, "loc": { "start": { "line": 9, "column": 54 }, "end": { "line": 9, "column": 69 } }, "object": { "type": "Identifier", "start": 482, "end": 489, "loc": { "start": { "line": 9, "column": 54 }, "end": { "line": 9, "column": 61 }, "identifierName": "project" }, "name": "project" }, "property": { "type": "Identifier", "start": 490, "end": 497, "loc": { "start": { "line": 9, "column": 62 }, "end": { "line": 9, "column": 69 }, "identifierName": "emitter" }, "name": "emitter" }, "computed": false } ] } ] } } ], "directives": [] }, "trailingComments": [], "leadingComments": [], "innerComments": [] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "object": { "type": "Identifier", "name": "exports" }, "property": { "type": "Identifier", "name": "default", "trailingComments": [], "leadingComments": [], "innerComments": [] }, "computed": false }, "right": { "type": "Identifier", "start": 518, "end": 531, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 28 }, "identifierName": "attachEmitter" }, "name": "attachEmitter", "trailingComments": [], "leadingComments": [], "innerComments": [] } }, "trailingComments": [], "leadingComments": [], "innerComments": [] } ], "directives": [ { "type": "Directive", "value": { "type": "DirectiveLiteral", "value": "use strict" } } ] }, "comments": [], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "EventEmitter", "start": 9, "end": 21, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 22, "end": 23, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 24, "end": 28, "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "fbemitter", "start": 29, "end": 40, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 40 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 42, "end": 48, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 49, "end": 57, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "attachEmitter", "start": 58, "end": 71, "loc": { "start": { "line": 3, "column": 16 }, "end": { "line": 3, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 71, "end": 72, "loc": { "start": { "line": 3, "column": 29 }, "end": { "line": 3, "column": 30 } } }, { "type": { "label": "name", "be