1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-11 17:21:51 +00:00
tobspr_shapez.io/docs/ast/source/platform/analytics.js.json
2021-02-26 15:20:37 +01:00

3000 lines
70 KiB
JSON

{
"type": "File",
"start": 0,
"end": 889,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 44,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 889,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 44,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 23,
"end": 68,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 45
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 32,
"end": 43,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
},
"imported": {
"type": "Identifier",
"start": 32,
"end": 43,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
},
"identifierName": "Application"
},
"name": "Application",
"leadingComments": null
},
"local": {
"type": "Identifier",
"start": 32,
"end": 43,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
},
"identifierName": "Application"
},
"name": "Application"
},
"leadingComments": null
}
],
"source": {
"type": "StringLiteral",
"start": 51,
"end": 67,
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 44
}
},
"extra": {
"rawValue": "../application",
"raw": "\"../application\""
},
"value": "../application"
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " typehints:start ",
"start": 0,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 21
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " typehints:end ",
"start": 70,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 19
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 93,
"end": 887,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 43,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 100,
"end": 887,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 43,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 106,
"end": 124,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 31
},
"identifierName": "AnalyticsInterface"
},
"name": "AnalyticsInterface",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 125,
"end": 887,
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 43,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 132,
"end": 218,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 132,
"end": 143,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 144,
"end": 147,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 19
},
"identifierName": "app"
},
"name": "app"
}
],
"body": {
"type": "BlockStatement",
"start": 149,
"end": 218,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 196,
"end": 211,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 196,
"end": 210,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 196,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 196,
"end": 200,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 201,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 16
},
"identifierName": "app"
},
"name": "app"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 207,
"end": 210,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 22
},
"identifierName": "app"
},
"name": "app"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @type {Application} ",
"start": 160,
"end": 186,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 34
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the analytics\r\n * @returns {Promise<void>}\r\n ",
"start": 226,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 311,
"end": 385,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 311,
"end": 321,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 14
},
"identifierName": "initialize"
},
"name": "initialize",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 324,
"end": 385,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 18,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 335,
"end": 344,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 335,
"end": 343,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
},
{
"type": "ReturnStatement",
"start": 354,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 32
}
},
"argument": {
"type": "CallExpression",
"start": 361,
"end": 377,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 361,
"end": 375,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 361,
"end": 368,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 22
},
"identifierName": "Promise"
},
"name": "Promise"
},
"property": {
"type": "Identifier",
"start": 369,
"end": 375,
"loc": {
"start": {
"line": 17,
"column": 23
},
"end": {
"line": 17,
"column": 29
},
"identifierName": "reject"
},
"name": "reject"
},
"computed": false
},
"arguments": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the analytics\r\n * @returns {Promise<void>}\r\n ",
"start": 226,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the player name for analytics\r\n * @param {string} userName\r\n ",
"start": 393,
"end": 481,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 487,
"end": 514,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 31
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 487,
"end": 501,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 18
},
"identifierName": "setUserContext"
},
"name": "setUserContext",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 502,
"end": 510,
"loc": {
"start": {
"line": 24,
"column": 19
},
"end": {
"line": 24,
"column": 27
},
"identifierName": "userName"
},
"name": "userName"
}
],
"body": {
"type": "BlockStatement",
"start": 512,
"end": 514,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 31
}
},
"body": [],
"directives": [],
"leadingComments": null,
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the player name for analytics\r\n * @param {string} userName\r\n ",
"start": 393,
"end": 481,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a click no an ui element\r\n * @param {string} elementName\r\n ",
"start": 522,
"end": 610,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 616,
"end": 644,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 32
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 616,
"end": 628,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 16
},
"identifierName": "trackUiClick"
},
"name": "trackUiClick",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 629,
"end": 640,
"loc": {
"start": {
"line": 30,
"column": 17
},
"end": {
"line": 30,
"column": 28
},
"identifierName": "elementName"
},
"name": "elementName"
}
],
"body": {
"type": "BlockStatement",
"start": 642,
"end": 644,
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 32
}
},
"body": [],
"directives": [],
"leadingComments": null,
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a click no an ui element\r\n * @param {string} elementName\r\n ",
"start": 522,
"end": 610,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tracks when a new state is entered\r\n * @param {string} stateId\r\n ",
"start": 652,
"end": 739,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 745,
"end": 772,
"loc": {
"start": {
"line": 36,
"column": 4
},
"end": {
"line": 36,
"column": 31
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 745,
"end": 760,
"loc": {
"start": {
"line": 36,
"column": 4
},
"end": {
"line": 36,
"column": 19
},
"identifierName": "trackStateEnter"
},
"name": "trackStateEnter",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 761,
"end": 768,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 27
},
"identifierName": "stateId"
},
"name": "stateId"
}
],
"body": {
"type": "BlockStatement",
"start": 770,
"end": 772,
"loc": {
"start": {
"line": 36,
"column": 29
},
"end": {
"line": 36,
"column": 31
}
},
"body": [],
"directives": [],
"leadingComments": null,
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tracks when a new state is entered\r\n * @param {string} stateId\r\n ",
"start": 652,
"end": 739,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a new user decision\r\n * @param {string} name\r\n ",
"start": 780,
"end": 856,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 862,
"end": 884,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 26
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 862,
"end": 875,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 17
},
"identifierName": "trackDecision"
},
"name": "trackDecision",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 876,
"end": 880,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 42,
"column": 22
},
"identifierName": "name"
},
"name": "name"
}
],
"body": {
"type": "BlockStatement",
"start": 882,
"end": 884,
"loc": {
"start": {
"line": 42,
"column": 24
},
"end": {
"line": 42,
"column": 26
}
},
"body": [],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a new user decision\r\n * @param {string} name\r\n ",
"start": 780,
"end": 856,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " typehints:end ",
"start": 70,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 19
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " typehints:end ",
"start": 70,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 19
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": " typehints:start ",
"start": 0,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 21
}
}
},
{
"type": "CommentBlock",
"value": " typehints:end ",
"start": 70,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 19
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Application} ",
"start": 160,
"end": 186,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 34
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the analytics\r\n * @returns {Promise<void>}\r\n ",
"start": 226,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the player name for analytics\r\n * @param {string} userName\r\n ",
"start": 393,
"end": 481,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a click no an ui element\r\n * @param {string} elementName\r\n ",
"start": 522,
"end": 610,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tracks when a new state is entered\r\n * @param {string} stateId\r\n ",
"start": 652,
"end": 739,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a new user decision\r\n * @param {string} name\r\n ",
"start": 780,
"end": 856,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
}
],
"tokens": [
{
"type": "CommentBlock",
"value": " typehints:start ",
"start": 0,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 21
}
}
},
{
"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": 23,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 30,
"end": 31,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Application",
"start": 32,
"end": 43,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 44,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 21
},
"end": {
"line": 2,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 46,
"end": 50,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 27
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../application",
"start": 51,
"end": 67,
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 44
}
}
},
{
"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": 2,
"column": 44
},
"end": {
"line": 2,
"column": 45
}
}
},
{
"type": "CommentBlock",
"value": " typehints:end ",
"start": 70,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 19
}
}
},
{
"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": 93,
"end": 99,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"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": 100,
"end": 105,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "AnalyticsInterface",
"start": 106,
"end": 124,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 125,
"end": 126,
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 5,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 132,
"end": 143,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 143,
"end": 144,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 144,
"end": 147,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 147,
"end": 148,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 149,
"end": 150,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 22
}
}
},
{
"type": "CommentBlock",
"value": "* @type {Application} ",
"start": 160,
"end": 186,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 34
}
}
},
{
"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": 196,
"end": 200,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 200,
"end": 201,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 201,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 205,
"end": 206,
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 207,
"end": 210,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 210,
"end": 211,
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 217,
"end": 218,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the analytics\r\n * @returns {Promise<void>}\r\n ",
"start": 226,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initialize",
"start": 311,
"end": 321,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 321,
"end": 322,
"loc": {
"start": {
"line": 15,
"column": 14
},
"end": {
"line": 15,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 322,
"end": 323,
"loc": {
"start": {
"line": 15,
"column": 15
},
"end": {
"line": 15,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 324,
"end": 325,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 15,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 335,
"end": 343,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 343,
"end": 344,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"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": 354,
"end": 360,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Promise",
"start": 361,
"end": 368,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 368,
"end": 369,
"loc": {
"start": {
"line": 17,
"column": 22
},
"end": {
"line": 17,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "reject",
"start": 369,
"end": 375,
"loc": {
"start": {
"line": 17,
"column": 23
},
"end": {
"line": 17,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 375,
"end": 376,
"loc": {
"start": {
"line": 17,
"column": 29
},
"end": {
"line": 17,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 376,
"end": 377,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 377,
"end": 378,
"loc": {
"start": {
"line": 17,
"column": 31
},
"end": {
"line": 17,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 384,
"end": 385,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the player name for analytics\r\n * @param {string} userName\r\n ",
"start": 393,
"end": 481,
"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": "setUserContext",
"start": 487,
"end": 501,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 501,
"end": 502,
"loc": {
"start": {
"line": 24,
"column": 18
},
"end": {
"line": 24,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "userName",
"start": 502,
"end": 510,
"loc": {
"start": {
"line": 24,
"column": 19
},
"end": {
"line": 24,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 510,
"end": 511,
"loc": {
"start": {
"line": 24,
"column": 27
},
"end": {
"line": 24,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 512,
"end": 513,
"loc": {
"start": {
"line": 24,
"column": 29
},
"end": {
"line": 24,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 513,
"end": 514,
"loc": {
"start": {
"line": 24,
"column": 30
},
"end": {
"line": 24,
"column": 31
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a click no an ui element\r\n * @param {string} elementName\r\n ",
"start": 522,
"end": 610,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trackUiClick",
"start": 616,
"end": 628,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 628,
"end": 629,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "elementName",
"start": 629,
"end": 640,
"loc": {
"start": {
"line": 30,
"column": 17
},
"end": {
"line": 30,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 640,
"end": 641,
"loc": {
"start": {
"line": 30,
"column": 28
},
"end": {
"line": 30,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 642,
"end": 643,
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 643,
"end": 644,
"loc": {
"start": {
"line": 30,
"column": 31
},
"end": {
"line": 30,
"column": 32
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tracks when a new state is entered\r\n * @param {string} stateId\r\n ",
"start": 652,
"end": 739,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 35,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trackStateEnter",
"start": 745,
"end": 760,
"loc": {
"start": {
"line": 36,
"column": 4
},
"end": {
"line": 36,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 760,
"end": 761,
"loc": {
"start": {
"line": 36,
"column": 19
},
"end": {
"line": 36,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stateId",
"start": 761,
"end": 768,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 768,
"end": 769,
"loc": {
"start": {
"line": 36,
"column": 27
},
"end": {
"line": 36,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 770,
"end": 771,
"loc": {
"start": {
"line": 36,
"column": 29
},
"end": {
"line": 36,
"column": 30
}
}
},
{
"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": 36,
"column": 30
},
"end": {
"line": 36,
"column": 31
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Tracks a new user decision\r\n * @param {string} name\r\n ",
"start": 780,
"end": 856,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trackDecision",
"start": 862,
"end": 875,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 875,
"end": 876,
"loc": {
"start": {
"line": 42,
"column": 17
},
"end": {
"line": 42,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "name",
"start": 876,
"end": 880,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 42,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 880,
"end": 881,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 882,
"end": 883,
"loc": {
"start": {
"line": 42,
"column": 24
},
"end": {
"line": 42,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 883,
"end": 884,
"loc": {
"start": {
"line": 42,
"column": 25
},
"end": {
"line": 42,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 886,
"end": 887,
"loc": {
"start": {
"line": 43,
"column": 0
},
"end": {
"line": 43,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 889,
"end": 889,
"loc": {
"start": {
"line": 44,
"column": 0
},
"end": {
"line": 44,
"column": 0
}
}
}
]
}