mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
2814 lines
66 KiB
JSON
2814 lines
66 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 1268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 0
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 1268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "module",
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 0,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 68
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 9,
|
|
"end": 32,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 32
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 9,
|
|
"end": 32,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 32
|
|
},
|
|
"identifierName": "BasicSerializableObject"
|
|
},
|
|
"name": "BasicSerializableObject"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 9,
|
|
"end": 32,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 32
|
|
},
|
|
"identifierName": "BasicSerializableObject"
|
|
},
|
|
"name": "BasicSerializableObject"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 40,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 67
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "../savegame/serialization",
|
|
"raw": "\"../savegame/serialization\""
|
|
},
|
|
"value": "../savegame/serialization"
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 72,
|
|
"end": 998,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 1
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "ClassDeclaration",
|
|
"start": 79,
|
|
"end": 998,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 85,
|
|
"end": 94,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 22
|
|
},
|
|
"identifierName": "Component"
|
|
},
|
|
"name": "Component"
|
|
},
|
|
"superClass": {
|
|
"type": "Identifier",
|
|
"start": 103,
|
|
"end": 126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 54
|
|
},
|
|
"identifierName": "BasicSerializableObject"
|
|
},
|
|
"name": "BasicSerializableObject"
|
|
},
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start": 127,
|
|
"end": 998,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 219,
|
|
"end": 298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 226,
|
|
"end": 231,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 16
|
|
},
|
|
"identifierName": "getId"
|
|
},
|
|
"name": "getId"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 234,
|
|
"end": 298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 245,
|
|
"end": 254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 9,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 17
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"start": 245,
|
|
"end": 253,
|
|
"loc": {
|
|
"start": {
|
|
"line": 9,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 16
|
|
},
|
|
"identifierName": "abstract"
|
|
},
|
|
"name": "abstract"
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 264,
|
|
"end": 291,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "StringLiteral",
|
|
"start": 271,
|
|
"end": 290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "unknown-component",
|
|
"raw": "\"unknown-component\""
|
|
},
|
|
"value": "unknown-component"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the components unique id\r\n * @returns {string}\r\n ",
|
|
"start": 134,
|
|
"end": 213,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the schema used for serialization\r\n ",
|
|
"start": 306,
|
|
"end": 374,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 380,
|
|
"end": 427,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 387,
|
|
"end": 396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 20
|
|
},
|
|
"identifierName": "getSchema"
|
|
},
|
|
"name": "getSchema"
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 399,
|
|
"end": 427,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 410,
|
|
"end": 420,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 18
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ObjectExpression",
|
|
"start": 417,
|
|
"end": 419,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 17
|
|
}
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the schema used for serialization\r\n ",
|
|
"start": 306,
|
|
"end": 374,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Copy the current state to another component\r\n * @param {Component} otherComponent\r\n ",
|
|
"start": 435,
|
|
"end": 541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 547,
|
|
"end": 587,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 44
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 547,
|
|
"end": 568,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 25
|
|
},
|
|
"identifierName": "copyAdditionalStateTo"
|
|
},
|
|
"name": "copyAdditionalStateTo",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 569,
|
|
"end": 583,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 40
|
|
},
|
|
"identifierName": "otherComponent"
|
|
},
|
|
"name": "otherComponent"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 585,
|
|
"end": 587,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 44
|
|
}
|
|
},
|
|
"body": [],
|
|
"directives": [],
|
|
"leadingComments": null,
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Copy the current state to another component\r\n * @param {Component} otherComponent\r\n ",
|
|
"start": 435,
|
|
"end": 541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " dev:start ",
|
|
"start": 595,
|
|
"end": 610,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fixes typeof DerivedComponent is not assignable to typeof Component, compiled out\r\n * in non-dev builds\r\n ",
|
|
"start": 618,
|
|
"end": 746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 752,
|
|
"end": 799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 752,
|
|
"end": 763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 15
|
|
},
|
|
"identifierName": "constructor"
|
|
},
|
|
"name": "constructor",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "constructor",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "RestElement",
|
|
"start": 764,
|
|
"end": 771,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 23
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 767,
|
|
"end": 771,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 23
|
|
},
|
|
"identifierName": "args"
|
|
},
|
|
"name": "args"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 773,
|
|
"end": 799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 784,
|
|
"end": 792,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 16
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 784,
|
|
"end": 791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 15
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Super",
|
|
"start": 784,
|
|
"end": 789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " dev:start ",
|
|
"start": 595,
|
|
"end": 610,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fixes typeof DerivedComponent is not assignable to typeof Component, compiled out\r\n * in non-dev builds\r\n ",
|
|
"start": 618,
|
|
"end": 746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a string representing the components data, only in dev builds\r\n * @returns {string}\r\n ",
|
|
"start": 807,
|
|
"end": 923,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 929,
|
|
"end": 976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 929,
|
|
"end": 943,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 18
|
|
},
|
|
"identifierName": "getDebugString"
|
|
},
|
|
"name": "getDebugString",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 946,
|
|
"end": 976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 957,
|
|
"end": 969,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 20
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "NullLiteral",
|
|
"start": 964,
|
|
"end": 968,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 19
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a string representing the components data, only in dev builds\r\n * @returns {string}\r\n ",
|
|
"start": 807,
|
|
"end": 923,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " dev:end ",
|
|
"start": 982,
|
|
"end": 995,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 17
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"trailingComments": null
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * TypeScript does not support Abstract Static methods (https://github.com/microsoft/TypeScript/issues/34516)\r\n * One workaround is to declare the type of the component and reference that for static methods\r\n * @typedef {typeof Component} StaticComponent\r\n ",
|
|
"start": 1002,
|
|
"end": 1266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"leadingComments": []
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * TypeScript does not support Abstract Static methods (https://github.com/microsoft/TypeScript/issues/34516)\r\n * One workaround is to declare the type of the component and reference that for static methods\r\n * @typedef {typeof Component} StaticComponent\r\n ",
|
|
"start": 1002,
|
|
"end": 1266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the components unique id\r\n * @returns {string}\r\n ",
|
|
"start": 134,
|
|
"end": 213,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the schema used for serialization\r\n ",
|
|
"start": 306,
|
|
"end": 374,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Copy the current state to another component\r\n * @param {Component} otherComponent\r\n ",
|
|
"start": 435,
|
|
"end": 541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " dev:start ",
|
|
"start": 595,
|
|
"end": 610,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fixes typeof DerivedComponent is not assignable to typeof Component, compiled out\r\n * in non-dev builds\r\n ",
|
|
"start": 618,
|
|
"end": 746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a string representing the components data, only in dev builds\r\n * @returns {string}\r\n ",
|
|
"start": 807,
|
|
"end": 923,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " dev:end ",
|
|
"start": 982,
|
|
"end": 995,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * TypeScript does not support Abstract Static methods (https://github.com/microsoft/TypeScript/issues/34516)\r\n * One workaround is to declare the type of the component and reference that for static methods\r\n * @typedef {typeof Component} StaticComponent\r\n ",
|
|
"start": 1002,
|
|
"end": 1266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"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": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"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": "BasicSerializableObject",
|
|
"start": 9,
|
|
"end": 32,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 33,
|
|
"end": 34,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 35,
|
|
"end": 39,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "../savegame/serialization",
|
|
"start": 40,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 67,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 67
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 72,
|
|
"end": 78,
|
|
"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": 79,
|
|
"end": 84,
|
|
"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": "Component",
|
|
"start": 85,
|
|
"end": 94,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 95,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "BasicSerializableObject",
|
|
"start": 103,
|
|
"end": 126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 127,
|
|
"end": 128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns the components unique id\r\n * @returns {string}\r\n ",
|
|
"start": 134,
|
|
"end": 213,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "static",
|
|
"start": 219,
|
|
"end": 225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getId",
|
|
"start": 226,
|
|
"end": 231,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 231,
|
|
"end": 232,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 232,
|
|
"end": 233,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 234,
|
|
"end": 235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "abstract",
|
|
"start": 245,
|
|
"end": 253,
|
|
"loc": {
|
|
"start": {
|
|
"line": 9,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 253,
|
|
"end": 254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 9,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 9,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 264,
|
|
"end": 270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "unknown-component",
|
|
"start": 271,
|
|
"end": 290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 290,
|
|
"end": 291,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 297,
|
|
"end": 298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Should return the schema used for serialization\r\n ",
|
|
"start": 306,
|
|
"end": 374,
|
|
"loc": {
|
|
"start": {
|
|
"line": 13,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "static",
|
|
"start": 380,
|
|
"end": 386,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSchema",
|
|
"start": 387,
|
|
"end": 396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 396,
|
|
"end": 397,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 397,
|
|
"end": 398,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 399,
|
|
"end": 400,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 410,
|
|
"end": 416,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 417,
|
|
"end": 418,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 418,
|
|
"end": 419,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 419,
|
|
"end": 420,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 426,
|
|
"end": 427,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Copy the current state to another component\r\n * @param {Component} otherComponent\r\n ",
|
|
"start": 435,
|
|
"end": 541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "copyAdditionalStateTo",
|
|
"start": 547,
|
|
"end": 568,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 568,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "otherComponent",
|
|
"start": 569,
|
|
"end": 583,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 583,
|
|
"end": 584,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 585,
|
|
"end": 586,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 586,
|
|
"end": 587,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " dev:start ",
|
|
"start": 595,
|
|
"end": 610,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fixes typeof DerivedComponent is not assignable to typeof Component, compiled out\r\n * in non-dev builds\r\n ",
|
|
"start": 618,
|
|
"end": 746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 31,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "constructor",
|
|
"start": 752,
|
|
"end": 763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 763,
|
|
"end": 764,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "...",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 764,
|
|
"end": 767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "args",
|
|
"start": 767,
|
|
"end": 771,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 771,
|
|
"end": 772,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 773,
|
|
"end": 774,
|
|
"loc": {
|
|
"start": {
|
|
"line": 32,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 784,
|
|
"end": 789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 789,
|
|
"end": 790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 790,
|
|
"end": 791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 791,
|
|
"end": 792,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 798,
|
|
"end": 799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a string representing the components data, only in dev builds\r\n * @returns {string}\r\n ",
|
|
"start": 807,
|
|
"end": 923,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getDebugString",
|
|
"start": 929,
|
|
"end": 943,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 943,
|
|
"end": 944,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 944,
|
|
"end": 945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 946,
|
|
"end": 947,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 957,
|
|
"end": 963,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 964,
|
|
"end": 968,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 968,
|
|
"end": 969,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 975,
|
|
"end": 976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": " dev:end ",
|
|
"start": 982,
|
|
"end": 995,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 997,
|
|
"end": 998,
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * TypeScript does not support Abstract Static methods (https://github.com/microsoft/TypeScript/issues/34516)\r\n * One workaround is to declare the type of the component and reference that for static methods\r\n * @typedef {typeof Component} StaticComponent\r\n ",
|
|
"start": 1002,
|
|
"end": 1266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "eof",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1268,
|
|
"end": 1268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |