UNPKG

seed-engine

Version:

A Lightweight 2D game engine using WebGL2. The engine is designed on the focus of creating a bridge between creating and publishing games to the Seed Network as modules.

2,026 lines (2,025 loc) 62 kB
{ "type": "File", "start": 0, "end": 410, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 17, "column": 29 } }, "program": { "type": "Program", "start": 0, "end": 410, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 17, "column": 29 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 32, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 32 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } }, "local": { "type": "Identifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 }, "identifierName": "Manager" }, "name": "Manager" } } ], "source": { "type": "StringLiteral", "start": 20, "end": 31, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 31 } }, "extra": { "rawValue": "./Manager", "raw": "'./Manager'" }, "value": "./Manager" } }, { "type": "ExportNamedDeclaration", "start": 34, "end": 335, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 14, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 41, "end": 335, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 14, "column": 1 } }, "id": { "type": "Identifier", "start": 47, "end": 61, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 27 }, "identifierName": "_ObjectManager" }, "name": "_ObjectManager" }, "superClass": { "type": "Identifier", "start": 70, "end": 77, "loc": { "start": { "line": 3, "column": 36 }, "end": { "line": 3, "column": 43 }, "identifierName": "Manager" }, "name": "Manager" }, "body": { "type": "ClassBody", "start": 78, "end": 335, "loc": { "start": { "line": 3, "column": 44 }, "end": { "line": 14, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 84, "end": 160, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 7, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 84, "end": 95, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 98, "end": 160, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 7, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 108, "end": 116, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 16 } }, "expression": { "type": "CallExpression", "start": 108, "end": 115, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 15 } }, "callee": { "type": "Super", "start": 108, "end": 113, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 125, "end": 154, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 37 } }, "expression": { "type": "AssignmentExpression", "start": 125, "end": 153, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 125, "end": 149, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 32 } }, "object": { "type": "ThisExpression", "start": 125, "end": 129, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 12 } } }, "property": { "type": "Identifier", "start": 130, "end": 149, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 32 }, "identifierName": "gameObjectIDCounter" }, "name": "gameObjectIDCounter" }, "computed": false }, "right": { "type": "NumericLiteral", "start": 152, "end": 153, "loc": { "start": { "line": 6, "column": 35 }, "end": { "line": 6, "column": 36 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 166, "end": 333, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 13, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 166, "end": 184, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 22 }, "identifierName": "registerUpdateable" }, "name": "registerUpdateable" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 185, "end": 195, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 33 }, "identifierName": "gameObject" }, "name": "gameObject" } ], "body": { "type": "BlockStatement", "start": 197, "end": 333, "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 13, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 207, "end": 250, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 51 } }, "expression": { "type": "AssignmentExpression", "start": 207, "end": 249, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 50 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 207, "end": 220, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 21 } }, "object": { "type": "Identifier", "start": 207, "end": 217, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 18 }, "identifierName": "gameObject" }, "name": "gameObject" }, "property": { "type": "Identifier", "start": 218, "end": 220, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 21 }, "identifierName": "id" }, "name": "id" }, "computed": false }, "right": { "type": "UpdateExpression", "start": 223, "end": 249, "loc": { "start": { "line": 10, "column": 24 }, "end": { "line": 10, "column": 50 } }, "operator": "++", "prefix": false, "argument": { "type": "MemberExpression", "start": 223, "end": 247, "loc": { "start": { "line": 10, "column": 24 }, "end": { "line": 10, "column": 48 } }, "object": { "type": "ThisExpression", "start": 223, "end": 227, "loc": { "start": { "line": 10, "column": 24 }, "end": { "line": 10, "column": 28 } } }, "property": { "type": "Identifier", "start": 228, "end": 247, "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 48 }, "identifierName": "gameObjectIDCounter" }, "name": "gameObjectIDCounter" }, "computed": false } } } }, { "type": "VariableDeclaration", "start": 259, "end": 292, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", "start": 263, "end": 292, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 41 } }, "id": { "type": "Identifier", "start": 263, "end": 281, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 30 }, "identifierName": "deregisterCallback" }, "name": "deregisterCallback" }, "init": { "type": "ArrowFunctionExpression", "start": 284, "end": 292, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 41 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 290, "end": 292, "loc": { "start": { "line": 11, "column": 39 }, "end": { "line": 11, "column": 41 } }, "body": [], "directives": [] } } } ], "kind": "let" }, { "type": "ReturnStatement", "start": 301, "end": 327, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 34 } }, "argument": { "type": "Identifier", "start": 308, "end": 326, "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 33 }, "identifierName": "deregisterCallback" }, "name": "deregisterCallback" } } ], "directives": [] } } ] }, "leadingComments": [], "trailingComments": [] } }, { "type": "Identifier", "start": 337, "end": 380, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 43 } }, "declarations": [ { "type": "VariableDeclarator", "start": 343, "end": 379, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 42 } }, "id": { "type": "Identifier", "start": 343, "end": 356, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 19 }, "identifierName": "ObjectManager" }, "name": "ObjectManager" }, "init": { "type": "NewExpression", "start": 359, "end": 379, "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 16, "column": 42 } }, "callee": { "type": "Identifier", "start": 363, "end": 377, "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 40 }, "identifierName": "_ObjectManager" }, "name": "_ObjectManager" }, "arguments": [] } } ], "kind": "const", "name": "_", "leadingComments": [], "trailingComments": [] }, { "type": "Identifier", "start": 381, "end": 410, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 29 } }, "declaration": { "type": "Identifier", "start": 396, "end": 409, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 28 }, "identifierName": "ObjectManager" }, "name": "ObjectManager" }, "name": "_", "leadingComments": [], "trailingComments": [] }, { "type": "ExportDefaultDeclaration", "start": 381, "end": 410, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 29 } }, "declaration": { "type": "VariableDeclaration", "kind": "let", "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "ObjectManager" }, "init": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "_ObjectManager" } } } ], "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": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Manager", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 15, "end": 19, "loc": { "start": { "line": 1, "column": 15 }, "end": { "line": 1, "column": 19 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./Manager", "start": 20, "end": 31, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 31, "end": 32, "loc": { "start": { "line": 1, "column": 31 }, "end": { "line": 1, "column": 32 } } }, { "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": 34, "end": 40, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "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": 41, "end": 46, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_ObjectManager", "start": 47, "end": 61, "loc": { "start": { "line": 3, "column": 13 }, "end": { "line": 3, "column": 27 } } }, { "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": 62, "end": 69, "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 3, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Manager", "start": 70, "end": 77, "loc": { "start": { "line": 3, "column": 36 }, "end": { "line": 3, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 78, "end": 79, "loc": { "start": { "line": 3, "column": 44 }, "end": { "line": 3, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 84, "end": 95, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 95, "end": 96, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 4, "column": 16 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 96, "end": 97, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 17 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 98, "end": 99, "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 19 } } }, { "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": 108, "end": 113, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 113, "end": 114, "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 114, "end": 115, "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 5, "column": 15 } } }, { "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": 5, "column": 15 }, "end": { "line": 5, "column": 16 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 125, "end": 129, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 129, "end": 130, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gameObjectIDCounter", "start": 130, "end": 149, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 32 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 150, "end": 151, "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 34 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 152, "end": 153, "loc": { "start": { "line": 6, "column": 35 }, "end": { "line": 6, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 153, "end": 154, "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 6, "column": 37 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 159, "end": 160, "loc": { "start": { "line": 7, "column": 4 }, "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": "registerUpdateable", "start": 166, "end": 184, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 184, "end": 185, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gameObject", "start": 185, "end": 195, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 195, "end": 196, "loc": { "start": { "line": 9, "column": 33 }, "end": { "line": 9, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 197, "end": 198, "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 9, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gameObject", "start": 207, "end": 217, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 217, "end": 218, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 218, "end": 220, "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 221, "end": 222, "loc": { "start": { "line": 10, "column": 22 }, "end": { "line": 10, "column": 23 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 223, "end": 227, "loc": { "start": { "line": 10, "column": 24 }, "end": { "line": 10, "column": 28 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 227, "end": 228, "loc": { "start": { "line": 10, "column": 28 }, "end": { "line": 10, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gameObjectIDCounter", "start": 228, "end": 247, "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 48 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 247, "end": 249, "loc": { "start": { "line": 10, "column": 48 }, "end": { "line": 10, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 249, "end": 250, "loc": { "start": { "line": 10, "column": 50 }, "end": { "line": 10, "column": 51 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 259, "end": 262, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "deregisterCallback", "start": 263, "end": 281, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 282, "end": 283, "loc": { "start": { "line": 11, "column": 31 }, "end": {