UNPKG

awv3

Version:
1,478 lines (1,477 loc) 69.3 kB
{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Events", "range": [ 7, 13 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } } }, "range": [ 7, 13 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } } } ], "source": { "type": "Literal", "value": "awv3/core/events", "raw": "'awv3/core/events'", "range": [ 19, 37 ], "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 37 } } }, "range": [ 0, 38 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 38 } } }, { "type": "ExportDefaultDeclaration", "declaration": { "type": "ClassDeclaration", "id": { "type": "Identifier", "name": "ObservableMap", "range": [ 61, 74 ], "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 34 } } }, "superClass": { "type": "Identifier", "name": "Map", "range": [ 83, 86 ], "loc": { "start": { "line": 3, "column": 43 }, "end": { "line": 3, "column": 46 } } }, "body": { "type": "ClassBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "range": [ 93, 104 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "args", "range": [ 105, 109 ], "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 20 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Super", "range": [ 121, 126 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 13 } } }, "arguments": [ { "type": "Identifier", "name": "args", "range": [ 127, 131 ], "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 5, "column": 18 } } } ], "range": [ 121, 132 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 19 } } }, "range": [ 121, 133 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 20 } } } ], "range": [ 111, 139 ], "loc": { "start": { "line": 4, "column": 22 }, "end": { "line": 6, "column": 5 } } }, "generator": false, "expression": false, "range": [ 104, 139 ], "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 6, "column": 5 } } }, "kind": "constructor", "computed": false, "range": [ 93, 139 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 6, "column": 5 } }, "static": false }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "set", "range": [ 144, 147 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 7 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "RestElement", "argument": { "type": "Identifier", "name": "args", "range": [ 151, 155 ], "loc": { "start": { "line": 7, "column": 11 }, "end": { "line": 7, "column": 15 } } }, "range": [ 148, 155 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 15 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "state", "range": [ 171, 176 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 17 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 179, 183 ], "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 24 } } }, "property": { "type": "Identifier", "name": "values", "range": [ 184, 190 ], "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 31 } } }, "range": [ 179, 190 ], "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 31 } } }, "arguments": [], "range": [ 179, 192 ], "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 33 } } }, "range": [ 171, 192 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 33 } } } ], "kind": "let", "range": [ 167, 201 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 9, "column": 8 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Super", "range": [ 201, 206 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, "property": { "type": "Identifier", "name": "set", "range": [ 207, 210 ], "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 17 } } }, "range": [ 201, 210 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 17 } } }, "arguments": [ { "type": "SpreadElement", "argument": { "type": "Identifier", "name": "args", "range": [ 214, 218 ], "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 25 } } }, "range": [ 211, 218 ], "loc": { "start": { "line": 9, "column": 18 }, "end": { "line": 9, "column": 25 } } } ], "range": [ 201, 219 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 26 } } }, "range": [ 201, 220 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 27 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 229, 233 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "name": "emit", "range": [ 234, 238 ], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 17 } } }, "range": [ 229, 238 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 17 } } }, "arguments": [ { "type": "Literal", "value": "changed", "raw": "\"changed\"", "range": [ 239, 248 ], "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 27 } } }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 250, 254 ], "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 33 } } }, "property": { "type": "Identifier", "name": "values", "range": [ 255, 261 ], "loc": { "start": { "line": 10, "column": 34 }, "end": { "line": 10, "column": 40 } } }, "range": [ 250, 261 ], "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 40 } } }, "arguments": [], "range": [ 250, 263 ], "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 42 } } }, { "type": "Identifier", "name": "state", "range": [ 265, 270 ], "loc": { "start": { "line": 10, "column": 44 }, "end": { "line": 10, "column": 49 } } } ], "range": [ 229, 271 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 50 } } }, "range": [ 229, 276 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 11, "column": 4 } } } ], "range": [ 157, 277 ], "loc": { "start": { "line": 7, "column": 17 }, "end": { "line": 11, "column": 5 } } }, "generator": false, "expression": false, "range": [ 147, 277 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 11, "column": 5 } } }, "kind": "method", "computed": false, "range": [ 144, 277 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 11, "column": 5 } }, "static": false }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "delete", "range": [ 282, 288 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "args", "range": [ 289, 293 ], "loc": { "start": { "line": 12, "column": 11 }, "end": { "line": 12, "column": 15 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "state", "range": [ 309, 314 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 17 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 317, 321 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 24 } } }, "property": { "type": "Identifier", "name": "values", "range": [ 322, 328 ], "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 31 } } }, "range": [ 317, 328 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 31 } } }, "arguments": [], "range": [ 317, 330 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 33 } } }, "range": [ 309, 330 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 33 } } } ], "kind": "let", "range": [ 305, 339 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 14, "column": 8 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Super", "range": [ 339, 344 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 13 } } }, "property": { "type": "Identifier", "name": "delete", "range": [ 345, 351 ], "loc": { "start": { "line": 14, "column": 14 }, "end": { "line": 14, "column": 20 } } }, "range": [ 339, 351 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 20 } } }, "arguments": [ { "type": "Identifier", "name": "args", "range": [ 352, 356 ], "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 25 } } } ], "range": [ 339, 357 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 26 } } }, "range": [ 339, 358 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 27 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 367, 371 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "name": "emit", "range": [ 372, 376 ], "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 17 } } }, "range": [ 367, 376 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 17 } } }, "arguments": [ { "type": "Literal", "value": "changed", "raw": "\"changed\"", "range": [ 377, 386 ], "loc": { "start": { "line": 15, "column": 18 }, "end": { "line": 15, "column": 27 } } }, { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 388, 392 ], "loc": { "start": { "line": 15, "column": 29 }, "end": { "line": 15, "column": 33 } } }, "property": { "type": "Identifier", "name": "values", "range": [ 393, 399 ], "loc": { "start": { "line": 15, "column": 34 }, "end": { "line": 15, "column": 40 } } }, "range": [ 388, 399 ], "loc": { "start": { "line": 15, "column": 29 }, "end": { "line": 15, "column": 40 } } }, "arguments": [], "range": [ 388, 401 ], "loc": { "start": { "line": 15, "column": 29 }, "end": { "line": 15, "column": 42 } } }, { "type": "Identifier", "name": "state", "range": [ 403, 408 ], "loc": { "start": { "line": 15, "column": 44 }, "end": { "line": 15, "column": 49 } } } ], "range": [ 367, 409 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 50 } } }, "range": [ 367, 414 ], "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 16, "column": 4 } } } ], "range": [ 295, 415 ], "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 16, "column": 5 } } }, "generator": false, "expression": false, "range": [ 288, 415 ], "loc": { "start": { "line": 12, "column": 10 }, "end": { "line": 16, "column": 5 } } }, "kind": "method", "computed": false, "range": [ 282, 415 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 16, "column": 5 } }, "static": false }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "clear", "range": [ 420, 425 ], "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 9 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "args", "range": [ 426, 430 ], "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 14 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "state", "range": [ 446, 451 ], "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 17 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 454, 458 ], "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 24 } } }, "property": { "type": "Identifier", "name": "values", "range": [ 459, 465 ], "loc": { "start": { "line": 18, "column": 25