UNPKG

oxygen-core

Version:

Oxygen game engine (Xenon Core for browsers)

1,238 lines 26.2 kB
{ "type": "File", "start": 0, "end": 172, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 10, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 172, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 10, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 43, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 43 } }, "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": "box2d" }, "name": "box2d" } } ], "source": { "type": "StringLiteral", "start": 23, "end": 42, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 1, "column": 42 } }, "extra": { "rawValue": "box2dweb-commonjs", "raw": "'box2dweb-commonjs'" }, "value": "box2dweb-commonjs" } }, { "type": "ExportAllDeclaration", "start": 47, "end": 81, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 34 } }, "source": { "type": "StringLiteral", "start": 61, "end": 80, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 33 } }, "extra": { "rawValue": "box2dweb-commonjs", "raw": "'box2dweb-commonjs'" }, "value": "box2dweb-commonjs" } }, { "type": "ExportNamedDeclaration", "start": 83, "end": 116, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 33 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 90, "end": 116, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 33 } }, "declarations": [ { "type": "VariableDeclarator", "start": 96, "end": 115, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 32 } }, "id": { "type": "Identifier", "start": 96, "end": 101, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 18 }, "identifierName": "Box2D" }, "name": "Box2D" }, "init": { "type": "MemberExpression", "start": 104, "end": 115, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 32 } }, "object": { "type": "Identifier", "start": 104, "end": 109, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 26 }, "identifierName": "box2d" }, "name": "box2d" }, "property": { "type": "Identifier", "start": 110, "end": 115, "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 32 }, "identifierName": "Box2D" }, "name": "Box2D" }, "computed": false } } ], "kind": "const", "leadingComments": [], "trailingComments": [] } }, { "type": "ExportDefaultDeclaration", "start": 120, "end": 170, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 9, "column": 1 } }, "declaration": { "type": "ObjectExpression", "start": 135, "end": 170, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 9, "column": 1 } }, "properties": [ { "type": "SpreadProperty", "start": 140, "end": 148, "loc": { "start": { "line": 7, "column": 2 }, "end": { "line": 7, "column": 10 } }, "argument": { "type": "Identifier", "start": 143, "end": 148, "loc": { "start": { "line": 7, "column": 5 }, "end": { "line": 7, "column": 10 }, "identifierName": "box2d" }, "name": "box2d" } }, { "type": "SpreadProperty", "start": 153, "end": 167, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 16 } }, "argument": { "type": "MemberExpression", "start": 156, "end": 167, "loc": { "start": { "line": 8, "column": 5 }, "end": { "line": 8, "column": 16 } }, "object": { "type": "Identifier", "start": 156, "end": 161, "loc": { "start": { "line": 8, "column": 5 }, "end": { "line": 8, "column": 10 }, "identifierName": "box2d" }, "name": "box2d" }, "property": { "type": "Identifier", "start": 162, "end": 167, "loc": { "start": { "line": 8, "column": 11 }, "end": { "line": 8, "column": 16 }, "identifierName": "Box2D" }, "name": "Box2D" }, "computed": false } } ], "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "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": "box2d", "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": "box2dweb-commonjs", "start": 23, "end": 42, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 1, "column": 42 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 42, "end": 43, "loc": { "start": { "line": 1, "column": 42 }, "end": { "line": 1, "column": 43 } } }, { "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": 47, "end": 53, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 54, "end": 55, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 56, "end": 60, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 13 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "box2dweb-commonjs", "start": 61, "end": 80, "loc": { "start": { "line": 3, "column": 14 }, "end": { "line": 3, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 80, "end": 81, "loc": { "start": { "line": 3, "column": 33 }, "end": { "line": 3, "column": 34 } } }, { "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": 83, "end": 89, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 6 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 90, "end": 95, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Box2D", "start": 96, "end": 101, "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 102, "end": 103, "loc": { "start": { "line": 4, "column": 19 }, "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": "box2d", "start": 104, "end": 109, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 109, "end": 110, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Box2D", "start": 110, "end": 115, "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 32 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 115, "end": 116, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 33 } } }, { "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": 120, "end": 126, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "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": 127, "end": 134, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 135, "end": 136, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 16 } } }, { "type": { "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 140, "end": 143, "loc": { "start": { "line": 7, "column": 2 }, "end": { "line": 7, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "box2d", "start": 143, "end": 148, "loc": { "start": { "line": 7, "column": 5 }, "end": { "line": 7, "column": 10 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 148, "end": 149, "loc": { "start": { "line": 7, "column": 10 }, "end": { "line": 7, "column": 11 } } }, { "type": { "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 153, "end": 156, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "box2d", "start": 156, "end": 161, "loc": { "start": { "line": 8, "column": 5 }, "end": { "line": 8, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 161, "end": 162, "loc": { "start": { "line": 8, "column": 10 }, "end": { "line": 8, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Box2D", "start": 162, "end": 167, "loc": { "start": { "line": 8, "column": 11 }, "end": { "line": 8, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 169, "end": 170, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 172, "end": 172, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 0 } } } ] }