UNPKG

awv3

Version:
1,519 lines 970 kB
{ "type": "Program", "start": 0, "end": 8261, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 246, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 41, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 41 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 11, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 11 } }, "local": { "type": "Identifier", "start": 7, "end": 11, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 11 } }, "name": "Base" } } ], "importKind": "value", "source": { "type": "Literal", "start": 17, "end": 40, "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 40 } }, "value": "../communication/base", "rawValue": "../communication/base", "raw": "'../communication/base'" } }, { "type": "ImportDeclaration", "start": 42, "end": 103, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 61 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 51, "end": 64, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 22 } }, "imported": { "type": "Identifier", "start": 51, "end": 64, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 22 } }, "name": "createContext" }, "local": { "type": "Identifier", "start": 51, "end": 64, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 22 } }, "name": "createContext" } }, { "type": "ImportSpecifier", "start": 66, "end": 78, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 36 } }, "imported": { "type": "Identifier", "start": 66, "end": 78, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 36 } }, "name": "handleResult" }, "local": { "type": "Identifier", "start": 66, "end": 78, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 36 } }, "name": "handleResult" } } ], "importKind": "value", "source": { "type": "Literal", "start": 86, "end": 102, "loc": { "start": { "line": 2, "column": 44 }, "end": { "line": 2, "column": 60 } }, "value": "../core/parser", "rawValue": "../core/parser", "raw": "'../core/parser'" } }, { "type": "ImportDeclaration", "start": 104, "end": 140, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 36 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 111, "end": 117, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "local": { "type": "Identifier", "start": 111, "end": 117, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "name": "Parser" } } ], "importKind": "value", "source": { "type": "Literal", "start": 123, "end": 139, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 35 } }, "value": "../core/parser", "rawValue": "../core/parser", "raw": "'../core/parser'" } }, { "type": "ExportDefaultDeclaration", "start": 142, "end": 7498, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 224, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 157, "end": 7498, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 224, "column": 1 } }, "id": { "type": "Identifier", "start": 163, "end": 170, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 28 } }, "name": "SignalR" }, "superClass": { "type": "Identifier", "start": 179, "end": 183, "loc": { "start": { "line": 5, "column": 37 }, "end": { "line": 5, "column": 41 } }, "name": "Base" }, "body": { "type": "ClassBody", "start": 184, "end": 7498, "loc": { "start": { "line": 5, "column": 42 }, "end": { "line": 224, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 190, "end": 3213, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 96, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 190, "end": 201, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 201, "end": 3213, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 96, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 202, "end": 214, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 28 } }, "operator": "=", "left": { "type": "Identifier", "start": 202, "end": 209, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 23 } }, "name": "options" }, "right": { "type": "ObjectExpression", "start": 212, "end": 214, "loc": { "start": { "line": 6, "column": 26 }, "end": { "line": 6, "column": 28 } }, "properties": [] } } ], "body": { "type": "BlockStatement", "start": 216, "end": 3213, "loc": { "start": { "line": 6, "column": 30 }, "end": { "line": 96, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 226, "end": 241, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 23 } }, "expression": { "type": "CallExpression", "start": 226, "end": 240, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 22 } }, "callee": { "type": "Super", "start": 226, "end": 231, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 232, "end": 239, "loc": { "start": { "line": 7, "column": 14 }, "end": { "line": 7, "column": 21 } }, "name": "options" } ] } }, { "type": "ExpressionStatement", "start": 259, "end": 293, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 259, "end": 292, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 41 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 259, "end": 268, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 17 } }, "object": { "type": "ThisExpression", "start": 259, "end": 263, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 264, "end": 268, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 17 } }, "name": "ping" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 271, "end": 292, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 41 } }, "left": { "type": "MemberExpression", "start": 271, "end": 283, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 32 } }, "object": { "type": "Identifier", "start": 271, "end": 278, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 27 } }, "name": "options" }, "property": { "type": "Identifier", "start": 279, "end": 283, "loc": { "start": { "line": 9, "column": 28 }, "end": { "line": 9, "column": 32 } }, "name": "ping" }, "computed": false }, "operator": "||", "right": { "type": "Literal", "start": 287, "end": 292, "loc": { "start": { "line": 9, "column": 36 }, "end": { "line": 9, "column": 41 } }, "value": 10000, "rawValue": 10000, "raw": "10000" } } } }, { "type": "ExpressionStatement", "start": 302, "end": 327, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 302, "end": 326, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 302, "end": 314, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 20 } }, "object": { "type": "ThisExpression", "start": 302, "end": 306, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 307, "end": 314, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 20 } }, "name": "onPause" }, "computed": false }, "right": { "type": "Identifier", "start": 317, "end": 326, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 32 } }, "name": "undefined" } } }, { "type": "ExpressionStatement", "start": 336, "end": 362, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 336, "end": 361, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 336, "end": 349, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 21 } }, "object": { "type": "ThisExpression", "start": 336, "end": 340, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 341, "end": 349, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 21 } }, "name": "onResume" }, "computed": false }, "right": { "type": "Identifier", "start": 352, "end": 361, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 33 } }, "name": "undefined" } } }, { "type": "ExpressionStatement", "start": 372, "end": 389, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 25 } }, "expression": { "type": "MemberExpression", "start": 372, "end": 388, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 24 } }, "object": { "type": "ThisExpression", "start": 372, "end": 376, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 377, "end": 388, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 24 } }, "name": "_connection" }, "computed": false } }, { "type": "ExpressionStatement", "start": 398, "end": 414, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 24 } }, "expression": { "type": "MemberExpression", "start": 398, "end": 413, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 23 } }, "object": { "type": "ThisExpression", "start": 398, "end": 402, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 403, "end": 413, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 23 } }, "name": "_heartbeat" }, "computed": false } }, { "type": "ExpressionStatement", "start": 423, "end": 437, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 22 } }, "expression": { "type": "MemberExpression", "start": 423, "end": 436, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 21 } }, "object": { "type": "ThisExpression", "start": 423, "end": 427, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "start": 428, "end": 436, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 21 } }, "name": "_timeout" }, "computed": false } }, { "type": "ExpressionStatement", "start": 446, "end": 463, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 25 } }, "expression": { "type": "MemberExpression", "start": 446, "end": 462, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 24 } }, "object": { "type": "ThisExpression", "start": 446, "end": 450, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "start": 451, "end": 462, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 24 } }, "name": "_queueBlock" }, "computed": false } }, { "type": "ExpressionStatement", "start": 472, "end": 493, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 29 } }, "expression": { "type": "MemberExpression", "start": 472, "end": 492, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 28 } }, "object": { "type": "ThisExpression", "start": 472, "end": 476, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "start": 477, "end": 492, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 28 } }, "name": "_currentResolve" }, "computed": false } }, { "type": "ExpressionStatement", "start": 502, "end": 522, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 28 } }, "expression": { "type": "MemberExpression", "start": 502, "end": 521, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 27 } }, "object": { "type": "ThisExpression", "start": 502, "end": 506, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "start": 507, "end": 521, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 27 } }, "name": "_currentReject" }, "computed": false } }, { "type": "ExpressionStatement", "start": 531, "end": 548, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 531, "end": 547, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 531, "end": 542, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 19 } }, "object": { "type": "ThisExpression", "start": 531, "end": 535, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } } }, "property": { "type": "Identifier", "start": 536, "end": 542, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 19 } }, "name": "_queue" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 545, "end": 547, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 24 } }, "elements": [] } } }, { "type": "ExpressionStatement", "start": 557, "end": 592, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 43 } }, "expression": { "type": "AssignmentExpression", "start": 557, "end": 591, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 42 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 557, "end": 571, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 22 } }, "object": { "type": "ThisExpression", "start": 557, "end": 561, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 12 } } }, "property": { "type": "Identifier", "start": 562, "end": 571, "loc": { "start": { "line": 20, "column": 13 }, "end": { "line": 20, "column": 22 } }, "name": "_sequence" }, "computed": false }, "right": { "type": "CallExpression", "start": 574, "end": 591, "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 574, "end": 589, "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 40 } }, "object": { "type": "Identifier", "start": 574, "end": 581, "loc": { "start": { "line": 20, "column": 25 }, "end": { "line": 20, "column": 32 } }, "name": "Promise" }, "property": { "type": "Identifier", "start": 582, "end": 589, "loc": { "start": { "line": 20, "column": 33 }, "end": { "line": 20, "column": 40 } }, "name": "resolve" }, "computed": false }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 601, "end": 622, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 601, "end": 621, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 28 } }, "op