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/ad_provider.js.json

3142 lines
74 KiB
JSON
Raw Normal View History

2021-02-26 14:20:37 +00:00
{
"type": "File",
"start": 0,
"end": 931,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 46,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 931,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 46,
"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": 929,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 45,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 100,
"end": 929,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 45,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 106,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 32
},
"identifierName": "AdProviderInterface"
},
"name": "AdProviderInterface",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 126,
"end": 929,
"loc": {
"start": {
"line": 5,
"column": 33
},
"end": {
"line": 45,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 170,
"end": 220,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 170,
"end": 181,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 182,
"end": 185,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 19
},
"identifierName": "app"
},
"name": "app"
}
],
"body": {
"type": "BlockStatement",
"start": 187,
"end": 220,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 198,
"end": 213,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 198,
"end": 212,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 198,
"end": 206,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 198,
"end": 202,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 203,
"end": 206,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 16
},
"identifierName": "app"
},
"name": "app"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 209,
"end": 212,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 22
},
"identifierName": "app"
},
"name": "app"
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @param {Application} app ",
"start": 133,
"end": 164,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 35
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the storage\r\n * @returns {Promise<void>}\r\n ",
"start": 228,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 311,
"end": 367,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 17,
"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": 367,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 335,
"end": 360,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 33
}
},
"argument": {
"type": "CallExpression",
"start": 342,
"end": 359,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 342,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 342,
"end": 349,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 22
},
"identifierName": "Promise"
},
"name": "Promise"
},
"property": {
"type": "Identifier",
"start": 350,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 30
},
"identifierName": "resolve"
},
"name": "resolve"
},
"computed": false
},
"arguments": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the storage\r\n * @returns {Promise<void>}\r\n ",
"start": 228,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this provider serves ads at all\r\n * @returns {boolean}\r\n ",
"start": 375,
"end": 465,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 471,
"end": 533,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 26,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 471,
"end": 480,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 13
},
"identifierName": "getHasAds"
},
"name": "getHasAds",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 483,
"end": 533,
"loc": {
"start": {
"line": 23,
"column": 16
},
"end": {
"line": 26,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 494,
"end": 503,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 494,
"end": 502,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
},
{
"type": "ReturnStatement",
"start": 513,
"end": 526,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 21
}
},
"argument": {
"type": "BooleanLiteral",
"start": 520,
"end": 525,
"loc": {
"start": {
"line": 25,
"column": 15
},
"end": {
"line": 25,
"column": 20
}
},
"value": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this provider serves ads at all\r\n * @returns {boolean}\r\n ",
"start": 375,
"end": 465,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if it would be possible to show a video ad *now*. This can be false if for\r\n * example the last video ad is\r\n * @returns {boolean}\r\n ",
"start": 541,
"end": 708,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 32,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 714,
"end": 784,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 714,
"end": 731,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 21
},
"identifierName": "getCanShowVideoAd"
},
"name": "getCanShowVideoAd",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 734,
"end": 784,
"loc": {
"start": {
"line": 33,
"column": 24
},
"end": {
"line": 36,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 745,
"end": 754,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 745,
"end": 753,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
},
{
"type": "ReturnStatement",
"start": 764,
"end": 777,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 21
}
},
"argument": {
"type": "BooleanLiteral",
"start": 771,
"end": 776,
"loc": {
"start": {
"line": 35,
"column": 15
},
"end": {
"line": 35,
"column": 20
}
},
"value": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if it would be possible to show a video ad *now*. This can be false if for\r\n * example the last video ad is\r\n * @returns {boolean}\r\n ",
"start": 541,
"end": 708,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 32,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Shows an video ad\r\n * @returns {Promise<void>}\r\n ",
"start": 792,
"end": 863,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 869,
"end": 926,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 869,
"end": 880,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 15
},
"identifierName": "showVideoAd"
},
"name": "showVideoAd",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 883,
"end": 926,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 44,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 894,
"end": 919,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 33
}
},
"argument": {
"type": "CallExpression",
"start": 901,
"end": 918,
"loc": {
"start": {
"line": 43,
"column": 15
},
"end": {
"line": 43,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 901,
"end": 916,
"loc": {
"start": {
"line": 43,
"column": 15
},
"end": {
"line": 43,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 901,
"end": 908,
"loc": {
"start": {
"line": 43,
"column": 15
},
"end": {
"line": 43,
"column": 22
},
"identifierName": "Promise"
},
"name": "Promise"
},
"property": {
"type": "Identifier",
"start": 909,
"end": 916,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 30
},
"identifierName": "resolve"
},
"name": "resolve"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Shows an video ad\r\n * @returns {Promise<void>}\r\n ",
"start": 792,
"end": 863,
"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": "* @param {Application} app ",
"start": 133,
"end": 164,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 35
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the storage\r\n * @returns {Promise<void>}\r\n ",
"start": 228,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 14,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this provider serves ads at all\r\n * @returns {boolean}\r\n ",
"start": 375,
"end": 465,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if it would be possible to show a video ad *now*. This can be false if for\r\n * example the last video ad is\r\n * @returns {boolean}\r\n ",
"start": 541,
"end": 708,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 32,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Shows an video ad\r\n * @returns {Promise<void>}\r\n ",
"start": 792,
"end": 863,
"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": "AdProviderInterface",
"start": 106,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 126,
"end": 127,
"loc": {
"start": {
"line": 5,
"column": 33
},
"end": {
"line": 5,
"column": 34
}
}
},
{
"type": "CommentBlock",
"value": "* @param {Application} app ",
"start": 133,
"end": 164,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 170,
"end": 181,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 181,
"end": 182,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "app",
"start": 182,
"end": 185,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 185,
"end": 186,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 187,
"end": 188,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 22
}
}
},
{
"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": 198,
"end": 202,
"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": 202,
"end": 203,
"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": 203,
"end": 206,
"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": 207,
"end": 208,
"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": 209,
"end": 212,
"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": 212,
"end": 213,
"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": 219,
"end": 220,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Initializes the storage\r\n * @returns {Promise<void>}\r\n ",
"start": 228,
"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": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 335,
"end": 341,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Promise",
"start": 342,
"end": 349,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 349,
"end": 350,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "resolve",
"start": 350,
"end": 357,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 357,
"end": 358,
"loc": {
"start": {
"line": 16,
"column": 30
},
"end": {
"line": 16,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 358,
"end": 359,
"loc": {
"start": {
"line": 16,
"column": 31
},
"end": {
"line": 16,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 359,
"end": 360,
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 366,
"end": 367,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this provider serves ads at all\r\n * @returns {boolean}\r\n ",
"start": 375,
"end": 465,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getHasAds",
"start": 471,
"end": 480,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 480,
"end": 481,
"loc": {
"start": {
"line": 23,
"column": 13
},
"end": {
"line": 23,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 481,
"end": 482,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 483,
"end": 484,
"loc": {
"start": {
"line": 23,
"column": 16
},
"end": {
"line": 23,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 494,
"end": 502,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 502,
"end": 503,
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 24,
"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": 513,
"end": 519,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 14
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 520,
"end": 525,
"loc": {
"start": {
"line": 25,
"column": 15
},
"end": {
"line": 25,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 525,
"end": 526,
"loc": {
"start": {
"line": 25,
"column": 20
},
"end": {
"line": 25,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 532,
"end": 533,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if it would be possible to show a video ad *now*. This can be false if for\r\n * example the last video ad is\r\n * @returns {boolean}\r\n ",
"start": 541,
"end": 708,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 32,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getCanShowVideoAd",
"start": 714,
"end": 731,
"loc": {
"start": {
"line": 33,
"column": 4
},
"end": {
"line": 33,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 731,
"end": 732,
"loc": {
"start": {
"line": 33,
"column": 21
},
"end": {
"line": 33,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 732,
"end": 733,
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 734,
"end": 735,
"loc": {
"start": {
"line": 33,
"column": 24
},
"end": {
"line": 33,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 745,
"end": 753,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 753,
"end": 754,
"loc": {
"start": {
"line": 34,
"column": 16
},
"end": {
"line": 34,
"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": 764,
"end": 770,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 14
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 771,
"end": 776,
"loc": {
"start": {
"line": 35,
"column": 15
},
"end": {
"line": 35,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 776,
"end": 777,
"loc": {
"start": {
"line": 35,
"column": 20
},
"end": {
"line": 35,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 783,
"end": 784,
"loc": {
"start": {
"line": 36,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Shows an video ad\r\n * @returns {Promise<void>}\r\n ",
"start": 792,
"end": 863,
"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": "showVideoAd",
"start": 869,
"end": 880,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 880,
"end": 881,
"loc": {
"start": {
"line": 42,
"column": 15
},
"end": {
"line": 42,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 881,
"end": 882,
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 883,
"end": 884,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 42,
"column": 19
}
}
},
{
"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": 894,
"end": 900,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Promise",
"start": 901,
"end": 908,
"loc": {
"start": {
"line": 43,
"column": 15
},
"end": {
"line": 43,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 908,
"end": 909,
"loc": {
"start": {
"line": 43,
"column": 22
},
"end": {
"line": 43,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "resolve",
"start": 909,
"end": 916,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 916,
"end": 917,
"loc": {
"start": {
"line": 43,
"column": 30
},
"end": {
"line": 43,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 917,
"end": 918,
"loc": {
"start": {
"line": 43,
"column": 31
},
"end": {
"line": 43,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 918,
"end": 919,
"loc": {
"start": {
"line": 43,
"column": 32
},
"end": {
"line": 43,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 925,
"end": 926,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 928,
"end": 929,
"loc": {
"start": {
"line": 45,
"column": 0
},
"end": {
"line": 45,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 931,
"end": 931,
"loc": {
"start": {
"line": 46,
"column": 0
},
"end": {
"line": 46,
"column": 0
}
}
}
]
}