yjs/docs/ast/source/Util/generateUserID.js.json
2018-04-27 18:45:01 +02:00

3901 lines
97 KiB
JSON

{
"type": "File",
"start": 0,
"end": 459,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 17,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 459,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 17,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportNamedDeclaration",
"start": 21,
"end": 458,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 16,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "FunctionDeclaration",
"start": 28,
"end": 458,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 16,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 37,
"end": 51,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 30
},
"identifierName": "generateUserID"
},
"name": "generateUserID",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 55,
"end": 458,
"loc": {
"start": {
"line": 3,
"column": 34
},
"end": {
"line": 16,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 59,
"end": 456,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
},
"test": {
"type": "LogicalExpression",
"start": 63,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 68
}
},
"left": {
"type": "BinaryExpression",
"start": 63,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 35
}
},
"left": {
"type": "UnaryExpression",
"start": 63,
"end": 76,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 19
}
},
"operator": "typeof",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 70,
"end": 76,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 19
},
"identifierName": "crypto"
},
"name": "crypto"
},
"extra": {
"parenthesizedArgument": false
}
},
"operator": "!==",
"right": {
"type": "StringLiteral",
"start": 81,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 35
}
},
"extra": {
"rawValue": "undefined",
"raw": "'undefined'"
},
"value": "undefined"
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 96,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 39
},
"end": {
"line": 4,
"column": 68
}
},
"left": {
"type": "MemberExpression",
"start": 96,
"end": 117,
"loc": {
"start": {
"line": 4,
"column": 39
},
"end": {
"line": 4,
"column": 60
}
},
"object": {
"type": "Identifier",
"start": 96,
"end": 102,
"loc": {
"start": {
"line": 4,
"column": 39
},
"end": {
"line": 4,
"column": 45
},
"identifierName": "crypto"
},
"name": "crypto"
},
"property": {
"type": "Identifier",
"start": 103,
"end": 117,
"loc": {
"start": {
"line": 4,
"column": 46
},
"end": {
"line": 4,
"column": 60
},
"identifierName": "getRandomValue"
},
"name": "getRandomValue"
},
"computed": false
},
"operator": "!=",
"right": {
"type": "NullLiteral",
"start": 121,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 64
},
"end": {
"line": 4,
"column": 68
}
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 127,
"end": 230,
"loc": {
"start": {
"line": 4,
"column": 70
},
"end": {
"line": 9,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 148,
"end": 176,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 152,
"end": 176,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 32
}
},
"id": {
"type": "Identifier",
"start": 152,
"end": 155,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 11
},
"identifierName": "arr"
},
"name": "arr",
"leadingComments": null
},
"init": {
"type": "NewExpression",
"start": 158,
"end": 176,
"loc": {
"start": {
"line": 6,
"column": 14
},
"end": {
"line": 6,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 162,
"end": 173,
"loc": {
"start": {
"line": 6,
"column": 18
},
"end": {
"line": 6,
"column": 29
},
"identifierName": "Uint32Array"
},
"name": "Uint32Array"
},
"arguments": [
{
"type": "NumericLiteral",
"start": 174,
"end": 175,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 31
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
]
},
"leadingComments": null
}
],
"kind": "let",
"leadingComments": [
{
"type": "CommentLine",
"value": " browser",
"start": 133,
"end": 143,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 14
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 181,
"end": 208,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 181,
"end": 208,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 181,
"end": 203,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 181,
"end": 187,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 10
},
"identifierName": "crypto"
},
"name": "crypto"
},
"property": {
"type": "Identifier",
"start": 188,
"end": 203,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 26
},
"identifierName": "getRandomValues"
},
"name": "getRandomValues"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 204,
"end": 207,
"loc": {
"start": {
"line": 7,
"column": 27
},
"end": {
"line": 7,
"column": 30
},
"identifierName": "arr"
},
"name": "arr"
}
]
}
},
{
"type": "ReturnStatement",
"start": 213,
"end": 226,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 17
}
},
"argument": {
"type": "MemberExpression",
"start": 220,
"end": 226,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 220,
"end": 223,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 14
},
"identifierName": "arr"
},
"name": "arr"
},
"property": {
"type": "NumericLiteral",
"start": 224,
"end": 225,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 16
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 236,
"end": 456,
"loc": {
"start": {
"line": 9,
"column": 9
},
"end": {
"line": 15,
"column": 3
}
},
"test": {
"type": "LogicalExpression",
"start": 240,
"end": 299,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 72
}
},
"left": {
"type": "BinaryExpression",
"start": 240,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 42
}
},
"left": {
"type": "UnaryExpression",
"start": 240,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 26
}
},
"operator": "typeof",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 247,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 26
},
"identifierName": "crypto"
},
"name": "crypto"
},
"extra": {
"parenthesizedArgument": false
}
},
"operator": "!==",
"right": {
"type": "StringLiteral",
"start": 258,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 42
}
},
"extra": {
"rawValue": "undefined",
"raw": "'undefined'"
},
"value": "undefined"
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 273,
"end": 299,
"loc": {
"start": {
"line": 9,
"column": 46
},
"end": {
"line": 9,
"column": 72
}
},
"left": {
"type": "MemberExpression",
"start": 273,
"end": 291,
"loc": {
"start": {
"line": 9,
"column": 46
},
"end": {
"line": 9,
"column": 64
}
},
"object": {
"type": "Identifier",
"start": 273,
"end": 279,
"loc": {
"start": {
"line": 9,
"column": 46
},
"end": {
"line": 9,
"column": 52
},
"identifierName": "crypto"
},
"name": "crypto"
},
"property": {
"type": "Identifier",
"start": 280,
"end": 291,
"loc": {
"start": {
"line": 9,
"column": 53
},
"end": {
"line": 9,
"column": 64
},
"identifierName": "randomBytes"
},
"name": "randomBytes"
},
"computed": false
},
"operator": "!=",
"right": {
"type": "NullLiteral",
"start": 295,
"end": 299,
"loc": {
"start": {
"line": 9,
"column": 68
},
"end": {
"line": 9,
"column": 72
}
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 301,
"end": 396,
"loc": {
"start": {
"line": 9,
"column": 74
},
"end": {
"line": 13,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 319,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 35
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 323,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 323,
"end": 326,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 11
},
"identifierName": "buf"
},
"name": "buf",
"leadingComments": null
},
"init": {
"type": "CallExpression",
"start": 329,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 329,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 329,
"end": 335,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 20
},
"identifierName": "crypto"
},
"name": "crypto"
},
"property": {
"type": "Identifier",
"start": 336,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 32
},
"identifierName": "randomBytes"
},
"name": "randomBytes"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 348,
"end": 349,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 34
}
},
"extra": {
"rawValue": 4,
"raw": "4"
},
"value": 4
}
]
},
"leadingComments": null
}
],
"kind": "let",
"leadingComments": [
{
"type": "CommentLine",
"value": " node",
"start": 307,
"end": 314,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 11
}
}
}
]
},
{
"type": "ReturnStatement",
"start": 355,
"end": 392,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 41
}
},
"argument": {
"type": "MemberExpression",
"start": 362,
"end": 392,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 41
}
},
"object": {
"type": "NewExpression",
"start": 362,
"end": 389,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 38
}
},
"callee": {
"type": "Identifier",
"start": 366,
"end": 377,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 26
},
"identifierName": "Uint32Array"
},
"name": "Uint32Array"
},
"arguments": [
{
"type": "MemberExpression",
"start": 378,
"end": 388,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 378,
"end": 381,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 30
},
"identifierName": "buf"
},
"name": "buf"
},
"property": {
"type": "Identifier",
"start": 382,
"end": 388,
"loc": {
"start": {
"line": 12,
"column": 31
},
"end": {
"line": 12,
"column": 37
},
"identifierName": "buffer"
},
"name": "buffer"
},
"computed": false
}
]
},
"property": {
"type": "NumericLiteral",
"start": 390,
"end": 391,
"loc": {
"start": {
"line": 12,
"column": 39
},
"end": {
"line": 12,
"column": 40
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 402,
"end": 456,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 15,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 408,
"end": 452,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 48
}
},
"argument": {
"type": "CallExpression",
"start": 415,
"end": 452,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 415,
"end": 424,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 415,
"end": 419,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 15
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 420,
"end": 424,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
},
"identifierName": "ceil"
},
"name": "ceil"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 425,
"end": 451,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 47
}
},
"left": {
"type": "CallExpression",
"start": 425,
"end": 438,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 425,
"end": 436,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 425,
"end": 429,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 25
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 430,
"end": 436,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 32
},
"identifierName": "random"
},
"name": "random"
},
"computed": false
},
"arguments": []
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 441,
"end": 451,
"loc": {
"start": {
"line": 14,
"column": 37
},
"end": {
"line": 14,
"column": 47
}
},
"extra": {
"rawValue": 4294967295,
"raw": "0xFFFFFFFF"
},
"value": 4294967295
}
}
]
}
}
],
"directives": []
}
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " global crypto ",
"start": 0,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 19
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " global crypto ",
"start": 0,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 19
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": " global crypto ",
"start": 0,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": "CommentLine",
"value": " browser",
"start": 133,
"end": 143,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": " node",
"start": 307,
"end": 314,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 11
}
}
}
],
"tokens": [
{
"type": "CommentBlock",
"value": " global crypto ",
"start": 0,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"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": 21,
"end": 27,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 28,
"end": 36,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "generateUserID",
"start": 37,
"end": 51,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 52,
"end": 53,
"loc": {
"start": {
"line": 3,
"column": 31
},
"end": {
"line": 3,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 53,
"end": 54,
"loc": {
"start": {
"line": 3,
"column": 32
},
"end": {
"line": 3,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 55,
"end": 56,
"loc": {
"start": {
"line": 3,
"column": 34
},
"end": {
"line": 3,
"column": 35
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 59,
"end": 61,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 4
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 62,
"end": 63,
"loc": {
"start": {
"line": 4,
"column": 5
},
"end": {
"line": 4,
"column": 6
}
}
},
{
"type": {
"label": "typeof",
"keyword": "typeof",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "typeof",
"start": 63,
"end": 69,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "crypto",
"start": 70,
"end": 76,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 19
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 77,
"end": 80,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 4,
"column": 23
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "undefined",
"start": 81,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 35
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 93,
"end": 95,
"loc": {
"start": {
"line": 4,
"column": 36
},
"end": {
"line": 4,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "crypto",
"start": 96,
"end": 102,
"loc": {
"start": {
"line": 4,
"column": 39
},
"end": {
"line": 4,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 102,
"end": 103,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getRandomValue",
"start": 103,
"end": 117,
"loc": {
"start": {
"line": 4,
"column": 46
},
"end": {
"line": 4,
"column": 60
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!=",
"start": 118,
"end": 120,
"loc": {
"start": {
"line": 4,
"column": 61
},
"end": {
"line": 4,
"column": 63
}
}
},
{
"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": 121,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 64
},
"end": {
"line": 4,
"column": 68
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 125,
"end": 126,
"loc": {
"start": {
"line": 4,
"column": 68
},
"end": {
"line": 4,
"column": 69
}
}
},
{
"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": 4,
"column": 70
},
"end": {
"line": 4,
"column": 71
}
}
},
{
"type": "CommentLine",
"value": " browser",
"start": 133,
"end": 143,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 14
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 148,
"end": 151,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arr",
"start": 152,
"end": 155,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 156,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 13
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 158,
"end": 161,
"loc": {
"start": {
"line": 6,
"column": 14
},
"end": {
"line": 6,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Uint32Array",
"start": 162,
"end": 173,
"loc": {
"start": {
"line": 6,
"column": 18
},
"end": {
"line": 6,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 173,
"end": 174,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 30
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 174,
"end": 175,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 175,
"end": 176,
"loc": {
"start": {
"line": 6,
"column": 31
},
"end": {
"line": 6,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "crypto",
"start": 181,
"end": 187,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 187,
"end": 188,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getRandomValues",
"start": 188,
"end": 203,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 203,
"end": 204,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arr",
"start": 204,
"end": 207,
"loc": {
"start": {
"line": 7,
"column": 27
},
"end": {
"line": 7,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 207,
"end": 208,
"loc": {
"start": {
"line": 7,
"column": 30
},
"end": {
"line": 7,
"column": 31
}
}
},
{
"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": 213,
"end": 219,
"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": "arr",
"start": 220,
"end": 223,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 14
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 223,
"end": 224,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 15
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 224,
"end": 225,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 16
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 225,
"end": 226,
"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": 229,
"end": 230,
"loc": {
"start": {
"line": 9,
"column": 2
},
"end": {
"line": 9,
"column": 3
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 231,
"end": 235,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 8
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 236,
"end": 238,
"loc": {
"start": {
"line": 9,
"column": 9
},
"end": {
"line": 9,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 239,
"end": 240,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 13
}
}
},
{
"type": {
"label": "typeof",
"keyword": "typeof",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "typeof",
"start": 240,
"end": 246,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "crypto",
"start": 247,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 26
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 254,
"end": 257,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 30
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "undefined",
"start": 258,
"end": 269,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 42
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 270,
"end": 272,
"loc": {
"start": {
"line": 9,
"column": 43
},
"end": {
"line": 9,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "crypto",
"start": 273,
"end": 279,
"loc": {
"start": {
"line": 9,
"column": 46
},
"end": {
"line": 9,
"column": 52
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 279,
"end": 280,
"loc": {
"start": {
"line": 9,
"column": 52
},
"end": {
"line": 9,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "randomBytes",
"start": 280,
"end": 291,
"loc": {
"start": {
"line": 9,
"column": 53
},
"end": {
"line": 9,
"column": 64
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!=",
"start": 292,
"end": 294,
"loc": {
"start": {
"line": 9,
"column": 65
},
"end": {
"line": 9,
"column": 67
}
}
},
{
"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": 295,
"end": 299,
"loc": {
"start": {
"line": 9,
"column": 68
},
"end": {
"line": 9,
"column": 72
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 299,
"end": 300,
"loc": {
"start": {
"line": 9,
"column": 72
},
"end": {
"line": 9,
"column": 73
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 301,
"end": 302,
"loc": {
"start": {
"line": 9,
"column": 74
},
"end": {
"line": 9,
"column": 75
}
}
},
{
"type": "CommentLine",
"value": " node",
"start": 307,
"end": 314,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 11
}
}
},
{
"type": {
"label": "let",
"keyword": "let",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "let",
"start": 319,
"end": 322,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buf",
"start": 323,
"end": 326,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 327,
"end": 328,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "crypto",
"start": 329,
"end": 335,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 335,
"end": 336,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "randomBytes",
"start": 336,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 11,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 347,
"end": 348,
"loc": {
"start": {
"line": 11,
"column": 32
},
"end": {
"line": 11,
"column": 33
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 4,
"start": 348,
"end": 349,
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 11,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 349,
"end": 350,
"loc": {
"start": {
"line": 11,
"column": 34
},
"end": {
"line": 11,
"column": 35
}
}
},
{
"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": 355,
"end": 361,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 10
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 362,
"end": 365,
"loc": {
"start": {
"line": 12,
"column": 11
},
"end": {
"line": 12,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Uint32Array",
"start": 366,
"end": 377,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 377,
"end": 378,
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buf",
"start": 378,
"end": 381,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 381,
"end": 382,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "buffer",
"start": 382,
"end": 388,
"loc": {
"start": {
"line": 12,
"column": 31
},
"end": {
"line": 12,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 388,
"end": 389,
"loc": {
"start": {
"line": 12,
"column": 37
},
"end": {
"line": 12,
"column": 38
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 389,
"end": 390,
"loc": {
"start": {
"line": 12,
"column": 38
},
"end": {
"line": 12,
"column": 39
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 390,
"end": 391,
"loc": {
"start": {
"line": 12,
"column": 39
},
"end": {
"line": 12,
"column": 40
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 391,
"end": 392,
"loc": {
"start": {
"line": 12,
"column": 40
},
"end": {
"line": 12,
"column": 41
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 395,
"end": 396,
"loc": {
"start": {
"line": 13,
"column": 2
},
"end": {
"line": 13,
"column": 3
}
}
},
{
"type": {
"label": "else",
"keyword": "else",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "else",
"start": 397,
"end": 401,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 8
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 402,
"end": 403,
"loc": {
"start": {
"line": 13,
"column": 9
},
"end": {
"line": 13,
"column": 10
}
}
},
{
"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": 408,
"end": 414,
"loc": {
"start": {
"line": 14,
"column": 4
},
"end": {
"line": 14,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 415,
"end": 419,
"loc": {
"start": {
"line": 14,
"column": 11
},
"end": {
"line": 14,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 419,
"end": 420,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ceil",
"start": 420,
"end": 424,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 424,
"end": 425,
"loc": {
"start": {
"line": 14,
"column": 20
},
"end": {
"line": 14,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 425,
"end": 429,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 429,
"end": 430,
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "random",
"start": 430,
"end": 436,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 436,
"end": 437,
"loc": {
"start": {
"line": 14,
"column": 32
},
"end": {
"line": 14,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 437,
"end": 438,
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 34
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 439,
"end": 440,
"loc": {
"start": {
"line": 14,
"column": 35
},
"end": {
"line": 14,
"column": 36
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 4294967295,
"start": 441,
"end": 451,
"loc": {
"start": {
"line": 14,
"column": 37
},
"end": {
"line": 14,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 451,
"end": 452,
"loc": {
"start": {
"line": 14,
"column": 47
},
"end": {
"line": 14,
"column": 48
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 455,
"end": 456,
"loc": {
"start": {
"line": 15,
"column": 2
},
"end": {
"line": 15,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 457,
"end": 458,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 459,
"end": 459,
"loc": {
"start": {
"line": 17,
"column": 0
},
"end": {
"line": 17,
"column": 0
}
}
}
]
}