UNPKG

awv3

Version:
1,819 lines 72.4 kB
{ "type": "File", "start": 0, "end": 377, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 14, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 377, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 14, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 31, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 31 } }, "specifiers": [ { "type": "ImportNamespaceSpecifier", "start": 7, "end": 17, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 17 } }, "local": { "type": "Identifier", "start": 12, "end": 17, "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 17 }, "identifierName": "THREE" }, "name": "THREE" } } ], "source": { "type": "StringLiteral", "start": 23, "end": 30, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 1, "column": 30 } }, "extra": { "rawValue": "three", "raw": "'three'" }, "value": "three" } }, { "type": "ImportDeclaration", "start": 32, "end": 71, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 39 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 39, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 } }, "local": { "type": "Identifier", "start": 39, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 52, "end": 70, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 38 } }, "extra": { "rawValue": "../three/object3", "raw": "'../three/object3'" }, "value": "../three/object3" } }, { "type": "ExportDefaultDeclaration", "start": 73, "end": 376, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 13, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 88, "end": 376, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 13, "column": 1 } }, "id": { "type": "Identifier", "start": 94, "end": 98, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 25 }, "identifierName": "Pool" }, "name": "Pool" }, "superClass": { "type": "Identifier", "start": 107, "end": 114, "loc": { "start": { "line": 4, "column": 34 }, "end": { "line": 4, "column": 41 }, "identifierName": "Object3" }, "name": "Object3" }, "body": { "type": "ClassBody", "start": 115, "end": 376, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 13, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 121, "end": 374, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 12, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 121, "end": 132, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "ObjectPattern", "start": 133, "end": 144, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 27 } }, "properties": [ { "type": "ObjectProperty", "start": 135, "end": 142, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 25 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 135, "end": 142, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 25 }, "identifierName": "session" }, "name": "session" }, "value": { "type": "Identifier", "start": 135, "end": 142, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 25 }, "identifierName": "session" }, "name": "session" }, "extra": { "shorthand": true } } ] } ], "body": { "type": "BlockStatement", "start": 146, "end": 374, "loc": { "start": { "line": 5, "column": 29 }, "end": { "line": 12, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 156, "end": 164, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 16 } }, "expression": { "type": "CallExpression", "start": 156, "end": 163, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 15 } }, "callee": { "type": "Super", "start": 156, "end": 161, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 173, "end": 196, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 173, "end": 195, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 173, "end": 185, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 20 } }, "object": { "type": "ThisExpression", "start": 173, "end": 177, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 12 } } }, "property": { "type": "Identifier", "start": 178, "end": 185, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 20 }, "identifierName": "session" }, "name": "session" }, "computed": false }, "right": { "type": "Identifier", "start": 188, "end": 195, "loc": { "start": { "line": 7, "column": 23 }, "end": { "line": 7, "column": 30 }, "identifierName": "session" }, "name": "session" } } }, { "type": "ExpressionStatement", "start": 205, "end": 236, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 205, "end": 235, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 205, "end": 219, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 22 } }, "object": { "type": "ThisExpression", "start": 205, "end": 209, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 210, "end": 219, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 22 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false }, "right": { "type": "NewExpression", "start": 222, "end": 235, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 8, "column": 38 } }, "callee": { "type": "Identifier", "start": 226, "end": 233, "loc": { "start": { "line": 8, "column": 29 }, "end": { "line": 8, "column": 36 }, "identifierName": "Object3" }, "name": "Object3" }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 245, "end": 290, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 53 } }, "expression": { "type": "AssignmentExpression", "start": 245, "end": 289, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 245, "end": 281, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 44 } }, "object": { "type": "MemberExpression", "start": 245, "end": 259, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 22 } }, "object": { "type": "ThisExpression", "start": 245, "end": 249, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 250, "end": 259, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 22 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false }, "property": { "type": "Identifier", "start": 260, "end": 281, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 44 }, "identifierName": "updateParentMaterials" }, "name": "updateParentMaterials" }, "computed": false }, "right": { "type": "BooleanLiteral", "start": 284, "end": 289, "loc": { "start": { "line": 9, "column": 47 }, "end": { "line": 9, "column": 52 } }, "value": false } } }, { "type": "ExpressionStatement", "start": 299, "end": 333, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 299, "end": 332, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 41 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 299, "end": 324, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 33 } }, "object": { "type": "MemberExpression", "start": 299, "end": 313, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 22 } }, "object": { "type": "ThisExpression", "start": 299, "end": 303, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 304, "end": 313, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 22 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false }, "property": { "type": "Identifier", "start": 314, "end": 324, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 33 }, "identifierName": "measurable" }, "name": "measurable" }, "computed": false }, "right": { "type": "BooleanLiteral", "start": 327, "end": 332, "loc": { "start": { "line": 10, "column": 36 }, "end": { "line": 10, "column": 41 } }, "value": false } } }, { "type": "ExpressionStatement", "start": 342, "end": 368, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 34 } }, "expression": { "type": "CallExpression", "start": 342, "end": 367, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 342, "end": 351, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 17 } }, "object": { "type": "Super", "start": 342, "end": 347, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 13 } } }, "property": { "type": "Identifier", "start": 348, "end": 351, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 17 }, "identifierName": "add" }, "name": "add" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 352, "end": 366, "loc": { "start": { "line": 11, "column": 18 }, "end": { "line": 11, "column": 32 } }, "object": { "type": "ThisExpression", "start": 352, "end": 356, "loc": { "start": { "line": 11, "column": 18 }, "end": { "line": 11, "column": 22 } } }, "property": { "type": "Identifier", "start": 357, "end": 366, "loc": { "start": { "line": 11, "column": 23 }, "end": { "line": 11, "column": 32 }, "identifierName": "temporary" }, "name": "temporary" }, "computed": false } ] } } ], "directives": [] } } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "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": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "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": "as", "start": 9, "end": 11, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "THREE", "start": 12, "end": 17, "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 18, "end": 22, "loc": { "start": { "line": 1, "column": 18 }, "end": { "line": 1, "column": 22 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "three", "start": 23, "end": 30, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 1, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 30, "end": 31, "loc": { "start": { "line": 1, "column": 30 }, "end": { "line": 1, "column": 31 } } }, { "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": 32, "end": 38, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Object3", "start": 39, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 47, "end": 51, "loc": { "start": { "line": 2, "column": 15 }, "end": { "line": 2, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../three/object3", "start": 52, "end": 70, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 70, "end": 71, "loc": { "start": { "line": 2, "column": 38 }, "end": { "line": 2, "column": 39 } } }, { "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": 73, "end": 79, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 6 } } }, { "type": { "label": "default", "keyword": "default", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "default", "start": 80, "end": 87, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 14 } } }, { "type": { "label": "class", "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "class", "start": 88, "end": 93, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 4, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Pool", "start": 94, "end": 98, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 25 } } }, { "type": { "label": "extends", "keyword": "extends", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "extends", "start": 99, "end": 106, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Object3", "start": 107, "end": 114, "loc": { "start": { "line": 4, "column": 34 }, "end": { "line": 4, "column": 41 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 115, "end": 116, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 4, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 121, "end": 132, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 132, "end": 133, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 133, "end": 134, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "session", "start": 135, "end": 142, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 143, "end": 144, "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 144, "end": 145, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 146, "end": 147, "loc": { "start": { "line": 5, "column": 29 }, "end": { "line": 5, "column": 30 } } }, { "type": { "label": "super", "keyword": "super", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "super", "start": 156, "end": 161, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 161, "end": 162, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 162, "end": 163, "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 15 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 163, "end": 164, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 16 } } }, { "type": { "label": "this", "keyword": "this", "b