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

91443 lines
2.5 MiB

{
"type": "File",
"start": 0,
"end": 11509,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 466,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 11509,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 466,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "FunctionDeclaration",
"start": 1,
"end": 329,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 13,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 10,
"end": 16,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 15
},
"identifierName": "rotate"
},
"name": "rotate"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 18,
"end": 22,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 21
},
"identifierName": "tree"
},
"name": "tree"
},
{
"type": "Identifier",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 29
},
"identifierName": "parent"
},
"name": "parent"
},
{
"type": "Identifier",
"start": 32,
"end": 41,
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 40
},
"identifierName": "newParent"
},
"name": "newParent"
},
{
"type": "Identifier",
"start": 43,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 42
},
"end": {
"line": 2,
"column": 43
},
"identifierName": "n"
},
"name": "n"
}
],
"body": {
"type": "BlockStatement",
"start": 46,
"end": 329,
"loc": {
"start": {
"line": 2,
"column": 45
},
"end": {
"line": 13,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 50,
"end": 327,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 12,
"column": 3
}
},
"test": {
"type": "BinaryExpression",
"start": 54,
"end": 69,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 21
}
},
"left": {
"type": "Identifier",
"start": 54,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 12
},
"identifierName": "parent"
},
"name": "parent"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 65,
"end": 69,
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 21
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 71,
"end": 131,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 6,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 77,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 77,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 77,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 77,
"end": 81,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 8
},
"identifierName": "tree"
},
"name": "tree"
},
"property": {
"type": "Identifier",
"start": 82,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 13
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 89,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 25
},
"identifierName": "newParent"
},
"name": "newParent"
}
}
},
{
"type": "ExpressionStatement",
"start": 103,
"end": 127,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 103,
"end": 127,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 103,
"end": 120,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 103,
"end": 112,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 13
},
"identifierName": "newParent"
},
"name": "newParent"
},
"property": {
"type": "Identifier",
"start": 113,
"end": 120,
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 21
},
"identifierName": "_parent"
},
"name": "_parent"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 123,
"end": 127,
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 28
}
}
}
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 137,
"end": 327,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 12,
"column": 3
}
},
"test": {
"type": "BinaryExpression",
"start": 141,
"end": 158,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 141,
"end": 152,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 141,
"end": 147,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 19
},
"identifierName": "parent"
},
"name": "parent"
},
"property": {
"type": "Identifier",
"start": 148,
"end": 152,
"loc": {
"start": {
"line": 6,
"column": 20
},
"end": {
"line": 6,
"column": 24
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 157,
"end": 158,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 30
},
"identifierName": "n"
},
"name": "n"
}
},
"consequent": {
"type": "BlockStatement",
"start": 160,
"end": 193,
"loc": {
"start": {
"line": 6,
"column": 32
},
"end": {
"line": 8,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 166,
"end": 189,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 166,
"end": 189,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 166,
"end": 177,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 166,
"end": 172,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 10
},
"identifierName": "parent"
},
"name": "parent"
},
"property": {
"type": "Identifier",
"start": 173,
"end": 177,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 15
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 180,
"end": 189,
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 27
},
"identifierName": "newParent"
},
"name": "newParent"
}
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 199,
"end": 327,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 12,
"column": 3
}
},
"test": {
"type": "BinaryExpression",
"start": 203,
"end": 221,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 31
}
},
"left": {
"type": "MemberExpression",
"start": 203,
"end": 215,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 203,
"end": 209,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 19
},
"identifierName": "parent"
},
"name": "parent"
},
"property": {
"type": "Identifier",
"start": 210,
"end": 215,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 25
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 220,
"end": 221,
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 8,
"column": 31
},
"identifierName": "n"
},
"name": "n"
}
},
"consequent": {
"type": "BlockStatement",
"start": 223,
"end": 257,
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 10,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 229,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 229,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 229,
"end": 241,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 229,
"end": 235,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 10
},
"identifierName": "parent"
},
"name": "parent"
},
"property": {
"type": "Identifier",
"start": 236,
"end": 241,
"loc": {
"start": {
"line": 9,
"column": 11
},
"end": {
"line": 9,
"column": 16
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 244,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 19
},
"end": {
"line": 9,
"column": 28
},
"identifierName": "newParent"
},
"name": "newParent"
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 263,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 12,
"column": 3
}
},
"body": [
{
"type": "ThrowStatement",
"start": 269,
"end": 323,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 58
}
},
"argument": {
"type": "NewExpression",
"start": 275,
"end": 323,
"loc": {
"start": {
"line": 11,
"column": 10
},
"end": {
"line": 11,
"column": 58
}
},
"callee": {
"type": "Identifier",
"start": 279,
"end": 284,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 19
},
"identifierName": "Error"
},
"name": "Error"
},
"arguments": [
{
"type": "StringLiteral",
"start": 285,
"end": 322,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 57
}
},
"extra": {
"rawValue": "The elements are wrongly connected!",
"raw": "'The elements are wrongly connected!'"
},
"value": "The elements are wrongly connected!"
}
]
}
}
],
"directives": []
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassDeclaration",
"start": 331,
"end": 2520,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 112,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 337,
"end": 338,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 7
},
"identifierName": "N"
},
"name": "N"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 339,
"end": 2520,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 112,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 378,
"end": 511,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 23,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 378,
"end": 389,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 17,
"column": 13
},
"identifierName": "constructor"
},
"name": "constructor",
"leadingComments": null
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 391,
"end": 394,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 18
},
"identifierName": "val"
},
"name": "val"
}
],
"body": {
"type": "BlockStatement",
"start": 396,
"end": 511,
"loc": {
"start": {
"line": 17,
"column": 20
},
"end": {
"line": 23,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 402,
"end": 416,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 18
}
},
"expression": {
"type": "AssignmentExpression",
"start": 402,
"end": 416,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 18
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 402,
"end": 410,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 12
}
},
"object": {
"type": "ThisExpression",
"start": 402,
"end": 406,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 407,
"end": 410,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 12
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 413,
"end": 416,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 18
},
"identifierName": "val"
},
"name": "val"
}
}
},
{
"type": "ExpressionStatement",
"start": 421,
"end": 438,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 421,
"end": 438,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 21
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 421,
"end": 431,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 421,
"end": 425,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 426,
"end": 431,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 14
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 434,
"end": 438,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 21
}
},
"value": true
}
}
},
{
"type": "ExpressionStatement",
"start": 443,
"end": 460,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 443,
"end": 460,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 21
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 443,
"end": 453,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 443,
"end": 447,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 448,
"end": 453,
"loc": {
"start": {
"line": 20,
"column": 9
},
"end": {
"line": 20,
"column": 14
},
"identifierName": "_left"
},
"name": "_left"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 456,
"end": 460,
"loc": {
"start": {
"line": 20,
"column": 17
},
"end": {
"line": 20,
"column": 21
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 465,
"end": 483,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 465,
"end": 483,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 465,
"end": 476,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 465,
"end": 469,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 470,
"end": 476,
"loc": {
"start": {
"line": 21,
"column": 9
},
"end": {
"line": 21,
"column": 15
},
"identifierName": "_right"
},
"name": "_right"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 479,
"end": 483,
"loc": {
"start": {
"line": 21,
"column": 18
},
"end": {
"line": 21,
"column": 22
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 488,
"end": 507,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 488,
"end": 507,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 488,
"end": 500,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 488,
"end": 492,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 493,
"end": 500,
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 16
},
"identifierName": "_parent"
},
"name": "_parent"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 503,
"end": 507,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 23
}
}
}
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " A created node is always red!",
"start": 343,
"end": 375,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 34
}
}
}
]
},
{
"type": "ClassMethod",
"start": 514,
"end": 544,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 32
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 514,
"end": 519,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 7
},
"identifierName": "isRed"
},
"name": "isRed"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 523,
"end": 544,
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 24,
"column": 32
}
},
"body": [
{
"type": "ReturnStatement",
"start": 525,
"end": 542,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 30
}
},
"argument": {
"type": "MemberExpression",
"start": 532,
"end": 542,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 532,
"end": 536,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 537,
"end": 542,
"loc": {
"start": {
"line": 24,
"column": 25
},
"end": {
"line": 24,
"column": 30
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 547,
"end": 580,
"loc": {
"start": {
"line": 25,
"column": 2
},
"end": {
"line": 25,
"column": 35
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 547,
"end": 554,
"loc": {
"start": {
"line": 25,
"column": 2
},
"end": {
"line": 25,
"column": 9
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 558,
"end": 580,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 25,
"column": 35
}
},
"body": [
{
"type": "ReturnStatement",
"start": 560,
"end": 578,
"loc": {
"start": {
"line": 25,
"column": 15
},
"end": {
"line": 25,
"column": 33
}
},
"argument": {
"type": "UnaryExpression",
"start": 567,
"end": 578,
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 33
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 568,
"end": 578,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 568,
"end": 572,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 573,
"end": 578,
"loc": {
"start": {
"line": 25,
"column": 28
},
"end": {
"line": 25,
"column": 33
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 583,
"end": 627,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 26,
"column": 46
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 583,
"end": 589,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 26,
"column": 8
},
"identifierName": "redden"
},
"name": "redden"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 593,
"end": 627,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 46
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 595,
"end": 613,
"loc": {
"start": {
"line": 26,
"column": 14
},
"end": {
"line": 26,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 595,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 14
},
"end": {
"line": 26,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 595,
"end": 605,
"loc": {
"start": {
"line": 26,
"column": 14
},
"end": {
"line": 26,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 595,
"end": 599,
"loc": {
"start": {
"line": 26,
"column": 14
},
"end": {
"line": 26,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 600,
"end": 605,
"loc": {
"start": {
"line": 26,
"column": 19
},
"end": {
"line": 26,
"column": 24
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 608,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 27
},
"end": {
"line": 26,
"column": 31
}
},
"value": true
}
}
},
{
"type": "ReturnStatement",
"start": 614,
"end": 625,
"loc": {
"start": {
"line": 26,
"column": 33
},
"end": {
"line": 26,
"column": 44
}
},
"argument": {
"type": "ThisExpression",
"start": 621,
"end": 625,
"loc": {
"start": {
"line": 26,
"column": 40
},
"end": {
"line": 26,
"column": 44
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 630,
"end": 676,
"loc": {
"start": {
"line": 27,
"column": 2
},
"end": {
"line": 27,
"column": 48
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 630,
"end": 637,
"loc": {
"start": {
"line": 27,
"column": 2
},
"end": {
"line": 27,
"column": 9
},
"identifierName": "blacken"
},
"name": "blacken"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 641,
"end": 676,
"loc": {
"start": {
"line": 27,
"column": 13
},
"end": {
"line": 27,
"column": 48
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 643,
"end": 662,
"loc": {
"start": {
"line": 27,
"column": 15
},
"end": {
"line": 27,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 643,
"end": 661,
"loc": {
"start": {
"line": 27,
"column": 15
},
"end": {
"line": 27,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 643,
"end": 653,
"loc": {
"start": {
"line": 27,
"column": 15
},
"end": {
"line": 27,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 643,
"end": 647,
"loc": {
"start": {
"line": 27,
"column": 15
},
"end": {
"line": 27,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 648,
"end": 653,
"loc": {
"start": {
"line": 27,
"column": 20
},
"end": {
"line": 27,
"column": 25
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 656,
"end": 661,
"loc": {
"start": {
"line": 27,
"column": 28
},
"end": {
"line": 27,
"column": 33
}
},
"value": false
}
}
},
{
"type": "ReturnStatement",
"start": 663,
"end": 674,
"loc": {
"start": {
"line": 27,
"column": 35
},
"end": {
"line": 27,
"column": 46
}
},
"argument": {
"type": "ThisExpression",
"start": 670,
"end": 674,
"loc": {
"start": {
"line": 27,
"column": 42
},
"end": {
"line": 27,
"column": 46
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 679,
"end": 733,
"loc": {
"start": {
"line": 28,
"column": 2
},
"end": {
"line": 30,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 683,
"end": 694,
"loc": {
"start": {
"line": 28,
"column": 6
},
"end": {
"line": 28,
"column": 17
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 698,
"end": 733,
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 30,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 704,
"end": 729,
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 29,
"column": 29
}
},
"argument": {
"type": "MemberExpression",
"start": 711,
"end": 729,
"loc": {
"start": {
"line": 29,
"column": 11
},
"end": {
"line": 29,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 711,
"end": 722,
"loc": {
"start": {
"line": 29,
"column": 11
},
"end": {
"line": 29,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 711,
"end": 715,
"loc": {
"start": {
"line": 29,
"column": 11
},
"end": {
"line": 29,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"start": 716,
"end": 722,
"loc": {
"start": {
"line": 29,
"column": 16
},
"end": {
"line": 29,
"column": 22
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 723,
"end": 729,
"loc": {
"start": {
"line": 29,
"column": 23
},
"end": {
"line": 29,
"column": 29
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 736,
"end": 779,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 33,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 740,
"end": 746,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 12
},
"identifierName": "parent"
},
"name": "parent"
},
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 750,
"end": 779,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 33,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 756,
"end": 775,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 23
}
},
"argument": {
"type": "MemberExpression",
"start": 763,
"end": 775,
"loc": {
"start": {
"line": 32,
"column": 11
},
"end": {
"line": 32,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 763,
"end": 767,
"loc": {
"start": {
"line": 32,
"column": 11
},
"end": {
"line": 32,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"start": 768,
"end": 775,
"loc": {
"start": {
"line": 32,
"column": 16
},
"end": {
"line": 32,
"column": 23
},
"identifierName": "_parent"
},
"name": "_parent"
},
"computed": false
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 782,
"end": 886,
"loc": {
"start": {
"line": 34,
"column": 2
},
"end": {
"line": 37,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 786,
"end": 793,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 797,
"end": 886,
"loc": {
"start": {
"line": 34,
"column": 17
},
"end": {
"line": 37,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 803,
"end": 882,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 36,
"column": 44
}
},
"argument": {
"type": "ConditionalExpression",
"start": 810,
"end": 882,
"loc": {
"start": {
"line": 35,
"column": 11
},
"end": {
"line": 36,
"column": 44
}
},
"test": {
"type": "BinaryExpression",
"start": 811,
"end": 836,
"loc": {
"start": {
"line": 35,
"column": 12
},
"end": {
"line": 35,
"column": 37
}
},
"left": {
"type": "ThisExpression",
"start": 811,
"end": 815,
"loc": {
"start": {
"line": 35,
"column": 12
},
"end": {
"line": 35,
"column": 16
}
}
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 820,
"end": 836,
"loc": {
"start": {
"line": 35,
"column": 21
},
"end": {
"line": 35,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 820,
"end": 831,
"loc": {
"start": {
"line": 35,
"column": 21
},
"end": {
"line": 35,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 820,
"end": 824,
"loc": {
"start": {
"line": 35,
"column": 21
},
"end": {
"line": 35,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"start": 825,
"end": 831,
"loc": {
"start": {
"line": 35,
"column": 26
},
"end": {
"line": 35,
"column": 32
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 832,
"end": 836,
"loc": {
"start": {
"line": 35,
"column": 33
},
"end": {
"line": 35,
"column": 37
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"extra": {
"parenthesized": true,
"parenStart": 810
}
},
"consequent": {
"type": "MemberExpression",
"start": 846,
"end": 863,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 846,
"end": 857,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 846,
"end": 850,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 851,
"end": 857,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 36,
"column": 19
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 858,
"end": 863,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 25
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"alternate": {
"type": "MemberExpression",
"start": 866,
"end": 882,
"loc": {
"start": {
"line": 36,
"column": 28
},
"end": {
"line": 36,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 866,
"end": 877,
"loc": {
"start": {
"line": 36,
"column": 28
},
"end": {
"line": 36,
"column": 39
}
},
"object": {
"type": "ThisExpression",
"start": 866,
"end": 870,
"loc": {
"start": {
"line": 36,
"column": 28
},
"end": {
"line": 36,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"start": 871,
"end": 877,
"loc": {
"start": {
"line": 36,
"column": 33
},
"end": {
"line": 36,
"column": 39
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 878,
"end": 882,
"loc": {
"start": {
"line": 36,
"column": 40
},
"end": {
"line": 36,
"column": 44
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 889,
"end": 928,
"loc": {
"start": {
"line": 38,
"column": 2
},
"end": {
"line": 40,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 893,
"end": 897,
"loc": {
"start": {
"line": 38,
"column": 6
},
"end": {
"line": 38,
"column": 10
},
"identifierName": "left"
},
"name": "left"
},
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 901,
"end": 928,
"loc": {
"start": {
"line": 38,
"column": 14
},
"end": {
"line": 40,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 907,
"end": 924,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"column": 21
}
},
"argument": {
"type": "MemberExpression",
"start": 914,
"end": 924,
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 39,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 914,
"end": 918,
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 39,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"start": 919,
"end": 924,
"loc": {
"start": {
"line": 39,
"column": 16
},
"end": {
"line": 39,
"column": 21
},
"identifierName": "_left"
},
"name": "_left"
},
"computed": false
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 931,
"end": 972,
"loc": {
"start": {
"line": 41,
"column": 2
},
"end": {
"line": 43,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 935,
"end": 940,
"loc": {
"start": {
"line": 41,
"column": 6
},
"end": {
"line": 41,
"column": 11
},
"identifierName": "right"
},
"name": "right"
},
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 944,
"end": 972,
"loc": {
"start": {
"line": 41,
"column": 15
},
"end": {
"line": 43,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 950,
"end": 968,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 22
}
},
"argument": {
"type": "MemberExpression",
"start": 957,
"end": 968,
"loc": {
"start": {
"line": 42,
"column": 11
},
"end": {
"line": 42,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 957,
"end": 961,
"loc": {
"start": {
"line": 42,
"column": 11
},
"end": {
"line": 42,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"start": 962,
"end": 968,
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 22
},
"identifierName": "_right"
},
"name": "_right"
},
"computed": false
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 975,
"end": 1063,
"loc": {
"start": {
"line": 44,
"column": 2
},
"end": {
"line": 49,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 979,
"end": 983,
"loc": {
"start": {
"line": 44,
"column": 6
},
"end": {
"line": 44,
"column": 10
},
"identifierName": "left"
},
"name": "left"
},
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 985,
"end": 986,
"loc": {
"start": {
"line": 44,
"column": 12
},
"end": {
"line": 44,
"column": 13
},
"identifierName": "n"
},
"name": "n"
}
],
"body": {
"type": "BlockStatement",
"start": 988,
"end": 1063,
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 49,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 994,
"end": 1040,
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 47,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 998,
"end": 1008,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 18
}
},
"left": {
"type": "Identifier",
"start": 998,
"end": 999,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1004,
"end": 1008,
"loc": {
"start": {
"line": 45,
"column": 14
},
"end": {
"line": 45,
"column": 18
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1010,
"end": 1040,
"loc": {
"start": {
"line": 45,
"column": 20
},
"end": {
"line": 47,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1018,
"end": 1034,
"loc": {
"start": {
"line": 46,
"column": 6
},
"end": {
"line": 46,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1018,
"end": 1034,
"loc": {
"start": {
"line": 46,
"column": 6
},
"end": {
"line": 46,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1018,
"end": 1027,
"loc": {
"start": {
"line": 46,
"column": 6
},
"end": {
"line": 46,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 1018,
"end": 1019,
"loc": {
"start": {
"line": 46,
"column": 6
},
"end": {
"line": 46,
"column": 7
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 1020,
"end": 1027,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 15
},
"identifierName": "_parent"
},
"name": "_parent"
},
"computed": false
},
"right": {
"type": "ThisExpression",
"start": 1030,
"end": 1034,
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 22
}
}
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 1045,
"end": 1059,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 18
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1045,
"end": 1059,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 18
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1045,
"end": 1055,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 1045,
"end": 1049,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 1050,
"end": 1055,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 14
},
"identifierName": "_left"
},
"name": "_left"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1058,
"end": 1059,
"loc": {
"start": {
"line": 48,
"column": 17
},
"end": {
"line": 48,
"column": 18
},
"identifierName": "n"
},
"name": "n"
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1066,
"end": 1156,
"loc": {
"start": {
"line": 50,
"column": 2
},
"end": {
"line": 55,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1070,
"end": 1075,
"loc": {
"start": {
"line": 50,
"column": 6
},
"end": {
"line": 50,
"column": 11
},
"identifierName": "right"
},
"name": "right"
},
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1077,
"end": 1078,
"loc": {
"start": {
"line": 50,
"column": 13
},
"end": {
"line": 50,
"column": 14
},
"identifierName": "n"
},
"name": "n"
}
],
"body": {
"type": "BlockStatement",
"start": 1080,
"end": 1156,
"loc": {
"start": {
"line": 50,
"column": 16
},
"end": {
"line": 55,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 1086,
"end": 1132,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 53,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 1090,
"end": 1100,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 18
}
},
"left": {
"type": "Identifier",
"start": 1090,
"end": 1091,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1096,
"end": 1100,
"loc": {
"start": {
"line": 51,
"column": 14
},
"end": {
"line": 51,
"column": 18
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1102,
"end": 1132,
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 53,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1110,
"end": 1126,
"loc": {
"start": {
"line": 52,
"column": 6
},
"end": {
"line": 52,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1110,
"end": 1126,
"loc": {
"start": {
"line": 52,
"column": 6
},
"end": {
"line": 52,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1110,
"end": 1119,
"loc": {
"start": {
"line": 52,
"column": 6
},
"end": {
"line": 52,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 1110,
"end": 1111,
"loc": {
"start": {
"line": 52,
"column": 6
},
"end": {
"line": 52,
"column": 7
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 1112,
"end": 1119,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 15
},
"identifierName": "_parent"
},
"name": "_parent"
},
"computed": false
},
"right": {
"type": "ThisExpression",
"start": 1122,
"end": 1126,
"loc": {
"start": {
"line": 52,
"column": 18
},
"end": {
"line": 52,
"column": 22
}
}
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 1137,
"end": 1152,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1137,
"end": 1152,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 19
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1137,
"end": 1148,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 1137,
"end": 1141,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 1142,
"end": 1148,
"loc": {
"start": {
"line": 54,
"column": 9
},
"end": {
"line": 54,
"column": 15
},
"identifierName": "_right"
},
"name": "_right"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1151,
"end": 1152,
"loc": {
"start": {
"line": 54,
"column": 18
},
"end": {
"line": 54,
"column": 19
},
"identifierName": "n"
},
"name": "n"
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1159,
"end": 1377,
"loc": {
"start": {
"line": 56,
"column": 2
},
"end": {
"line": 63,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1159,
"end": 1169,
"loc": {
"start": {
"line": 56,
"column": 2
},
"end": {
"line": 56,
"column": 12
},
"identifierName": "rotateLeft"
},
"name": "rotateLeft"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1171,
"end": 1175,
"loc": {
"start": {
"line": 56,
"column": 14
},
"end": {
"line": 56,
"column": 18
},
"identifierName": "tree"
},
"name": "tree"
}
],
"body": {
"type": "BlockStatement",
"start": 1177,
"end": 1377,
"loc": {
"start": {
"line": 56,
"column": 20
},
"end": {
"line": 63,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1183,
"end": 1209,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 57,
"column": 30
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1189,
"end": 1209,
"loc": {
"start": {
"line": 57,
"column": 10
},
"end": {
"line": 57,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 1189,
"end": 1195,
"loc": {
"start": {
"line": 57,
"column": 10
},
"end": {
"line": 57,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"init": {
"type": "MemberExpression",
"start": 1198,
"end": 1209,
"loc": {
"start": {
"line": 57,
"column": 19
},
"end": {
"line": 57,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 1198,
"end": 1202,
"loc": {
"start": {
"line": 57,
"column": 19
},
"end": {
"line": 57,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"start": 1203,
"end": 1209,
"loc": {
"start": {
"line": 57,
"column": 24
},
"end": {
"line": 57,
"column": 30
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 1214,
"end": 1242,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1220,
"end": 1242,
"loc": {
"start": {
"line": 58,
"column": 10
},
"end": {
"line": 58,
"column": 32
}
},
"id": {
"type": "Identifier",
"start": 1220,
"end": 1229,
"loc": {
"start": {
"line": 58,
"column": 10
},
"end": {
"line": 58,
"column": 19
},
"identifierName": "newParent"
},
"name": "newParent"
},
"init": {
"type": "MemberExpression",
"start": 1232,
"end": 1242,
"loc": {
"start": {
"line": 58,
"column": 22
},
"end": {
"line": 58,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 1232,
"end": 1236,
"loc": {
"start": {
"line": 58,
"column": 22
},
"end": {
"line": 58,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 1237,
"end": 1242,
"loc": {
"start": {
"line": 58,
"column": 27
},
"end": {
"line": 58,
"column": 32
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 1247,
"end": 1279,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 59,
"column": 36
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1253,
"end": 1279,
"loc": {
"start": {
"line": 59,
"column": 10
},
"end": {
"line": 59,
"column": 36
}
},
"id": {
"type": "Identifier",
"start": 1253,
"end": 1261,
"loc": {
"start": {
"line": 59,
"column": 10
},
"end": {
"line": 59,
"column": 18
},
"identifierName": "newRight"
},
"name": "newRight"
},
"init": {
"type": "MemberExpression",
"start": 1264,
"end": 1279,
"loc": {
"start": {
"line": 59,
"column": 21
},
"end": {
"line": 59,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 1264,
"end": 1274,
"loc": {
"start": {
"line": 59,
"column": 21
},
"end": {
"line": 59,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 1264,
"end": 1268,
"loc": {
"start": {
"line": 59,
"column": 21
},
"end": {
"line": 59,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"start": 1269,
"end": 1274,
"loc": {
"start": {
"line": 59,
"column": 26
},
"end": {
"line": 59,
"column": 31
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1275,
"end": 1279,
"loc": {
"start": {
"line": 59,
"column": 32
},
"end": {
"line": 59,
"column": 36
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 1284,
"end": 1305,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1284,
"end": 1305,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1284,
"end": 1298,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 1284,
"end": 1293,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 13
},
"identifierName": "newParent"
},
"name": "newParent"
},
"property": {
"type": "Identifier",
"start": 1294,
"end": 1298,
"loc": {
"start": {
"line": 60,
"column": 14
},
"end": {
"line": 60,
"column": 18
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"right": {
"type": "ThisExpression",
"start": 1301,
"end": 1305,
"loc": {
"start": {
"line": 60,
"column": 21
},
"end": {
"line": 60,
"column": 25
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 1310,
"end": 1331,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1310,
"end": 1331,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1310,
"end": 1320,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 1310,
"end": 1314,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 1315,
"end": 1320,
"loc": {
"start": {
"line": 61,
"column": 9
},
"end": {
"line": 61,
"column": 14
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1323,
"end": 1331,
"loc": {
"start": {
"line": 61,
"column": 17
},
"end": {
"line": 61,
"column": 25
},
"identifierName": "newRight"
},
"name": "newRight"
}
}
},
{
"type": "ExpressionStatement",
"start": 1336,
"end": 1373,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 41
}
},
"expression": {
"type": "CallExpression",
"start": 1336,
"end": 1373,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 41
}
},
"callee": {
"type": "Identifier",
"start": 1336,
"end": 1342,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 10
},
"identifierName": "rotate"
},
"name": "rotate"
},
"arguments": [
{
"type": "Identifier",
"start": 1343,
"end": 1347,
"loc": {
"start": {
"line": 62,
"column": 11
},
"end": {
"line": 62,
"column": 15
},
"identifierName": "tree"
},
"name": "tree"
},
{
"type": "Identifier",
"start": 1349,
"end": 1355,
"loc": {
"start": {
"line": 62,
"column": 17
},
"end": {
"line": 62,
"column": 23
},
"identifierName": "parent"
},
"name": "parent"
},
{
"type": "Identifier",
"start": 1357,
"end": 1366,
"loc": {
"start": {
"line": 62,
"column": 25
},
"end": {
"line": 62,
"column": 34
},
"identifierName": "newParent"
},
"name": "newParent"
},
{
"type": "ThisExpression",
"start": 1368,
"end": 1372,
"loc": {
"start": {
"line": 62,
"column": 36
},
"end": {
"line": 62,
"column": 40
}
}
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1380,
"end": 1722,
"loc": {
"start": {
"line": 64,
"column": 2
},
"end": {
"line": 79,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1380,
"end": 1384,
"loc": {
"start": {
"line": 64,
"column": 2
},
"end": {
"line": 64,
"column": 6
},
"identifierName": "next"
},
"name": "next"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1388,
"end": 1722,
"loc": {
"start": {
"line": 64,
"column": 10
},
"end": {
"line": 79,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 1394,
"end": 1718,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 78,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 1398,
"end": 1417,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 27
}
},
"left": {
"type": "MemberExpression",
"start": 1398,
"end": 1408,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 1398,
"end": 1402,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1403,
"end": 1408,
"loc": {
"start": {
"line": 65,
"column": 13
},
"end": {
"line": 65,
"column": 18
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1413,
"end": 1417,
"loc": {
"start": {
"line": 65,
"column": 23
},
"end": {
"line": 65,
"column": 27
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1419,
"end": 1578,
"loc": {
"start": {
"line": 65,
"column": 29
},
"end": {
"line": 72,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1480,
"end": 1498,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 24
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1484,
"end": 1498,
"loc": {
"start": {
"line": 67,
"column": 10
},
"end": {
"line": 67,
"column": 24
}
},
"id": {
"type": "Identifier",
"start": 1484,
"end": 1485,
"loc": {
"start": {
"line": 67,
"column": 10
},
"end": {
"line": 67,
"column": 11
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"init": {
"type": "MemberExpression",
"start": 1488,
"end": 1498,
"loc": {
"start": {
"line": 67,
"column": 14
},
"end": {
"line": 67,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 1488,
"end": 1492,
"loc": {
"start": {
"line": 67,
"column": 14
},
"end": {
"line": 67,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 1493,
"end": 1498,
"loc": {
"start": {
"line": 67,
"column": 19
},
"end": {
"line": 67,
"column": 24
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"leadingComments": null
}
],
"kind": "var",
"leadingComments": [
{
"type": "CommentLine",
"value": " search the most left node in the right tree",
"start": 1427,
"end": 1473,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 52
}
}
}
]
},
{
"type": "WhileStatement",
"start": 1505,
"end": 1557,
"loc": {
"start": {
"line": 68,
"column": 6
},
"end": {
"line": 70,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 1512,
"end": 1527,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 28
}
},
"left": {
"type": "MemberExpression",
"start": 1512,
"end": 1518,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 1512,
"end": 1513,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 14
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 1514,
"end": 1518,
"loc": {
"start": {
"line": 68,
"column": 15
},
"end": {
"line": 68,
"column": 19
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1523,
"end": 1527,
"loc": {
"start": {
"line": 68,
"column": 24
},
"end": {
"line": 68,
"column": 28
}
}
}
},
"body": {
"type": "BlockStatement",
"start": 1529,
"end": 1557,
"loc": {
"start": {
"line": 68,
"column": 30
},
"end": {
"line": 70,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1539,
"end": 1549,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 18
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1539,
"end": 1549,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 18
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1539,
"end": 1540,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 1543,
"end": 1549,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 1543,
"end": 1544,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 13
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 1545,
"end": 1549,
"loc": {
"start": {
"line": 69,
"column": 14
},
"end": {
"line": 69,
"column": 18
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 1564,
"end": 1572,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 14
}
},
"argument": {
"type": "Identifier",
"start": 1571,
"end": 1572,
"loc": {
"start": {
"line": 71,
"column": 13
},
"end": {
"line": 71,
"column": 14
},
"identifierName": "o"
},
"name": "o"
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1584,
"end": 1718,
"loc": {
"start": {
"line": 72,
"column": 11
},
"end": {
"line": 78,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1592,
"end": 1604,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 18
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1596,
"end": 1604,
"loc": {
"start": {
"line": 73,
"column": 10
},
"end": {
"line": 73,
"column": 18
}
},
"id": {
"type": "Identifier",
"start": 1596,
"end": 1597,
"loc": {
"start": {
"line": 73,
"column": 10
},
"end": {
"line": 73,
"column": 11
},
"identifierName": "p"
},
"name": "p"
},
"init": {
"type": "ThisExpression",
"start": 1600,
"end": 1604,
"loc": {
"start": {
"line": 73,
"column": 14
},
"end": {
"line": 73,
"column": 18
}
}
}
}
],
"kind": "var"
},
{
"type": "WhileStatement",
"start": 1611,
"end": 1690,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 76,
"column": 7
}
},
"test": {
"type": "LogicalExpression",
"start": 1618,
"end": 1658,
"loc": {
"start": {
"line": 74,
"column": 13
},
"end": {
"line": 74,
"column": 53
}
},
"left": {
"type": "BinaryExpression",
"start": 1618,
"end": 1635,
"loc": {
"start": {
"line": 74,
"column": 13
},
"end": {
"line": 74,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 1618,
"end": 1626,
"loc": {
"start": {
"line": 74,
"column": 13
},
"end": {
"line": 74,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 1618,
"end": 1619,
"loc": {
"start": {
"line": 74,
"column": 13
},
"end": {
"line": 74,
"column": 14
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 1620,
"end": 1626,
"loc": {
"start": {
"line": 74,
"column": 15
},
"end": {
"line": 74,
"column": 21
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1631,
"end": 1635,
"loc": {
"start": {
"line": 74,
"column": 26
},
"end": {
"line": 74,
"column": 30
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 1639,
"end": 1658,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 53
}
},
"left": {
"type": "Identifier",
"start": 1639,
"end": 1640,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 35
},
"identifierName": "p"
},
"name": "p"
},
"operator": "!==",
"right": {
"type": "MemberExpression",
"start": 1645,
"end": 1658,
"loc": {
"start": {
"line": 74,
"column": 40
},
"end": {
"line": 74,
"column": 53
}
},
"object": {
"type": "MemberExpression",
"start": 1645,
"end": 1653,
"loc": {
"start": {
"line": 74,
"column": 40
},
"end": {
"line": 74,
"column": 48
}
},
"object": {
"type": "Identifier",
"start": 1645,
"end": 1646,
"loc": {
"start": {
"line": 74,
"column": 40
},
"end": {
"line": 74,
"column": 41
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 1647,
"end": 1653,
"loc": {
"start": {
"line": 74,
"column": 42
},
"end": {
"line": 74,
"column": 48
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1654,
"end": 1658,
"loc": {
"start": {
"line": 74,
"column": 49
},
"end": {
"line": 74,
"column": 53
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
},
"body": {
"type": "BlockStatement",
"start": 1660,
"end": 1690,
"loc": {
"start": {
"line": 74,
"column": 55
},
"end": {
"line": 76,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1670,
"end": 1682,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1670,
"end": 1682,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 20
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1670,
"end": 1671,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 9
},
"identifierName": "p"
},
"name": "p"
},
"right": {
"type": "MemberExpression",
"start": 1674,
"end": 1682,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 1674,
"end": 1675,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 13
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 1676,
"end": 1682,
"loc": {
"start": {
"line": 75,
"column": 14
},
"end": {
"line": 75,
"column": 20
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 1697,
"end": 1712,
"loc": {
"start": {
"line": 77,
"column": 6
},
"end": {
"line": 77,
"column": 21
}
},
"argument": {
"type": "MemberExpression",
"start": 1704,
"end": 1712,
"loc": {
"start": {
"line": 77,
"column": 13
},
"end": {
"line": 77,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 1704,
"end": 1705,
"loc": {
"start": {
"line": 77,
"column": 13
},
"end": {
"line": 77,
"column": 14
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 1706,
"end": 1712,
"loc": {
"start": {
"line": 77,
"column": 15
},
"end": {
"line": 77,
"column": 21
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1725,
"end": 2068,
"loc": {
"start": {
"line": 80,
"column": 2
},
"end": {
"line": 95,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1725,
"end": 1729,
"loc": {
"start": {
"line": 80,
"column": 2
},
"end": {
"line": 80,
"column": 6
},
"identifierName": "prev"
},
"name": "prev"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1733,
"end": 2068,
"loc": {
"start": {
"line": 80,
"column": 10
},
"end": {
"line": 95,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 1739,
"end": 2064,
"loc": {
"start": {
"line": 81,
"column": 4
},
"end": {
"line": 94,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 1743,
"end": 1761,
"loc": {
"start": {
"line": 81,
"column": 8
},
"end": {
"line": 81,
"column": 26
}
},
"left": {
"type": "MemberExpression",
"start": 1743,
"end": 1752,
"loc": {
"start": {
"line": 81,
"column": 8
},
"end": {
"line": 81,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 1743,
"end": 1747,
"loc": {
"start": {
"line": 81,
"column": 8
},
"end": {
"line": 81,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1748,
"end": 1752,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 17
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1757,
"end": 1761,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 81,
"column": 26
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1763,
"end": 1923,
"loc": {
"start": {
"line": 81,
"column": 28
},
"end": {
"line": 88,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1824,
"end": 1841,
"loc": {
"start": {
"line": 83,
"column": 6
},
"end": {
"line": 83,
"column": 23
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1828,
"end": 1841,
"loc": {
"start": {
"line": 83,
"column": 10
},
"end": {
"line": 83,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 1828,
"end": 1829,
"loc": {
"start": {
"line": 83,
"column": 10
},
"end": {
"line": 83,
"column": 11
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"init": {
"type": "MemberExpression",
"start": 1832,
"end": 1841,
"loc": {
"start": {
"line": 83,
"column": 14
},
"end": {
"line": 83,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 1832,
"end": 1836,
"loc": {
"start": {
"line": 83,
"column": 14
},
"end": {
"line": 83,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 1837,
"end": 1841,
"loc": {
"start": {
"line": 83,
"column": 19
},
"end": {
"line": 83,
"column": 23
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"leadingComments": null
}
],
"kind": "var",
"leadingComments": [
{
"type": "CommentLine",
"value": " search the most right node in the left tree",
"start": 1771,
"end": 1817,
"loc": {
"start": {
"line": 82,
"column": 6
},
"end": {
"line": 82,
"column": 52
}
}
}
]
},
{
"type": "WhileStatement",
"start": 1848,
"end": 1902,
"loc": {
"start": {
"line": 84,
"column": 6
},
"end": {
"line": 86,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 1855,
"end": 1871,
"loc": {
"start": {
"line": 84,
"column": 13
},
"end": {
"line": 84,
"column": 29
}
},
"left": {
"type": "MemberExpression",
"start": 1855,
"end": 1862,
"loc": {
"start": {
"line": 84,
"column": 13
},
"end": {
"line": 84,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 1855,
"end": 1856,
"loc": {
"start": {
"line": 84,
"column": 13
},
"end": {
"line": 84,
"column": 14
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 1857,
"end": 1862,
"loc": {
"start": {
"line": 84,
"column": 15
},
"end": {
"line": 84,
"column": 20
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1867,
"end": 1871,
"loc": {
"start": {
"line": 84,
"column": 25
},
"end": {
"line": 84,
"column": 29
}
}
}
},
"body": {
"type": "BlockStatement",
"start": 1873,
"end": 1902,
"loc": {
"start": {
"line": 84,
"column": 31
},
"end": {
"line": 86,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1883,
"end": 1894,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1883,
"end": 1894,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 19
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1883,
"end": 1884,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 1887,
"end": 1894,
"loc": {
"start": {
"line": 85,
"column": 12
},
"end": {
"line": 85,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 1887,
"end": 1888,
"loc": {
"start": {
"line": 85,
"column": 12
},
"end": {
"line": 85,
"column": 13
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 1889,
"end": 1894,
"loc": {
"start": {
"line": 85,
"column": 14
},
"end": {
"line": 85,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 1909,
"end": 1917,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 87,
"column": 14
}
},
"argument": {
"type": "Identifier",
"start": 1916,
"end": 1917,
"loc": {
"start": {
"line": 87,
"column": 13
},
"end": {
"line": 87,
"column": 14
},
"identifierName": "o"
},
"name": "o"
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1929,
"end": 2064,
"loc": {
"start": {
"line": 88,
"column": 11
},
"end": {
"line": 94,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1937,
"end": 1949,
"loc": {
"start": {
"line": 89,
"column": 6
},
"end": {
"line": 89,
"column": 18
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1941,
"end": 1949,
"loc": {
"start": {
"line": 89,
"column": 10
},
"end": {
"line": 89,
"column": 18
}
},
"id": {
"type": "Identifier",
"start": 1941,
"end": 1942,
"loc": {
"start": {
"line": 89,
"column": 10
},
"end": {
"line": 89,
"column": 11
},
"identifierName": "p"
},
"name": "p"
},
"init": {
"type": "ThisExpression",
"start": 1945,
"end": 1949,
"loc": {
"start": {
"line": 89,
"column": 14
},
"end": {
"line": 89,
"column": 18
}
}
}
}
],
"kind": "var"
},
{
"type": "WhileStatement",
"start": 1956,
"end": 2036,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 92,
"column": 7
}
},
"test": {
"type": "LogicalExpression",
"start": 1963,
"end": 2004,
"loc": {
"start": {
"line": 90,
"column": 13
},
"end": {
"line": 90,
"column": 54
}
},
"left": {
"type": "BinaryExpression",
"start": 1963,
"end": 1980,
"loc": {
"start": {
"line": 90,
"column": 13
},
"end": {
"line": 90,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 1963,
"end": 1971,
"loc": {
"start": {
"line": 90,
"column": 13
},
"end": {
"line": 90,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 1963,
"end": 1964,
"loc": {
"start": {
"line": 90,
"column": 13
},
"end": {
"line": 90,
"column": 14
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 1965,
"end": 1971,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 21
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1976,
"end": 1980,
"loc": {
"start": {
"line": 90,
"column": 26
},
"end": {
"line": 90,
"column": 30
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 1984,
"end": 2004,
"loc": {
"start": {
"line": 90,
"column": 34
},
"end": {
"line": 90,
"column": 54
}
},
"left": {
"type": "Identifier",
"start": 1984,
"end": 1985,
"loc": {
"start": {
"line": 90,
"column": 34
},
"end": {
"line": 90,
"column": 35
},
"identifierName": "p"
},
"name": "p"
},
"operator": "!==",
"right": {
"type": "MemberExpression",
"start": 1990,
"end": 2004,
"loc": {
"start": {
"line": 90,
"column": 40
},
"end": {
"line": 90,
"column": 54
}
},
"object": {
"type": "MemberExpression",
"start": 1990,
"end": 1998,
"loc": {
"start": {
"line": 90,
"column": 40
},
"end": {
"line": 90,
"column": 48
}
},
"object": {
"type": "Identifier",
"start": 1990,
"end": 1991,
"loc": {
"start": {
"line": 90,
"column": 40
},
"end": {
"line": 90,
"column": 41
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 1992,
"end": 1998,
"loc": {
"start": {
"line": 90,
"column": 42
},
"end": {
"line": 90,
"column": 48
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1999,
"end": 2004,
"loc": {
"start": {
"line": 90,
"column": 49
},
"end": {
"line": 90,
"column": 54
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
},
"body": {
"type": "BlockStatement",
"start": 2006,
"end": 2036,
"loc": {
"start": {
"line": 90,
"column": 56
},
"end": {
"line": 92,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2016,
"end": 2028,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2016,
"end": 2028,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 20
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2016,
"end": 2017,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 9
},
"identifierName": "p"
},
"name": "p"
},
"right": {
"type": "MemberExpression",
"start": 2020,
"end": 2028,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 2020,
"end": 2021,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 13
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 2022,
"end": 2028,
"loc": {
"start": {
"line": 91,
"column": 14
},
"end": {
"line": 91,
"column": 20
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 2043,
"end": 2058,
"loc": {
"start": {
"line": 93,
"column": 6
},
"end": {
"line": 93,
"column": 21
}
},
"argument": {
"type": "MemberExpression",
"start": 2050,
"end": 2058,
"loc": {
"start": {
"line": 93,
"column": 13
},
"end": {
"line": 93,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 2050,
"end": 2051,
"loc": {
"start": {
"line": 93,
"column": 13
},
"end": {
"line": 93,
"column": 14
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 2052,
"end": 2058,
"loc": {
"start": {
"line": 93,
"column": 15
},
"end": {
"line": 93,
"column": 21
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 2071,
"end": 2287,
"loc": {
"start": {
"line": 96,
"column": 2
},
"end": {
"line": 103,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2071,
"end": 2082,
"loc": {
"start": {
"line": 96,
"column": 2
},
"end": {
"line": 96,
"column": 13
},
"identifierName": "rotateRight"
},
"name": "rotateRight"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2084,
"end": 2088,
"loc": {
"start": {
"line": 96,
"column": 15
},
"end": {
"line": 96,
"column": 19
},
"identifierName": "tree"
},
"name": "tree"
}
],
"body": {
"type": "BlockStatement",
"start": 2090,
"end": 2287,
"loc": {
"start": {
"line": 96,
"column": 21
},
"end": {
"line": 103,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2096,
"end": 2122,
"loc": {
"start": {
"line": 97,
"column": 4
},
"end": {
"line": 97,
"column": 30
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2102,
"end": 2122,
"loc": {
"start": {
"line": 97,
"column": 10
},
"end": {
"line": 97,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 2102,
"end": 2108,
"loc": {
"start": {
"line": 97,
"column": 10
},
"end": {
"line": 97,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"init": {
"type": "MemberExpression",
"start": 2111,
"end": 2122,
"loc": {
"start": {
"line": 97,
"column": 19
},
"end": {
"line": 97,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 2111,
"end": 2115,
"loc": {
"start": {
"line": 97,
"column": 19
},
"end": {
"line": 97,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"start": 2116,
"end": 2122,
"loc": {
"start": {
"line": 97,
"column": 24
},
"end": {
"line": 97,
"column": 30
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2127,
"end": 2154,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 98,
"column": 31
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2133,
"end": 2154,
"loc": {
"start": {
"line": 98,
"column": 10
},
"end": {
"line": 98,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 2133,
"end": 2142,
"loc": {
"start": {
"line": 98,
"column": 10
},
"end": {
"line": 98,
"column": 19
},
"identifierName": "newParent"
},
"name": "newParent"
},
"init": {
"type": "MemberExpression",
"start": 2145,
"end": 2154,
"loc": {
"start": {
"line": 98,
"column": 22
},
"end": {
"line": 98,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 2145,
"end": 2149,
"loc": {
"start": {
"line": 98,
"column": 22
},
"end": {
"line": 98,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 2150,
"end": 2154,
"loc": {
"start": {
"line": 98,
"column": 27
},
"end": {
"line": 98,
"column": 31
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2159,
"end": 2190,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 35
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2165,
"end": 2190,
"loc": {
"start": {
"line": 99,
"column": 10
},
"end": {
"line": 99,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 2165,
"end": 2172,
"loc": {
"start": {
"line": 99,
"column": 10
},
"end": {
"line": 99,
"column": 17
},
"identifierName": "newLeft"
},
"name": "newLeft"
},
"init": {
"type": "MemberExpression",
"start": 2175,
"end": 2190,
"loc": {
"start": {
"line": 99,
"column": 20
},
"end": {
"line": 99,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 2175,
"end": 2184,
"loc": {
"start": {
"line": 99,
"column": 20
},
"end": {
"line": 99,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 2175,
"end": 2179,
"loc": {
"start": {
"line": 99,
"column": 20
},
"end": {
"line": 99,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 2180,
"end": 2184,
"loc": {
"start": {
"line": 99,
"column": 25
},
"end": {
"line": 99,
"column": 29
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2185,
"end": 2190,
"loc": {
"start": {
"line": 99,
"column": 30
},
"end": {
"line": 99,
"column": 35
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 2195,
"end": 2217,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2195,
"end": 2217,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2195,
"end": 2210,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 2195,
"end": 2204,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 13
},
"identifierName": "newParent"
},
"name": "newParent"
},
"property": {
"type": "Identifier",
"start": 2205,
"end": 2210,
"loc": {
"start": {
"line": 100,
"column": 14
},
"end": {
"line": 100,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"right": {
"type": "ThisExpression",
"start": 2213,
"end": 2217,
"loc": {
"start": {
"line": 100,
"column": 22
},
"end": {
"line": 100,
"column": 26
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 2222,
"end": 2241,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 101,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2222,
"end": 2241,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 101,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2222,
"end": 2231,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 101,
"column": 13
}
},
"object": {
"type": "ThisExpression",
"start": 2222,
"end": 2226,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 101,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 2227,
"end": 2231,
"loc": {
"start": {
"line": 101,
"column": 9
},
"end": {
"line": 101,
"column": 13
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 2234,
"end": 2241,
"loc": {
"start": {
"line": 101,
"column": 16
},
"end": {
"line": 101,
"column": 23
},
"identifierName": "newLeft"
},
"name": "newLeft"
}
}
},
{
"type": "ExpressionStatement",
"start": 2246,
"end": 2283,
"loc": {
"start": {
"line": 102,
"column": 4
},
"end": {
"line": 102,
"column": 41
}
},
"expression": {
"type": "CallExpression",
"start": 2246,
"end": 2283,
"loc": {
"start": {
"line": 102,
"column": 4
},
"end": {
"line": 102,
"column": 41
}
},
"callee": {
"type": "Identifier",
"start": 2246,
"end": 2252,
"loc": {
"start": {
"line": 102,
"column": 4
},
"end": {
"line": 102,
"column": 10
},
"identifierName": "rotate"
},
"name": "rotate"
},
"arguments": [
{
"type": "Identifier",
"start": 2253,
"end": 2257,
"loc": {
"start": {
"line": 102,
"column": 11
},
"end": {
"line": 102,
"column": 15
},
"identifierName": "tree"
},
"name": "tree"
},
{
"type": "Identifier",
"start": 2259,
"end": 2265,
"loc": {
"start": {
"line": 102,
"column": 17
},
"end": {
"line": 102,
"column": 23
},
"identifierName": "parent"
},
"name": "parent"
},
{
"type": "Identifier",
"start": 2267,
"end": 2276,
"loc": {
"start": {
"line": 102,
"column": 25
},
"end": {
"line": 102,
"column": 34
},
"identifierName": "newParent"
},
"name": "newParent"
},
{
"type": "ThisExpression",
"start": 2278,
"end": 2282,
"loc": {
"start": {
"line": 102,
"column": 36
},
"end": {
"line": 102,
"column": 40
}
}
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 2290,
"end": 2518,
"loc": {
"start": {
"line": 104,
"column": 2
},
"end": {
"line": 111,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2290,
"end": 2298,
"loc": {
"start": {
"line": 104,
"column": 2
},
"end": {
"line": 104,
"column": 10
},
"identifierName": "getUncle"
},
"name": "getUncle"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2302,
"end": 2518,
"loc": {
"start": {
"line": 104,
"column": 14
},
"end": {
"line": 111,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 2374,
"end": 2514,
"loc": {
"start": {
"line": 106,
"column": 4
},
"end": {
"line": 110,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 2378,
"end": 2417,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 47
}
},
"left": {
"type": "MemberExpression",
"start": 2378,
"end": 2389,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 2378,
"end": 2382,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2383,
"end": 2389,
"loc": {
"start": {
"line": 106,
"column": 13
},
"end": {
"line": 106,
"column": 19
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false,
"leadingComments": null
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 2394,
"end": 2417,
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 2394,
"end": 2412,
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 42
}
},
"object": {
"type": "MemberExpression",
"start": 2394,
"end": 2405,
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 2394,
"end": 2398,
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"start": 2399,
"end": 2405,
"loc": {
"start": {
"line": 106,
"column": 29
},
"end": {
"line": 106,
"column": 35
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2406,
"end": 2412,
"loc": {
"start": {
"line": 106,
"column": 36
},
"end": {
"line": 106,
"column": 42
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2413,
"end": 2417,
"loc": {
"start": {
"line": 106,
"column": 43
},
"end": {
"line": 106,
"column": 47
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 2419,
"end": 2464,
"loc": {
"start": {
"line": 106,
"column": 49
},
"end": {
"line": 108,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2427,
"end": 2458,
"loc": {
"start": {
"line": 107,
"column": 6
},
"end": {
"line": 107,
"column": 37
}
},
"argument": {
"type": "MemberExpression",
"start": 2434,
"end": 2458,
"loc": {
"start": {
"line": 107,
"column": 13
},
"end": {
"line": 107,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 2434,
"end": 2452,
"loc": {
"start": {
"line": 107,
"column": 13
},
"end": {
"line": 107,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 2434,
"end": 2445,
"loc": {
"start": {
"line": 107,
"column": 13
},
"end": {
"line": 107,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 2434,
"end": 2438,
"loc": {
"start": {
"line": 107,
"column": 13
},
"end": {
"line": 107,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"start": 2439,
"end": 2445,
"loc": {
"start": {
"line": 107,
"column": 18
},
"end": {
"line": 107,
"column": 24
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2446,
"end": 2452,
"loc": {
"start": {
"line": 107,
"column": 25
},
"end": {
"line": 107,
"column": 31
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2453,
"end": 2458,
"loc": {
"start": {
"line": 107,
"column": 32
},
"end": {
"line": 107,
"column": 37
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2470,
"end": 2514,
"loc": {
"start": {
"line": 108,
"column": 11
},
"end": {
"line": 110,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2478,
"end": 2508,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 36
}
},
"argument": {
"type": "MemberExpression",
"start": 2485,
"end": 2508,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 2485,
"end": 2503,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 2485,
"end": 2496,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 2485,
"end": 2489,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"start": 2490,
"end": 2496,
"loc": {
"start": {
"line": 109,
"column": 18
},
"end": {
"line": 109,
"column": 24
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2497,
"end": 2503,
"loc": {
"start": {
"line": 109,
"column": 25
},
"end": {
"line": 109,
"column": 31
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2504,
"end": 2508,
"loc": {
"start": {
"line": 109,
"column": 32
},
"end": {
"line": 109,
"column": 36
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " we can assume that grandparent exists when this is called!",
"start": 2308,
"end": 2369,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 65
}
}
}
]
}
],
"directives": []
}
}
],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "\n * This is a Red Black Tree implementation\n ",
"start": 2522,
"end": 2571,
"loc": {
"start": {
"line": 114,
"column": 0
},
"end": {
"line": 116,
"column": 3
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 2572,
"end": 11508,
"loc": {
"start": {
"line": 117,
"column": 0
},
"end": {
"line": 465,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 2587,
"end": 11508,
"loc": {
"start": {
"line": 117,
"column": 15
},
"end": {
"line": 465,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2593,
"end": 2597,
"loc": {
"start": {
"line": 117,
"column": 21
},
"end": {
"line": 117,
"column": 25
},
"identifierName": "Tree"
},
"name": "Tree",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 2598,
"end": 11508,
"loc": {
"start": {
"line": 117,
"column": 26
},
"end": {
"line": 465,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 2602,
"end": 2663,
"loc": {
"start": {
"line": 118,
"column": 2
},
"end": {
"line": 121,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2602,
"end": 2613,
"loc": {
"start": {
"line": 118,
"column": 2
},
"end": {
"line": 118,
"column": 13
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2617,
"end": 2663,
"loc": {
"start": {
"line": 118,
"column": 17
},
"end": {
"line": 121,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2623,
"end": 2639,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 119,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2623,
"end": 2639,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 119,
"column": 20
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2623,
"end": 2632,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 119,
"column": 13
}
},
"object": {
"type": "ThisExpression",
"start": 2623,
"end": 2627,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 119,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 2628,
"end": 2632,
"loc": {
"start": {
"line": 119,
"column": 9
},
"end": {
"line": 119,
"column": 13
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 2635,
"end": 2639,
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 20
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 2644,
"end": 2659,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2644,
"end": 2659,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 19
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2644,
"end": 2655,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 2644,
"end": 2648,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 2649,
"end": 2655,
"loc": {
"start": {
"line": 120,
"column": 9
},
"end": {
"line": 120,
"column": 15
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 2658,
"end": 2659,
"loc": {
"start": {
"line": 120,
"column": 18
},
"end": {
"line": 120,
"column": 19
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 2666,
"end": 2778,
"loc": {
"start": {
"line": 122,
"column": 2
},
"end": {
"line": 126,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2666,
"end": 2674,
"loc": {
"start": {
"line": 122,
"column": 2
},
"end": {
"line": 122,
"column": 10
},
"identifierName": "findNext"
},
"name": "findNext"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2676,
"end": 2678,
"loc": {
"start": {
"line": 122,
"column": 12
},
"end": {
"line": 122,
"column": 14
},
"identifierName": "id"
},
"name": "id"
}
],
"body": {
"type": "BlockStatement",
"start": 2680,
"end": 2778,
"loc": {
"start": {
"line": 122,
"column": 16
},
"end": {
"line": 126,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2686,
"end": 2709,
"loc": {
"start": {
"line": 123,
"column": 4
},
"end": {
"line": 123,
"column": 27
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2690,
"end": 2709,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 27
}
},
"id": {
"type": "Identifier",
"start": 2690,
"end": 2696,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 14
},
"identifierName": "nextID"
},
"name": "nextID"
},
"init": {
"type": "CallExpression",
"start": 2699,
"end": 2709,
"loc": {
"start": {
"line": 123,
"column": 17
},
"end": {
"line": 123,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 2699,
"end": 2707,
"loc": {
"start": {
"line": 123,
"column": 17
},
"end": {
"line": 123,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2699,
"end": 2701,
"loc": {
"start": {
"line": 123,
"column": 17
},
"end": {
"line": 123,
"column": 19
},
"identifierName": "id"
},
"name": "id"
},
"property": {
"type": "Identifier",
"start": 2702,
"end": 2707,
"loc": {
"start": {
"line": 123,
"column": 20
},
"end": {
"line": 123,
"column": 25
},
"identifierName": "clone"
},
"name": "clone"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "var"
},
{
"type": "ExpressionStatement",
"start": 2714,
"end": 2731,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2714,
"end": 2731,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 21
}
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"start": 2714,
"end": 2726,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2714,
"end": 2720,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 10
},
"identifierName": "nextID"
},
"name": "nextID"
},
"property": {
"type": "Identifier",
"start": 2721,
"end": 2726,
"loc": {
"start": {
"line": 124,
"column": 11
},
"end": {
"line": 124,
"column": 16
},
"identifierName": "clock"
},
"name": "clock"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 2730,
"end": 2731,
"loc": {
"start": {
"line": 124,
"column": 20
},
"end": {
"line": 124,
"column": 21
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
},
{
"type": "ReturnStatement",
"start": 2736,
"end": 2774,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 125,
"column": 42
}
},
"argument": {
"type": "CallExpression",
"start": 2743,
"end": 2774,
"loc": {
"start": {
"line": 125,
"column": 11
},
"end": {
"line": 125,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 2743,
"end": 2766,
"loc": {
"start": {
"line": 125,
"column": 11
},
"end": {
"line": 125,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 2743,
"end": 2747,
"loc": {
"start": {
"line": 125,
"column": 11
},
"end": {
"line": 125,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"start": 2748,
"end": 2766,
"loc": {
"start": {
"line": 125,
"column": 16
},
"end": {
"line": 125,
"column": 34
},
"identifierName": "findWithLowerBound"
},
"name": "findWithLowerBound"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2767,
"end": 2773,
"loc": {
"start": {
"line": 125,
"column": 35
},
"end": {
"line": 125,
"column": 41
},
"identifierName": "nextID"
},
"name": "nextID"
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 2781,
"end": 2893,
"loc": {
"start": {
"line": 127,
"column": 2
},
"end": {
"line": 131,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2781,
"end": 2789,
"loc": {
"start": {
"line": 127,
"column": 2
},
"end": {
"line": 127,
"column": 10
},
"identifierName": "findPrev"
},
"name": "findPrev"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2791,
"end": 2793,
"loc": {
"start": {
"line": 127,
"column": 12
},
"end": {
"line": 127,
"column": 14
},
"identifierName": "id"
},
"name": "id"
}
],
"body": {
"type": "BlockStatement",
"start": 2795,
"end": 2893,
"loc": {
"start": {
"line": 127,
"column": 16
},
"end": {
"line": 131,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2801,
"end": 2824,
"loc": {
"start": {
"line": 128,
"column": 4
},
"end": {
"line": 128,
"column": 27
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2805,
"end": 2824,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 27
}
},
"id": {
"type": "Identifier",
"start": 2805,
"end": 2811,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 14
},
"identifierName": "prevID"
},
"name": "prevID"
},
"init": {
"type": "CallExpression",
"start": 2814,
"end": 2824,
"loc": {
"start": {
"line": 128,
"column": 17
},
"end": {
"line": 128,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 2814,
"end": 2822,
"loc": {
"start": {
"line": 128,
"column": 17
},
"end": {
"line": 128,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 2814,
"end": 2816,
"loc": {
"start": {
"line": 128,
"column": 17
},
"end": {
"line": 128,
"column": 19
},
"identifierName": "id"
},
"name": "id"
},
"property": {
"type": "Identifier",
"start": 2817,
"end": 2822,
"loc": {
"start": {
"line": 128,
"column": 20
},
"end": {
"line": 128,
"column": 25
},
"identifierName": "clone"
},
"name": "clone"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 2829,
"end": 2846,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2829,
"end": 2846,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 21
}
},
"operator": "-=",
"left": {
"type": "MemberExpression",
"start": 2829,
"end": 2841,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 2829,
"end": 2835,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 10
},
"identifierName": "prevID"
},
"name": "prevID"
},
"property": {
"type": "Identifier",
"start": 2836,
"end": 2841,
"loc": {
"start": {
"line": 129,
"column": 11
},
"end": {
"line": 129,
"column": 16
},
"identifierName": "clock"
},
"name": "clock"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 2845,
"end": 2846,
"loc": {
"start": {
"line": 129,
"column": 20
},
"end": {
"line": 129,
"column": 21
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
},
{
"type": "ReturnStatement",
"start": 2851,
"end": 2889,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 42
}
},
"argument": {
"type": "CallExpression",
"start": 2858,
"end": 2889,
"loc": {
"start": {
"line": 130,
"column": 11
},
"end": {
"line": 130,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 2858,
"end": 2881,
"loc": {
"start": {
"line": 130,
"column": 11
},
"end": {
"line": 130,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 2858,
"end": 2862,
"loc": {
"start": {
"line": 130,
"column": 11
},
"end": {
"line": 130,
"column": 15
}
}
},
"property": {
"type": "Identifier",
"start": 2863,
"end": 2881,
"loc": {
"start": {
"line": 130,
"column": 16
},
"end": {
"line": 130,
"column": 34
},
"identifierName": "findWithUpperBound"
},
"name": "findWithUpperBound"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2882,
"end": 2888,
"loc": {
"start": {
"line": 130,
"column": 35
},
"end": {
"line": 130,
"column": 41
},
"identifierName": "prevID"
},
"name": "prevID"
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 2896,
"end": 3674,
"loc": {
"start": {
"line": 132,
"column": 2
},
"end": {
"line": 156,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2896,
"end": 2918,
"loc": {
"start": {
"line": 132,
"column": 2
},
"end": {
"line": 132,
"column": 24
},
"identifierName": "findNodeWithLowerBound"
},
"name": "findNodeWithLowerBound"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2920,
"end": 2924,
"loc": {
"start": {
"line": 132,
"column": 26
},
"end": {
"line": 132,
"column": 30
},
"identifierName": "from"
},
"name": "from"
}
],
"body": {
"type": "BlockStatement",
"start": 2926,
"end": 3674,
"loc": {
"start": {
"line": 132,
"column": 32
},
"end": {
"line": 156,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2932,
"end": 2949,
"loc": {
"start": {
"line": 133,
"column": 4
},
"end": {
"line": 133,
"column": 21
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2936,
"end": 2949,
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 21
}
},
"id": {
"type": "Identifier",
"start": 2936,
"end": 2937,
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"init": {
"type": "MemberExpression",
"start": 2940,
"end": 2949,
"loc": {
"start": {
"line": 133,
"column": 12
},
"end": {
"line": 133,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 2940,
"end": 2944,
"loc": {
"start": {
"line": 133,
"column": 12
},
"end": {
"line": 133,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 2945,
"end": 2949,
"loc": {
"start": {
"line": 133,
"column": 17
},
"end": {
"line": 133,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 2954,
"end": 3670,
"loc": {
"start": {
"line": 134,
"column": 4
},
"end": {
"line": 155,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 2958,
"end": 2968,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 18
}
},
"left": {
"type": "Identifier",
"start": 2958,
"end": 2959,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 2964,
"end": 2968,
"loc": {
"start": {
"line": 134,
"column": 14
},
"end": {
"line": 134,
"column": 18
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 2970,
"end": 2995,
"loc": {
"start": {
"line": 134,
"column": 20
},
"end": {
"line": 136,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2978,
"end": 2989,
"loc": {
"start": {
"line": 135,
"column": 6
},
"end": {
"line": 135,
"column": 17
}
},
"argument": {
"type": "NullLiteral",
"start": 2985,
"end": 2989,
"loc": {
"start": {
"line": 135,
"column": 13
},
"end": {
"line": 135,
"column": 17
}
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 3001,
"end": 3670,
"loc": {
"start": {
"line": 136,
"column": 11
},
"end": {
"line": 155,
"column": 5
}
},
"body": [
{
"type": "WhileStatement",
"start": 3009,
"end": 3664,
"loc": {
"start": {
"line": 137,
"column": 6
},
"end": {
"line": 154,
"column": 7
}
},
"test": {
"type": "BooleanLiteral",
"start": 3016,
"end": 3020,
"loc": {
"start": {
"line": 137,
"column": 13
},
"end": {
"line": 137,
"column": 17
}
},
"value": true
},
"body": {
"type": "BlockStatement",
"start": 3022,
"end": 3664,
"loc": {
"start": {
"line": 137,
"column": 19
},
"end": {
"line": 154,
"column": 7
}
},
"body": [
{
"type": "IfStatement",
"start": 3032,
"end": 3656,
"loc": {
"start": {
"line": 138,
"column": 8
},
"end": {
"line": 153,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 3036,
"end": 3098,
"loc": {
"start": {
"line": 138,
"column": 12
},
"end": {
"line": 138,
"column": 74
}
},
"left": {
"type": "BinaryExpression",
"start": 3036,
"end": 3049,
"loc": {
"start": {
"line": 138,
"column": 12
},
"end": {
"line": 138,
"column": 25
}
},
"left": {
"type": "Identifier",
"start": 3036,
"end": 3040,
"loc": {
"start": {
"line": 138,
"column": 12
},
"end": {
"line": 138,
"column": 16
},
"identifierName": "from"
},
"name": "from"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 3045,
"end": 3049,
"loc": {
"start": {
"line": 138,
"column": 21
},
"end": {
"line": 138,
"column": 25
}
}
}
},
"operator": "||",
"right": {
"type": "LogicalExpression",
"start": 3054,
"end": 3097,
"loc": {
"start": {
"line": 138,
"column": 30
},
"end": {
"line": 138,
"column": 73
}
},
"left": {
"type": "CallExpression",
"start": 3054,
"end": 3078,
"loc": {
"start": {
"line": 138,
"column": 30
},
"end": {
"line": 138,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 3054,
"end": 3067,
"loc": {
"start": {
"line": 138,
"column": 30
},
"end": {
"line": 138,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 3054,
"end": 3058,
"loc": {
"start": {
"line": 138,
"column": 30
},
"end": {
"line": 138,
"column": 34
},
"identifierName": "from"
},
"name": "from"
},
"property": {
"type": "Identifier",
"start": 3059,
"end": 3067,
"loc": {
"start": {
"line": 138,
"column": 35
},
"end": {
"line": 138,
"column": 43
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 3068,
"end": 3077,
"loc": {
"start": {
"line": 138,
"column": 44
},
"end": {
"line": 138,
"column": 53
}
},
"object": {
"type": "MemberExpression",
"start": 3068,
"end": 3073,
"loc": {
"start": {
"line": 138,
"column": 44
},
"end": {
"line": 138,
"column": 49
}
},
"object": {
"type": "Identifier",
"start": 3068,
"end": 3069,
"loc": {
"start": {
"line": 138,
"column": 44
},
"end": {
"line": 138,
"column": 45
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 3070,
"end": 3073,
"loc": {
"start": {
"line": 138,
"column": 46
},
"end": {
"line": 138,
"column": 49
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3074,
"end": 3077,
"loc": {
"start": {
"line": 138,
"column": 50
},
"end": {
"line": 138,
"column": 53
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
}
]
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 3082,
"end": 3097,
"loc": {
"start": {
"line": 138,
"column": 58
},
"end": {
"line": 138,
"column": 73
}
},
"left": {
"type": "MemberExpression",
"start": 3082,
"end": 3088,
"loc": {
"start": {
"line": 138,
"column": 58
},
"end": {
"line": 138,
"column": 64
}
},
"object": {
"type": "Identifier",
"start": 3082,
"end": 3083,
"loc": {
"start": {
"line": 138,
"column": 58
},
"end": {
"line": 138,
"column": 59
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 3084,
"end": 3088,
"loc": {
"start": {
"line": 138,
"column": 60
},
"end": {
"line": 138,
"column": 64
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 3093,
"end": 3097,
"loc": {
"start": {
"line": 138,
"column": 69
},
"end": {
"line": 138,
"column": 73
}
}
}
},
"extra": {
"parenthesized": true,
"parenStart": 3053
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 3100,
"end": 3236,
"loc": {
"start": {
"line": 138,
"column": 76
},
"end": {
"line": 142,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3216,
"end": 3226,
"loc": {
"start": {
"line": 141,
"column": 10
},
"end": {
"line": 141,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3216,
"end": 3226,
"loc": {
"start": {
"line": 141,
"column": 10
},
"end": {
"line": 141,
"column": 20
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 3216,
"end": 3217,
"loc": {
"start": {
"line": 141,
"column": 10
},
"end": {
"line": 141,
"column": 11
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 3220,
"end": 3226,
"loc": {
"start": {
"line": 141,
"column": 14
},
"end": {
"line": 141,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 3220,
"end": 3221,
"loc": {
"start": {
"line": 141,
"column": 14
},
"end": {
"line": 141,
"column": 15
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 3222,
"end": 3226,
"loc": {
"start": {
"line": 141,
"column": 16
},
"end": {
"line": 141,
"column": 20
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " o is included in the bound",
"start": 3112,
"end": 3141,
"loc": {
"start": {
"line": 139,
"column": 10
},
"end": {
"line": 139,
"column": 39
}
}
},
{
"type": "CommentLine",
"value": " try to find an element that is closer to the bound",
"start": 3152,
"end": 3205,
"loc": {
"start": {
"line": 140,
"column": 10
},
"end": {
"line": 140,
"column": 63
}
}
}
]
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 3242,
"end": 3656,
"loc": {
"start": {
"line": 142,
"column": 15
},
"end": {
"line": 153,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 3246,
"end": 3287,
"loc": {
"start": {
"line": 142,
"column": 19
},
"end": {
"line": 142,
"column": 60
}
},
"left": {
"type": "BinaryExpression",
"start": 3246,
"end": 3259,
"loc": {
"start": {
"line": 142,
"column": 19
},
"end": {
"line": 142,
"column": 32
}
},
"left": {
"type": "Identifier",
"start": 3246,
"end": 3250,
"loc": {
"start": {
"line": 142,
"column": 19
},
"end": {
"line": 142,
"column": 23
},
"identifierName": "from"
},
"name": "from"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 3255,
"end": 3259,
"loc": {
"start": {
"line": 142,
"column": 28
},
"end": {
"line": 142,
"column": 32
}
}
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 3263,
"end": 3287,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 142,
"column": 60
}
},
"callee": {
"type": "MemberExpression",
"start": 3263,
"end": 3281,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 142,
"column": 54
}
},
"object": {
"type": "MemberExpression",
"start": 3263,
"end": 3272,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 142,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 3263,
"end": 3268,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 142,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 3263,
"end": 3264,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 142,
"column": 37
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 3265,
"end": 3268,
"loc": {
"start": {
"line": 142,
"column": 38
},
"end": {
"line": 142,
"column": 41
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3269,
"end": 3272,
"loc": {
"start": {
"line": 142,
"column": 42
},
"end": {
"line": 142,
"column": 45
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3273,
"end": 3281,
"loc": {
"start": {
"line": 142,
"column": 46
},
"end": {
"line": 142,
"column": 54
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3282,
"end": 3286,
"loc": {
"start": {
"line": 142,
"column": 55
},
"end": {
"line": 142,
"column": 59
},
"identifierName": "from"
},
"name": "from"
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 3289,
"end": 3620,
"loc": {
"start": {
"line": 142,
"column": 62
},
"end": {
"line": 151,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 3378,
"end": 3610,
"loc": {
"start": {
"line": 144,
"column": 10
},
"end": {
"line": 150,
"column": 11
}
},
"test": {
"type": "BinaryExpression",
"start": 3382,
"end": 3398,
"loc": {
"start": {
"line": 144,
"column": 14
},
"end": {
"line": 144,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 3382,
"end": 3389,
"loc": {
"start": {
"line": 144,
"column": 14
},
"end": {
"line": 144,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 3382,
"end": 3383,
"loc": {
"start": {
"line": 144,
"column": 14
},
"end": {
"line": 144,
"column": 15
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3384,
"end": 3389,
"loc": {
"start": {
"line": 144,
"column": 16
},
"end": {
"line": 144,
"column": 21
},
"identifierName": "right"
},
"name": "right"
},
"computed": false,
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 3394,
"end": 3398,
"loc": {
"start": {
"line": 144,
"column": 26
},
"end": {
"line": 144,
"column": 30
}
}
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 3400,
"end": 3437,
"loc": {
"start": {
"line": 144,
"column": 32
},
"end": {
"line": 146,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3414,
"end": 3425,
"loc": {
"start": {
"line": 145,
"column": 12
},
"end": {
"line": 145,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3414,
"end": 3425,
"loc": {
"start": {
"line": 145,
"column": 12
},
"end": {
"line": 145,
"column": 23
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 3414,
"end": 3415,
"loc": {
"start": {
"line": 145,
"column": 12
},
"end": {
"line": 145,
"column": 13
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 3418,
"end": 3425,
"loc": {
"start": {
"line": 145,
"column": 16
},
"end": {
"line": 145,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 3418,
"end": 3419,
"loc": {
"start": {
"line": 145,
"column": 16
},
"end": {
"line": 145,
"column": 17
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 3420,
"end": 3425,
"loc": {
"start": {
"line": 145,
"column": 18
},
"end": {
"line": 145,
"column": 23
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 3443,
"end": 3610,
"loc": {
"start": {
"line": 146,
"column": 17
},
"end": {
"line": 150,
"column": 11
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3583,
"end": 3598,
"loc": {
"start": {
"line": 149,
"column": 12
},
"end": {
"line": 149,
"column": 27
}
},
"argument": {
"type": "CallExpression",
"start": 3590,
"end": 3598,
"loc": {
"start": {
"line": 149,
"column": 19
},
"end": {
"line": 149,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 3590,
"end": 3596,
"loc": {
"start": {
"line": 149,
"column": 19
},
"end": {
"line": 149,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 3590,
"end": 3591,
"loc": {
"start": {
"line": 149,
"column": 19
},
"end": {
"line": 149,
"column": 20
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 3592,
"end": 3596,
"loc": {
"start": {
"line": 149,
"column": 21
},
"end": {
"line": 149,
"column": 25
},
"identifierName": "next"
},
"name": "next"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " there is no right element. Search for the next bigger element,",
"start": 3457,
"end": 3522,
"loc": {
"start": {
"line": 147,
"column": 12
},
"end": {
"line": 147,
"column": 77
}
}
},
{
"type": "CommentLine",
"value": " this should be within the bounds",
"start": 3535,
"end": 3570,
"loc": {
"start": {
"line": 148,
"column": 12
},
"end": {
"line": 148,
"column": 47
}
}
}
]
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " o is not within the bound, maybe one of the right elements is..",
"start": 3301,
"end": 3367,
"loc": {
"start": {
"line": 143,
"column": 10
},
"end": {
"line": 143,
"column": 76
}
}
}
]
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 3626,
"end": 3656,
"loc": {
"start": {
"line": 151,
"column": 15
},
"end": {
"line": 153,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3638,
"end": 3646,
"loc": {
"start": {
"line": 152,
"column": 10
},
"end": {
"line": 152,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 3645,
"end": 3646,
"loc": {
"start": {
"line": 152,
"column": 17
},
"end": {
"line": 152,
"column": 18
},
"identifierName": "o"
},
"name": "o"
}
}
],
"directives": []
}
}
}
],
"directives": []
}
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 3677,
"end": 4522,
"loc": {
"start": {
"line": 157,
"column": 2
},
"end": {
"line": 184,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3677,
"end": 3699,
"loc": {
"start": {
"line": 157,
"column": 2
},
"end": {
"line": 157,
"column": 24
},
"identifierName": "findNodeWithUpperBound"
},
"name": "findNodeWithUpperBound"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3701,
"end": 3703,
"loc": {
"start": {
"line": 157,
"column": 26
},
"end": {
"line": 157,
"column": 28
},
"identifierName": "to"
},
"name": "to"
}
],
"body": {
"type": "BlockStatement",
"start": 3705,
"end": 4522,
"loc": {
"start": {
"line": 157,
"column": 30
},
"end": {
"line": 184,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 3711,
"end": 3784,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 160,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 3715,
"end": 3728,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 21
}
},
"left": {
"type": "Identifier",
"start": 3715,
"end": 3717,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 10
},
"identifierName": "to"
},
"name": "to"
},
"operator": "===",
"right": {
"type": "UnaryExpression",
"start": 3722,
"end": 3728,
"loc": {
"start": {
"line": 158,
"column": 15
},
"end": {
"line": 158,
"column": 21
}
},
"operator": "void",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 3727,
"end": 3728,
"loc": {
"start": {
"line": 158,
"column": 20
},
"end": {
"line": 158,
"column": 21
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"extra": {
"parenthesizedArgument": false
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 3730,
"end": 3784,
"loc": {
"start": {
"line": 158,
"column": 23
},
"end": {
"line": 160,
"column": 5
}
},
"body": [
{
"type": "ThrowStatement",
"start": 3738,
"end": 3778,
"loc": {
"start": {
"line": 159,
"column": 6
},
"end": {
"line": 159,
"column": 46
}
},
"argument": {
"type": "NewExpression",
"start": 3744,
"end": 3778,
"loc": {
"start": {
"line": 159,
"column": 12
},
"end": {
"line": 159,
"column": 46
}
},
"callee": {
"type": "Identifier",
"start": 3748,
"end": 3753,
"loc": {
"start": {
"line": 159,
"column": 16
},
"end": {
"line": 159,
"column": 21
},
"identifierName": "Error"
},
"name": "Error"
},
"arguments": [
{
"type": "StringLiteral",
"start": 3754,
"end": 3777,
"loc": {
"start": {
"line": 159,
"column": 22
},
"end": {
"line": 159,
"column": 45
}
},
"extra": {
"rawValue": "You must define from!",
"raw": "'You must define from!'"
},
"value": "You must define from!"
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 3789,
"end": 3806,
"loc": {
"start": {
"line": 161,
"column": 4
},
"end": {
"line": 161,
"column": 21
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3793,
"end": 3806,
"loc": {
"start": {
"line": 161,
"column": 8
},
"end": {
"line": 161,
"column": 21
}
},
"id": {
"type": "Identifier",
"start": 3793,
"end": 3794,
"loc": {
"start": {
"line": 161,
"column": 8
},
"end": {
"line": 161,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"init": {
"type": "MemberExpression",
"start": 3797,
"end": 3806,
"loc": {
"start": {
"line": 161,
"column": 12
},
"end": {
"line": 161,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 3797,
"end": 3801,
"loc": {
"start": {
"line": 161,
"column": 12
},
"end": {
"line": 161,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 3802,
"end": 3806,
"loc": {
"start": {
"line": 161,
"column": 17
},
"end": {
"line": 161,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 3811,
"end": 4518,
"loc": {
"start": {
"line": 162,
"column": 4
},
"end": {
"line": 183,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 3815,
"end": 3825,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 18
}
},
"left": {
"type": "Identifier",
"start": 3815,
"end": 3816,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 3821,
"end": 3825,
"loc": {
"start": {
"line": 162,
"column": 14
},
"end": {
"line": 162,
"column": 18
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 3827,
"end": 3852,
"loc": {
"start": {
"line": 162,
"column": 20
},
"end": {
"line": 164,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3835,
"end": 3846,
"loc": {
"start": {
"line": 163,
"column": 6
},
"end": {
"line": 163,
"column": 17
}
},
"argument": {
"type": "NullLiteral",
"start": 3842,
"end": 3846,
"loc": {
"start": {
"line": 163,
"column": 13
},
"end": {
"line": 163,
"column": 17
}
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 3858,
"end": 4518,
"loc": {
"start": {
"line": 164,
"column": 11
},
"end": {
"line": 183,
"column": 5
}
},
"body": [
{
"type": "WhileStatement",
"start": 3866,
"end": 4512,
"loc": {
"start": {
"line": 165,
"column": 6
},
"end": {
"line": 182,
"column": 7
}
},
"test": {
"type": "BooleanLiteral",
"start": 3873,
"end": 3877,
"loc": {
"start": {
"line": 165,
"column": 13
},
"end": {
"line": 165,
"column": 17
}
},
"value": true
},
"body": {
"type": "BlockStatement",
"start": 3879,
"end": 4512,
"loc": {
"start": {
"line": 165,
"column": 19
},
"end": {
"line": 182,
"column": 7
}
},
"body": [
{
"type": "IfStatement",
"start": 3889,
"end": 4504,
"loc": {
"start": {
"line": 166,
"column": 8
},
"end": {
"line": 181,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 3893,
"end": 3952,
"loc": {
"start": {
"line": 166,
"column": 12
},
"end": {
"line": 166,
"column": 71
}
},
"left": {
"type": "LogicalExpression",
"start": 3894,
"end": 3931,
"loc": {
"start": {
"line": 166,
"column": 13
},
"end": {
"line": 166,
"column": 50
}
},
"left": {
"type": "BinaryExpression",
"start": 3894,
"end": 3905,
"loc": {
"start": {
"line": 166,
"column": 13
},
"end": {
"line": 166,
"column": 24
}
},
"left": {
"type": "Identifier",
"start": 3894,
"end": 3896,
"loc": {
"start": {
"line": 166,
"column": 13
},
"end": {
"line": 166,
"column": 15
},
"identifierName": "to"
},
"name": "to"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 3901,
"end": 3905,
"loc": {
"start": {
"line": 166,
"column": 20
},
"end": {
"line": 166,
"column": 24
}
}
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 3909,
"end": 3931,
"loc": {
"start": {
"line": 166,
"column": 28
},
"end": {
"line": 166,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 3909,
"end": 3927,
"loc": {
"start": {
"line": 166,
"column": 28
},
"end": {
"line": 166,
"column": 46
}
},
"object": {
"type": "MemberExpression",
"start": 3909,
"end": 3918,
"loc": {
"start": {
"line": 166,
"column": 28
},
"end": {
"line": 166,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 3909,
"end": 3914,
"loc": {
"start": {
"line": 166,
"column": 28
},
"end": {
"line": 166,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 3909,
"end": 3910,
"loc": {
"start": {
"line": 166,
"column": 28
},
"end": {
"line": 166,
"column": 29
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 3911,
"end": 3914,
"loc": {
"start": {
"line": 166,
"column": 30
},
"end": {
"line": 166,
"column": 33
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3915,
"end": 3918,
"loc": {
"start": {
"line": 166,
"column": 34
},
"end": {
"line": 166,
"column": 37
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3919,
"end": 3927,
"loc": {
"start": {
"line": 166,
"column": 38
},
"end": {
"line": 166,
"column": 46
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3928,
"end": 3930,
"loc": {
"start": {
"line": 166,
"column": 47
},
"end": {
"line": 166,
"column": 49
},
"identifierName": "to"
},
"name": "to"
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 3893
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 3936,
"end": 3952,
"loc": {
"start": {
"line": 166,
"column": 55
},
"end": {
"line": 166,
"column": 71
}
},
"left": {
"type": "MemberExpression",
"start": 3936,
"end": 3943,
"loc": {
"start": {
"line": 166,
"column": 55
},
"end": {
"line": 166,
"column": 62
}
},
"object": {
"type": "Identifier",
"start": 3936,
"end": 3937,
"loc": {
"start": {
"line": 166,
"column": 55
},
"end": {
"line": 166,
"column": 56
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 3938,
"end": 3943,
"loc": {
"start": {
"line": 166,
"column": 57
},
"end": {
"line": 166,
"column": 62
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 3948,
"end": 3952,
"loc": {
"start": {
"line": 166,
"column": 67
},
"end": {
"line": 166,
"column": 71
}
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 3954,
"end": 4091,
"loc": {
"start": {
"line": 166,
"column": 73
},
"end": {
"line": 170,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4070,
"end": 4081,
"loc": {
"start": {
"line": 169,
"column": 10
},
"end": {
"line": 169,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4070,
"end": 4081,
"loc": {
"start": {
"line": 169,
"column": 10
},
"end": {
"line": 169,
"column": 21
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 4070,
"end": 4071,
"loc": {
"start": {
"line": 169,
"column": 10
},
"end": {
"line": 169,
"column": 11
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 4074,
"end": 4081,
"loc": {
"start": {
"line": 169,
"column": 14
},
"end": {
"line": 169,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 4074,
"end": 4075,
"loc": {
"start": {
"line": 169,
"column": 14
},
"end": {
"line": 169,
"column": 15
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 4076,
"end": 4081,
"loc": {
"start": {
"line": 169,
"column": 16
},
"end": {
"line": 169,
"column": 21
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " o is included in the bound",
"start": 3966,
"end": 3995,
"loc": {
"start": {
"line": 167,
"column": 10
},
"end": {
"line": 167,
"column": 39
}
}
},
{
"type": "CommentLine",
"value": " try to find an element that is closer to the bound",
"start": 4006,
"end": 4059,
"loc": {
"start": {
"line": 168,
"column": 10
},
"end": {
"line": 168,
"column": 63
}
}
}
]
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 4097,
"end": 4504,
"loc": {
"start": {
"line": 170,
"column": 15
},
"end": {
"line": 181,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 4101,
"end": 4138,
"loc": {
"start": {
"line": 170,
"column": 19
},
"end": {
"line": 170,
"column": 56
}
},
"left": {
"type": "BinaryExpression",
"start": 4101,
"end": 4112,
"loc": {
"start": {
"line": 170,
"column": 19
},
"end": {
"line": 170,
"column": 30
}
},
"left": {
"type": "Identifier",
"start": 4101,
"end": 4103,
"loc": {
"start": {
"line": 170,
"column": 19
},
"end": {
"line": 170,
"column": 21
},
"identifierName": "to"
},
"name": "to"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 4108,
"end": 4112,
"loc": {
"start": {
"line": 170,
"column": 26
},
"end": {
"line": 170,
"column": 30
}
}
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 4116,
"end": 4138,
"loc": {
"start": {
"line": 170,
"column": 34
},
"end": {
"line": 170,
"column": 56
}
},
"callee": {
"type": "MemberExpression",
"start": 4116,
"end": 4127,
"loc": {
"start": {
"line": 170,
"column": 34
},
"end": {
"line": 170,
"column": 45
}
},
"object": {
"type": "Identifier",
"start": 4116,
"end": 4118,
"loc": {
"start": {
"line": 170,
"column": 34
},
"end": {
"line": 170,
"column": 36
},
"identifierName": "to"
},
"name": "to"
},
"property": {
"type": "Identifier",
"start": 4119,
"end": 4127,
"loc": {
"start": {
"line": 170,
"column": 37
},
"end": {
"line": 170,
"column": 45
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 4128,
"end": 4137,
"loc": {
"start": {
"line": 170,
"column": 46
},
"end": {
"line": 170,
"column": 55
}
},
"object": {
"type": "MemberExpression",
"start": 4128,
"end": 4133,
"loc": {
"start": {
"line": 170,
"column": 46
},
"end": {
"line": 170,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 4128,
"end": 4129,
"loc": {
"start": {
"line": 170,
"column": 46
},
"end": {
"line": 170,
"column": 47
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 4130,
"end": 4133,
"loc": {
"start": {
"line": 170,
"column": 48
},
"end": {
"line": 170,
"column": 51
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4134,
"end": 4137,
"loc": {
"start": {
"line": 170,
"column": 52
},
"end": {
"line": 170,
"column": 55
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 4140,
"end": 4468,
"loc": {
"start": {
"line": 170,
"column": 58
},
"end": {
"line": 179,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 4228,
"end": 4458,
"loc": {
"start": {
"line": 172,
"column": 10
},
"end": {
"line": 178,
"column": 11
}
},
"test": {
"type": "BinaryExpression",
"start": 4232,
"end": 4247,
"loc": {
"start": {
"line": 172,
"column": 14
},
"end": {
"line": 172,
"column": 29
}
},
"left": {
"type": "MemberExpression",
"start": 4232,
"end": 4238,
"loc": {
"start": {
"line": 172,
"column": 14
},
"end": {
"line": 172,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 4232,
"end": 4233,
"loc": {
"start": {
"line": 172,
"column": 14
},
"end": {
"line": 172,
"column": 15
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 4234,
"end": 4238,
"loc": {
"start": {
"line": 172,
"column": 16
},
"end": {
"line": 172,
"column": 20
},
"identifierName": "left"
},
"name": "left"
},
"computed": false,
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 4243,
"end": 4247,
"loc": {
"start": {
"line": 172,
"column": 25
},
"end": {
"line": 172,
"column": 29
}
}
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 4249,
"end": 4285,
"loc": {
"start": {
"line": 172,
"column": 31
},
"end": {
"line": 174,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4263,
"end": 4273,
"loc": {
"start": {
"line": 173,
"column": 12
},
"end": {
"line": 173,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4263,
"end": 4273,
"loc": {
"start": {
"line": 173,
"column": 12
},
"end": {
"line": 173,
"column": 22
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 4263,
"end": 4264,
"loc": {
"start": {
"line": 173,
"column": 12
},
"end": {
"line": 173,
"column": 13
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 4267,
"end": 4273,
"loc": {
"start": {
"line": 173,
"column": 16
},
"end": {
"line": 173,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 4267,
"end": 4268,
"loc": {
"start": {
"line": 173,
"column": 16
},
"end": {
"line": 173,
"column": 17
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 4269,
"end": 4273,
"loc": {
"start": {
"line": 173,
"column": 18
},
"end": {
"line": 173,
"column": 22
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 4291,
"end": 4458,
"loc": {
"start": {
"line": 174,
"column": 17
},
"end": {
"line": 178,
"column": 11
}
},
"body": [
{
"type": "ReturnStatement",
"start": 4431,
"end": 4446,
"loc": {
"start": {
"line": 177,
"column": 12
},
"end": {
"line": 177,
"column": 27
}
},
"argument": {
"type": "CallExpression",
"start": 4438,
"end": 4446,
"loc": {
"start": {
"line": 177,
"column": 19
},
"end": {
"line": 177,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 4438,
"end": 4444,
"loc": {
"start": {
"line": 177,
"column": 19
},
"end": {
"line": 177,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 4438,
"end": 4439,
"loc": {
"start": {
"line": 177,
"column": 19
},
"end": {
"line": 177,
"column": 20
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 4440,
"end": 4444,
"loc": {
"start": {
"line": 177,
"column": 21
},
"end": {
"line": 177,
"column": 25
},
"identifierName": "prev"
},
"name": "prev"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " there is no left element. Search for the prev smaller element,",
"start": 4305,
"end": 4370,
"loc": {
"start": {
"line": 175,
"column": 12
},
"end": {
"line": 175,
"column": 77
}
}
},
{
"type": "CommentLine",
"value": " this should be within the bounds",
"start": 4383,
"end": 4418,
"loc": {
"start": {
"line": 176,
"column": 12
},
"end": {
"line": 176,
"column": 47
}
}
}
]
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " o is not within the bound, maybe one of the left elements is..",
"start": 4152,
"end": 4217,
"loc": {
"start": {
"line": 171,
"column": 10
},
"end": {
"line": 171,
"column": 75
}
}
}
]
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 4474,
"end": 4504,
"loc": {
"start": {
"line": 179,
"column": 15
},
"end": {
"line": 181,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 4486,
"end": 4494,
"loc": {
"start": {
"line": 180,
"column": 10
},
"end": {
"line": 180,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 4493,
"end": 4494,
"loc": {
"start": {
"line": 180,
"column": 17
},
"end": {
"line": 180,
"column": 18
},
"identifierName": "o"
},
"name": "o"
}
}
],
"directives": []
}
}
}
],
"directives": []
}
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 4525,
"end": 4650,
"loc": {
"start": {
"line": 185,
"column": 2
},
"end": {
"line": 191,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4525,
"end": 4541,
"loc": {
"start": {
"line": 185,
"column": 2
},
"end": {
"line": 185,
"column": 18
},
"identifierName": "findSmallestNode"
},
"name": "findSmallestNode"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 4545,
"end": 4650,
"loc": {
"start": {
"line": 185,
"column": 22
},
"end": {
"line": 191,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4551,
"end": 4568,
"loc": {
"start": {
"line": 186,
"column": 4
},
"end": {
"line": 186,
"column": 21
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4555,
"end": 4568,
"loc": {
"start": {
"line": 186,
"column": 8
},
"end": {
"line": 186,
"column": 21
}
},
"id": {
"type": "Identifier",
"start": 4555,
"end": 4556,
"loc": {
"start": {
"line": 186,
"column": 8
},
"end": {
"line": 186,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"init": {
"type": "MemberExpression",
"start": 4559,
"end": 4568,
"loc": {
"start": {
"line": 186,
"column": 12
},
"end": {
"line": 186,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 4559,
"end": 4563,
"loc": {
"start": {
"line": 186,
"column": 12
},
"end": {
"line": 186,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 4564,
"end": 4568,
"loc": {
"start": {
"line": 186,
"column": 17
},
"end": {
"line": 186,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
}
}
],
"kind": "var"
},
{
"type": "WhileStatement",
"start": 4573,
"end": 4633,
"loc": {
"start": {
"line": 187,
"column": 4
},
"end": {
"line": 189,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 4580,
"end": 4607,
"loc": {
"start": {
"line": 187,
"column": 11
},
"end": {
"line": 187,
"column": 38
}
},
"left": {
"type": "BinaryExpression",
"start": 4580,
"end": 4589,
"loc": {
"start": {
"line": 187,
"column": 11
},
"end": {
"line": 187,
"column": 20
}
},
"left": {
"type": "Identifier",
"start": 4580,
"end": 4581,
"loc": {
"start": {
"line": 187,
"column": 11
},
"end": {
"line": 187,
"column": 12
},
"identifierName": "o"
},
"name": "o"
},
"operator": "!=",
"right": {
"type": "NullLiteral",
"start": 4585,
"end": 4589,
"loc": {
"start": {
"line": 187,
"column": 16
},
"end": {
"line": 187,
"column": 20
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 4593,
"end": 4607,
"loc": {
"start": {
"line": 187,
"column": 24
},
"end": {
"line": 187,
"column": 38
}
},
"left": {
"type": "MemberExpression",
"start": 4593,
"end": 4599,
"loc": {
"start": {
"line": 187,
"column": 24
},
"end": {
"line": 187,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 4593,
"end": 4594,
"loc": {
"start": {
"line": 187,
"column": 24
},
"end": {
"line": 187,
"column": 25
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 4595,
"end": 4599,
"loc": {
"start": {
"line": 187,
"column": 26
},
"end": {
"line": 187,
"column": 30
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "!=",
"right": {
"type": "NullLiteral",
"start": 4603,
"end": 4607,
"loc": {
"start": {
"line": 187,
"column": 34
},
"end": {
"line": 187,
"column": 38
}
}
}
}
},
"body": {
"type": "BlockStatement",
"start": 4609,
"end": 4633,
"loc": {
"start": {
"line": 187,
"column": 40
},
"end": {
"line": 189,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4617,
"end": 4627,
"loc": {
"start": {
"line": 188,
"column": 6
},
"end": {
"line": 188,
"column": 16
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4617,
"end": 4627,
"loc": {
"start": {
"line": 188,
"column": 6
},
"end": {
"line": 188,
"column": 16
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 4617,
"end": 4618,
"loc": {
"start": {
"line": 188,
"column": 6
},
"end": {
"line": 188,
"column": 7
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 4621,
"end": 4627,
"loc": {
"start": {
"line": 188,
"column": 10
},
"end": {
"line": 188,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 4621,
"end": 4622,
"loc": {
"start": {
"line": 188,
"column": 10
},
"end": {
"line": 188,
"column": 11
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 4623,
"end": 4627,
"loc": {
"start": {
"line": 188,
"column": 12
},
"end": {
"line": 188,
"column": 16
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 4638,
"end": 4646,
"loc": {
"start": {
"line": 190,
"column": 4
},
"end": {
"line": 190,
"column": 12
}
},
"argument": {
"type": "Identifier",
"start": 4645,
"end": 4646,
"loc": {
"start": {
"line": 190,
"column": 11
},
"end": {
"line": 190,
"column": 12
},
"identifierName": "o"
},
"name": "o"
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 4653,
"end": 4766,
"loc": {
"start": {
"line": 192,
"column": 2
},
"end": {
"line": 195,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4653,
"end": 4671,
"loc": {
"start": {
"line": 192,
"column": 2
},
"end": {
"line": 192,
"column": 20
},
"identifierName": "findWithLowerBound"
},
"name": "findWithLowerBound"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4673,
"end": 4677,
"loc": {
"start": {
"line": 192,
"column": 22
},
"end": {
"line": 192,
"column": 26
},
"identifierName": "from"
},
"name": "from"
}
],
"body": {
"type": "BlockStatement",
"start": 4679,
"end": 4766,
"loc": {
"start": {
"line": 192,
"column": 28
},
"end": {
"line": 195,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4685,
"end": 4726,
"loc": {
"start": {
"line": 193,
"column": 4
},
"end": {
"line": 193,
"column": 45
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4689,
"end": 4726,
"loc": {
"start": {
"line": 193,
"column": 8
},
"end": {
"line": 193,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 4689,
"end": 4690,
"loc": {
"start": {
"line": 193,
"column": 8
},
"end": {
"line": 193,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"init": {
"type": "CallExpression",
"start": 4693,
"end": 4726,
"loc": {
"start": {
"line": 193,
"column": 12
},
"end": {
"line": 193,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 4693,
"end": 4720,
"loc": {
"start": {
"line": 193,
"column": 12
},
"end": {
"line": 193,
"column": 39
}
},
"object": {
"type": "ThisExpression",
"start": 4693,
"end": 4697,
"loc": {
"start": {
"line": 193,
"column": 12
},
"end": {
"line": 193,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 4698,
"end": 4720,
"loc": {
"start": {
"line": 193,
"column": 17
},
"end": {
"line": 193,
"column": 39
},
"identifierName": "findNodeWithLowerBound"
},
"name": "findNodeWithLowerBound"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4721,
"end": 4725,
"loc": {
"start": {
"line": 193,
"column": 40
},
"end": {
"line": 193,
"column": 44
},
"identifierName": "from"
},
"name": "from"
}
]
}
}
],
"kind": "var"
},
{
"type": "ReturnStatement",
"start": 4731,
"end": 4762,
"loc": {
"start": {
"line": 194,
"column": 4
},
"end": {
"line": 194,
"column": 35
}
},
"argument": {
"type": "ConditionalExpression",
"start": 4738,
"end": 4762,
"loc": {
"start": {
"line": 194,
"column": 11
},
"end": {
"line": 194,
"column": 35
}
},
"test": {
"type": "BinaryExpression",
"start": 4738,
"end": 4747,
"loc": {
"start": {
"line": 194,
"column": 11
},
"end": {
"line": 194,
"column": 20
}
},
"left": {
"type": "Identifier",
"start": 4738,
"end": 4739,
"loc": {
"start": {
"line": 194,
"column": 11
},
"end": {
"line": 194,
"column": 12
},
"identifierName": "n"
},
"name": "n"
},
"operator": "==",
"right": {
"type": "NullLiteral",
"start": 4743,
"end": 4747,
"loc": {
"start": {
"line": 194,
"column": 16
},
"end": {
"line": 194,
"column": 20
}
}
}
},
"consequent": {
"type": "NullLiteral",
"start": 4750,
"end": 4754,
"loc": {
"start": {
"line": 194,
"column": 23
},
"end": {
"line": 194,
"column": 27
}
}
},
"alternate": {
"type": "MemberExpression",
"start": 4757,
"end": 4762,
"loc": {
"start": {
"line": 194,
"column": 30
},
"end": {
"line": 194,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 4757,
"end": 4758,
"loc": {
"start": {
"line": 194,
"column": 30
},
"end": {
"line": 194,
"column": 31
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 4759,
"end": 4762,
"loc": {
"start": {
"line": 194,
"column": 32
},
"end": {
"line": 194,
"column": 35
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 4769,
"end": 4878,
"loc": {
"start": {
"line": 196,
"column": 2
},
"end": {
"line": 199,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4769,
"end": 4787,
"loc": {
"start": {
"line": 196,
"column": 2
},
"end": {
"line": 196,
"column": 20
},
"identifierName": "findWithUpperBound"
},
"name": "findWithUpperBound"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4789,
"end": 4791,
"loc": {
"start": {
"line": 196,
"column": 22
},
"end": {
"line": 196,
"column": 24
},
"identifierName": "to"
},
"name": "to"
}
],
"body": {
"type": "BlockStatement",
"start": 4793,
"end": 4878,
"loc": {
"start": {
"line": 196,
"column": 26
},
"end": {
"line": 199,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4799,
"end": 4838,
"loc": {
"start": {
"line": 197,
"column": 4
},
"end": {
"line": 197,
"column": 43
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4803,
"end": 4838,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 43
}
},
"id": {
"type": "Identifier",
"start": 4803,
"end": 4804,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"init": {
"type": "CallExpression",
"start": 4807,
"end": 4838,
"loc": {
"start": {
"line": 197,
"column": 12
},
"end": {
"line": 197,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 4807,
"end": 4834,
"loc": {
"start": {
"line": 197,
"column": 12
},
"end": {
"line": 197,
"column": 39
}
},
"object": {
"type": "ThisExpression",
"start": 4807,
"end": 4811,
"loc": {
"start": {
"line": 197,
"column": 12
},
"end": {
"line": 197,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 4812,
"end": 4834,
"loc": {
"start": {
"line": 197,
"column": 17
},
"end": {
"line": 197,
"column": 39
},
"identifierName": "findNodeWithUpperBound"
},
"name": "findNodeWithUpperBound"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4835,
"end": 4837,
"loc": {
"start": {
"line": 197,
"column": 40
},
"end": {
"line": 197,
"column": 42
},
"identifierName": "to"
},
"name": "to"
}
]
}
}
],
"kind": "var"
},
{
"type": "ReturnStatement",
"start": 4843,
"end": 4874,
"loc": {
"start": {
"line": 198,
"column": 4
},
"end": {
"line": 198,
"column": 35
}
},
"argument": {
"type": "ConditionalExpression",
"start": 4850,
"end": 4874,
"loc": {
"start": {
"line": 198,
"column": 11
},
"end": {
"line": 198,
"column": 35
}
},
"test": {
"type": "BinaryExpression",
"start": 4850,
"end": 4859,
"loc": {
"start": {
"line": 198,
"column": 11
},
"end": {
"line": 198,
"column": 20
}
},
"left": {
"type": "Identifier",
"start": 4850,
"end": 4851,
"loc": {
"start": {
"line": 198,
"column": 11
},
"end": {
"line": 198,
"column": 12
},
"identifierName": "n"
},
"name": "n"
},
"operator": "==",
"right": {
"type": "NullLiteral",
"start": 4855,
"end": 4859,
"loc": {
"start": {
"line": 198,
"column": 16
},
"end": {
"line": 198,
"column": 20
}
}
}
},
"consequent": {
"type": "NullLiteral",
"start": 4862,
"end": 4866,
"loc": {
"start": {
"line": 198,
"column": 23
},
"end": {
"line": 198,
"column": 27
}
}
},
"alternate": {
"type": "MemberExpression",
"start": 4869,
"end": 4874,
"loc": {
"start": {
"line": 198,
"column": 30
},
"end": {
"line": 198,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 4869,
"end": 4870,
"loc": {
"start": {
"line": 198,
"column": 30
},
"end": {
"line": 198,
"column": 31
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 4871,
"end": 4874,
"loc": {
"start": {
"line": 198,
"column": 32
},
"end": {
"line": 198,
"column": 35
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 4881,
"end": 5274,
"loc": {
"start": {
"line": 200,
"column": 2
},
"end": {
"line": 218,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4881,
"end": 4888,
"loc": {
"start": {
"line": 200,
"column": 2
},
"end": {
"line": 200,
"column": 9
},
"identifierName": "iterate"
},
"name": "iterate"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4890,
"end": 4894,
"loc": {
"start": {
"line": 200,
"column": 11
},
"end": {
"line": 200,
"column": 15
},
"identifierName": "from"
},
"name": "from"
},
{
"type": "Identifier",
"start": 4896,
"end": 4898,
"loc": {
"start": {
"line": 200,
"column": 17
},
"end": {
"line": 200,
"column": 19
},
"identifierName": "to"
},
"name": "to"
},
{
"type": "Identifier",
"start": 4900,
"end": 4901,
"loc": {
"start": {
"line": 200,
"column": 21
},
"end": {
"line": 200,
"column": 22
},
"identifierName": "f"
},
"name": "f"
}
],
"body": {
"type": "BlockStatement",
"start": 4903,
"end": 5274,
"loc": {
"start": {
"line": 200,
"column": 24
},
"end": {
"line": 218,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4909,
"end": 4914,
"loc": {
"start": {
"line": 201,
"column": 4
},
"end": {
"line": 201,
"column": 9
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4913,
"end": 4914,
"loc": {
"start": {
"line": 201,
"column": 8
},
"end": {
"line": 201,
"column": 9
}
},
"id": {
"type": "Identifier",
"start": 4913,
"end": 4914,
"loc": {
"start": {
"line": 201,
"column": 8
},
"end": {
"line": 201,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"init": null
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 4919,
"end": 5036,
"loc": {
"start": {
"line": 202,
"column": 4
},
"end": {
"line": 206,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 4923,
"end": 4936,
"loc": {
"start": {
"line": 202,
"column": 8
},
"end": {
"line": 202,
"column": 21
}
},
"left": {
"type": "Identifier",
"start": 4923,
"end": 4927,
"loc": {
"start": {
"line": 202,
"column": 8
},
"end": {
"line": 202,
"column": 12
},
"identifierName": "from"
},
"name": "from"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 4932,
"end": 4936,
"loc": {
"start": {
"line": 202,
"column": 17
},
"end": {
"line": 202,
"column": 21
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 4938,
"end": 4979,
"loc": {
"start": {
"line": 202,
"column": 23
},
"end": {
"line": 204,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4946,
"end": 4973,
"loc": {
"start": {
"line": 203,
"column": 6
},
"end": {
"line": 203,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4946,
"end": 4973,
"loc": {
"start": {
"line": 203,
"column": 6
},
"end": {
"line": 203,
"column": 33
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 4946,
"end": 4947,
"loc": {
"start": {
"line": 203,
"column": 6
},
"end": {
"line": 203,
"column": 7
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "CallExpression",
"start": 4950,
"end": 4973,
"loc": {
"start": {
"line": 203,
"column": 10
},
"end": {
"line": 203,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 4950,
"end": 4971,
"loc": {
"start": {
"line": 203,
"column": 10
},
"end": {
"line": 203,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 4950,
"end": 4954,
"loc": {
"start": {
"line": 203,
"column": 10
},
"end": {
"line": 203,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"start": 4955,
"end": 4971,
"loc": {
"start": {
"line": 203,
"column": 15
},
"end": {
"line": 203,
"column": 31
},
"identifierName": "findSmallestNode"
},
"name": "findSmallestNode"
},
"computed": false
},
"arguments": []
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 4985,
"end": 5036,
"loc": {
"start": {
"line": 204,
"column": 11
},
"end": {
"line": 206,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4993,
"end": 5030,
"loc": {
"start": {
"line": 205,
"column": 6
},
"end": {
"line": 205,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4993,
"end": 5030,
"loc": {
"start": {
"line": 205,
"column": 6
},
"end": {
"line": 205,
"column": 43
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 4993,
"end": 4994,
"loc": {
"start": {
"line": 205,
"column": 6
},
"end": {
"line": 205,
"column": 7
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "CallExpression",
"start": 4997,
"end": 5030,
"loc": {
"start": {
"line": 205,
"column": 10
},
"end": {
"line": 205,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 4997,
"end": 5024,
"loc": {
"start": {
"line": 205,
"column": 10
},
"end": {
"line": 205,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 4997,
"end": 5001,
"loc": {
"start": {
"line": 205,
"column": 10
},
"end": {
"line": 205,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"start": 5002,
"end": 5024,
"loc": {
"start": {
"line": 205,
"column": 15
},
"end": {
"line": 205,
"column": 37
},
"identifierName": "findNodeWithLowerBound"
},
"name": "findNodeWithLowerBound"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 5025,
"end": 5029,
"loc": {
"start": {
"line": 205,
"column": 38
},
"end": {
"line": 205,
"column": 42
},
"identifierName": "from"
},
"name": "from"
}
]
}
}
}
],
"directives": []
}
},
{
"type": "WhileStatement",
"start": 5041,
"end": 5270,
"loc": {
"start": {
"line": 207,
"column": 4
},
"end": {
"line": 217,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 5055,
"end": 5222,
"loc": {
"start": {
"line": 208,
"column": 6
},
"end": {
"line": 213,
"column": 7
}
},
"left": {
"type": "BinaryExpression",
"start": 5055,
"end": 5065,
"loc": {
"start": {
"line": 208,
"column": 6
},
"end": {
"line": 208,
"column": 16
}
},
"left": {
"type": "Identifier",
"start": 5055,
"end": 5056,
"loc": {
"start": {
"line": 208,
"column": 6
},
"end": {
"line": 208,
"column": 7
},
"identifierName": "o"
},
"name": "o"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 5061,
"end": 5065,
"loc": {
"start": {
"line": 208,
"column": 12
},
"end": {
"line": 208,
"column": 16
}
}
}
},
"operator": "&&",
"right": {
"type": "LogicalExpression",
"start": 5085,
"end": 5214,
"loc": {
"start": {
"line": 210,
"column": 8
},
"end": {
"line": 212,
"column": 28
}
},
"left": {
"type": "LogicalExpression",
"start": 5085,
"end": 5182,
"loc": {
"start": {
"line": 210,
"column": 8
},
"end": {
"line": 211,
"column": 30
}
},
"left": {
"type": "BinaryExpression",
"start": 5085,
"end": 5096,
"loc": {
"start": {
"line": 210,
"column": 8
},
"end": {
"line": 210,
"column": 19
}
},
"left": {
"type": "Identifier",
"start": 5085,
"end": 5087,
"loc": {
"start": {
"line": 210,
"column": 8
},
"end": {
"line": 210,
"column": 10
},
"identifierName": "to"
},
"name": "to"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 5092,
"end": 5096,
"loc": {
"start": {
"line": 210,
"column": 15
},
"end": {
"line": 210,
"column": 19
}
}
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 5160,
"end": 5182,
"loc": {
"start": {
"line": 211,
"column": 8
},
"end": {
"line": 211,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 5160,
"end": 5178,
"loc": {
"start": {
"line": 211,
"column": 8
},
"end": {
"line": 211,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 5160,
"end": 5169,
"loc": {
"start": {
"line": 211,
"column": 8
},
"end": {
"line": 211,
"column": 17
}
},
"object": {
"type": "MemberExpression",
"start": 5160,
"end": 5165,
"loc": {
"start": {
"line": 211,
"column": 8
},
"end": {
"line": 211,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 5160,
"end": 5161,
"loc": {
"start": {
"line": 211,
"column": 8
},
"end": {
"line": 211,
"column": 9
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 5162,
"end": 5165,
"loc": {
"start": {
"line": 211,
"column": 10
},
"end": {
"line": 211,
"column": 13
},
"identifierName": "val"
},
"name": "val"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 5166,
"end": 5169,
"loc": {
"start": {
"line": 211,
"column": 14
},
"end": {
"line": 211,
"column": 17
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 5170,
"end": 5178,
"loc": {
"start": {
"line": 211,
"column": 18
},
"end": {
"line": 211,
"column": 26
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "Identifier",
"start": 5179,
"end": 5181,
"loc": {
"start": {
"line": 211,
"column": 27
},
"end": {
"line": 211,
"column": 29
},
"identifierName": "to"
},
"name": "to"
}
],
"leadingComments": [
{
"type": "CommentLine",
"value": " eslint-disable-line no-unmodified-loop-condition",
"start": 5100,
"end": 5151,
"loc": {
"start": {
"line": 210,
"column": 23
},
"end": {
"line": 210,
"column": 74
}
}
}
]
}
},
"operator": "||",
"right": {
"type": "CallExpression",
"start": 5194,
"end": 5214,
"loc": {
"start": {
"line": 212,
"column": 8
},
"end": {
"line": 212,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 5194,
"end": 5210,
"loc": {
"start": {
"line": 212,
"column": 8
},
"end": {
"line": 212,
"column": 24
}
},
"object": {
"type": "MemberExpression",
"start": 5194,
"end": 5203,
"loc": {
"start": {
"line": 212,
"column": 8
},
"end": {
"line": 212,
"column": 17
}
},
"object": {
"type": "MemberExpression",
"start": 5194,
"end": 5199,
"loc": {
"start": {
"line": 212,
"column": 8
},
"end": {
"line": 212,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 5194,
"end": 5195,
"loc": {
"start": {
"line": 212,
"column": 8
},
"end": {
"line": 212,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 5196,
"end": 5199,
"loc": {
"start": {
"line": 212,
"column": 10
},
"end": {
"line": 212,
"column": 13
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 5200,
"end": 5203,
"loc": {
"start": {
"line": 212,
"column": 14
},
"end": {
"line": 212,
"column": 17
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 5204,
"end": 5210,
"loc": {
"start": {
"line": 212,
"column": 18
},
"end": {
"line": 212,
"column": 24
},
"identifierName": "equals"
},
"name": "equals"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 5211,
"end": 5213,
"loc": {
"start": {
"line": 212,
"column": 25
},
"end": {
"line": 212,
"column": 27
},
"identifierName": "to"
},
"name": "to"
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 5075
}
}
},
"body": {
"type": "BlockStatement",
"start": 5229,
"end": 5270,
"loc": {
"start": {
"line": 214,
"column": 6
},
"end": {
"line": 217,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 5237,
"end": 5245,
"loc": {
"start": {
"line": 215,
"column": 6
},
"end": {
"line": 215,
"column": 14
}
},
"expression": {
"type": "CallExpression",
"start": 5237,
"end": 5245,
"loc": {
"start": {
"line": 215,
"column": 6
},
"end": {
"line": 215,
"column": 14
}
},
"callee": {
"type": "Identifier",
"start": 5237,
"end": 5238,
"loc": {
"start": {
"line": 215,
"column": 6
},
"end": {
"line": 215,
"column": 7
},
"identifierName": "f"
},
"name": "f"
},
"arguments": [
{
"type": "MemberExpression",
"start": 5239,
"end": 5244,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 5239,
"end": 5240,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 5241,
"end": 5244,
"loc": {
"start": {
"line": 215,
"column": 10
},
"end": {
"line": 215,
"column": 13
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
}
]
}
},
{
"type": "ExpressionStatement",
"start": 5252,
"end": 5264,
"loc": {
"start": {
"line": 216,
"column": 6
},
"end": {
"line": 216,
"column": 18
}
},
"expression": {
"type": "AssignmentExpression",
"start": 5252,
"end": 5264,
"loc": {
"start": {
"line": 216,
"column": 6
},
"end": {
"line": 216,
"column": 18
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 5252,
"end": 5253,
"loc": {
"start": {
"line": 216,
"column": 6
},
"end": {
"line": 216,
"column": 7
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "CallExpression",
"start": 5256,
"end": 5264,
"loc": {
"start": {
"line": 216,
"column": 10
},
"end": {
"line": 216,
"column": 18
}
},
"callee": {
"type": "MemberExpression",
"start": 5256,
"end": 5262,
"loc": {
"start": {
"line": 216,
"column": 10
},
"end": {
"line": 216,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 5256,
"end": 5257,
"loc": {
"start": {
"line": 216,
"column": 10
},
"end": {
"line": 216,
"column": 11
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 5258,
"end": 5262,
"loc": {
"start": {
"line": 216,
"column": 12
},
"end": {
"line": 216,
"column": 16
},
"identifierName": "next"
},
"name": "next"
},
"computed": false
},
"arguments": []
}
}
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 5277,
"end": 5400,
"loc": {
"start": {
"line": 219,
"column": 2
},
"end": {
"line": 226,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 5277,
"end": 5281,
"loc": {
"start": {
"line": 219,
"column": 2
},
"end": {
"line": 219,
"column": 6
},
"identifierName": "find"
},
"name": "find"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 5283,
"end": 5285,
"loc": {
"start": {
"line": 219,
"column": 8
},
"end": {
"line": 219,
"column": 10
},
"identifierName": "id"
},
"name": "id"
}
],
"body": {
"type": "BlockStatement",
"start": 5287,
"end": 5400,
"loc": {
"start": {
"line": 219,
"column": 12
},
"end": {
"line": 226,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 5293,
"end": 5318,
"loc": {
"start": {
"line": 220,
"column": 4
},
"end": {
"line": 220,
"column": 29
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 5297,
"end": 5318,
"loc": {
"start": {
"line": 220,
"column": 8
},
"end": {
"line": 220,
"column": 29
}
},
"id": {
"type": "Identifier",
"start": 5297,
"end": 5298,
"loc": {
"start": {
"line": 220,
"column": 8
},
"end": {
"line": 220,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"init": {
"type": "CallExpression",
"start": 5301,
"end": 5318,
"loc": {
"start": {
"line": 220,
"column": 12
},
"end": {
"line": 220,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
"start": 5301,
"end": 5314,
"loc": {
"start": {
"line": 220,
"column": 12
},
"end": {
"line": 220,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 5301,
"end": 5305,
"loc": {
"start": {
"line": 220,
"column": 12
},
"end": {
"line": 220,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 5306,
"end": 5314,
"loc": {
"start": {
"line": 220,
"column": 17
},
"end": {
"line": 220,
"column": 25
},
"identifierName": "findNode"
},
"name": "findNode"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 5315,
"end": 5317,
"loc": {
"start": {
"line": 220,
"column": 26
},
"end": {
"line": 220,
"column": 28
},
"identifierName": "id"
},
"name": "id"
}
]
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 5323,
"end": 5396,
"loc": {
"start": {
"line": 221,
"column": 4
},
"end": {
"line": 225,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 5327,
"end": 5337,
"loc": {
"start": {
"line": 221,
"column": 8
},
"end": {
"line": 221,
"column": 18
}
},
"left": {
"type": "Identifier",
"start": 5327,
"end": 5328,
"loc": {
"start": {
"line": 221,
"column": 8
},
"end": {
"line": 221,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 5333,
"end": 5337,
"loc": {
"start": {
"line": 221,
"column": 14
},
"end": {
"line": 221,
"column": 18
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 5339,
"end": 5365,
"loc": {
"start": {
"line": 221,
"column": 20
},
"end": {
"line": 223,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5347,
"end": 5359,
"loc": {
"start": {
"line": 222,
"column": 6
},
"end": {
"line": 222,
"column": 18
}
},
"argument": {
"type": "MemberExpression",
"start": 5354,
"end": 5359,
"loc": {
"start": {
"line": 222,
"column": 13
},
"end": {
"line": 222,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 5354,
"end": 5355,
"loc": {
"start": {
"line": 222,
"column": 13
},
"end": {
"line": 222,
"column": 14
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 5356,
"end": 5359,
"loc": {
"start": {
"line": 222,
"column": 15
},
"end": {
"line": 222,
"column": 18
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 5371,
"end": 5396,
"loc": {
"start": {
"line": 223,
"column": 11
},
"end": {
"line": 225,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5379,
"end": 5390,
"loc": {
"start": {
"line": 224,
"column": 6
},
"end": {
"line": 224,
"column": 17
}
},
"argument": {
"type": "NullLiteral",
"start": 5386,
"end": 5390,
"loc": {
"start": {
"line": 224,
"column": 13
},
"end": {
"line": 224,
"column": 17
}
}
}
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 5403,
"end": 5762,
"loc": {
"start": {
"line": 227,
"column": 2
},
"end": {
"line": 245,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 5403,
"end": 5411,
"loc": {
"start": {
"line": 227,
"column": 2
},
"end": {
"line": 227,
"column": 10
},
"identifierName": "findNode"
},
"name": "findNode"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 5413,
"end": 5415,
"loc": {
"start": {
"line": 227,
"column": 12
},
"end": {
"line": 227,
"column": 14
},
"identifierName": "id"
},
"name": "id"
}
],
"body": {
"type": "BlockStatement",
"start": 5417,
"end": 5762,
"loc": {
"start": {
"line": 227,
"column": 16
},
"end": {
"line": 245,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 5423,
"end": 5440,
"loc": {
"start": {
"line": 228,
"column": 4
},
"end": {
"line": 228,
"column": 21
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 5427,
"end": 5440,
"loc": {
"start": {
"line": 228,
"column": 8
},
"end": {
"line": 228,
"column": 21
}
},
"id": {
"type": "Identifier",
"start": 5427,
"end": 5428,
"loc": {
"start": {
"line": 228,
"column": 8
},
"end": {
"line": 228,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"init": {
"type": "MemberExpression",
"start": 5431,
"end": 5440,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 5431,
"end": 5435,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 5436,
"end": 5440,
"loc": {
"start": {
"line": 228,
"column": 17
},
"end": {
"line": 228,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 5445,
"end": 5758,
"loc": {
"start": {
"line": 229,
"column": 4
},
"end": {
"line": 244,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 5449,
"end": 5459,
"loc": {
"start": {
"line": 229,
"column": 8
},
"end": {
"line": 229,
"column": 18
}
},
"left": {
"type": "Identifier",
"start": 5449,
"end": 5450,
"loc": {
"start": {
"line": 229,
"column": 8
},
"end": {
"line": 229,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 5455,
"end": 5459,
"loc": {
"start": {
"line": 229,
"column": 14
},
"end": {
"line": 229,
"column": 18
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 5461,
"end": 5486,
"loc": {
"start": {
"line": 229,
"column": 20
},
"end": {
"line": 231,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5469,
"end": 5480,
"loc": {
"start": {
"line": 230,
"column": 6
},
"end": {
"line": 230,
"column": 17
}
},
"argument": {
"type": "NullLiteral",
"start": 5476,
"end": 5480,
"loc": {
"start": {
"line": 230,
"column": 13
},
"end": {
"line": 230,
"column": 17
}
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 5492,
"end": 5758,
"loc": {
"start": {
"line": 231,
"column": 11
},
"end": {
"line": 244,
"column": 5
}
},
"body": [
{
"type": "WhileStatement",
"start": 5500,
"end": 5752,
"loc": {
"start": {
"line": 232,
"column": 6
},
"end": {
"line": 243,
"column": 7
}
},
"test": {
"type": "BooleanLiteral",
"start": 5507,
"end": 5511,
"loc": {
"start": {
"line": 232,
"column": 13
},
"end": {
"line": 232,
"column": 17
}
},
"value": true
},
"body": {
"type": "BlockStatement",
"start": 5513,
"end": 5752,
"loc": {
"start": {
"line": 232,
"column": 19
},
"end": {
"line": 243,
"column": 7
}
},
"body": [
{
"type": "IfStatement",
"start": 5523,
"end": 5572,
"loc": {
"start": {
"line": 233,
"column": 8
},
"end": {
"line": 235,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 5527,
"end": 5537,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 22
}
},
"left": {
"type": "Identifier",
"start": 5527,
"end": 5528,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 13
},
"identifierName": "o"
},
"name": "o"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 5533,
"end": 5537,
"loc": {
"start": {
"line": 233,
"column": 18
},
"end": {
"line": 233,
"column": 22
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 5539,
"end": 5572,
"loc": {
"start": {
"line": 233,
"column": 24
},
"end": {
"line": 235,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5551,
"end": 5562,
"loc": {
"start": {
"line": 234,
"column": 10
},
"end": {
"line": 234,
"column": 21
}
},
"argument": {
"type": "NullLiteral",
"start": 5558,
"end": 5562,
"loc": {
"start": {
"line": 234,
"column": 17
},
"end": {
"line": 234,
"column": 21
}
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 5581,
"end": 5744,
"loc": {
"start": {
"line": 236,
"column": 8
},
"end": {
"line": 242,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 5585,
"end": 5607,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 5585,
"end": 5596,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 5585,
"end": 5587,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 14
},
"identifierName": "id"
},
"name": "id"
},
"property": {
"type": "Identifier",
"start": 5588,
"end": 5596,
"loc": {
"start": {
"line": 236,
"column": 15
},
"end": {
"line": 236,
"column": 23
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 5597,
"end": 5606,
"loc": {
"start": {
"line": 236,
"column": 24
},
"end": {
"line": 236,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 5597,
"end": 5602,
"loc": {
"start": {
"line": 236,
"column": 24
},
"end": {
"line": 236,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 5597,
"end": 5598,
"loc": {
"start": {
"line": 236,
"column": 24
},
"end": {
"line": 236,
"column": 25
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 5599,
"end": 5602,
"loc": {
"start": {
"line": 236,
"column": 26
},
"end": {
"line": 236,
"column": 29
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 5603,
"end": 5606,
"loc": {
"start": {
"line": 236,
"column": 30
},
"end": {
"line": 236,
"column": 33
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 5609,
"end": 5641,
"loc": {
"start": {
"line": 236,
"column": 36
},
"end": {
"line": 238,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 5621,
"end": 5631,
"loc": {
"start": {
"line": 237,
"column": 10
},
"end": {
"line": 237,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 5621,
"end": 5631,
"loc": {
"start": {
"line": 237,
"column": 10
},
"end": {
"line": 237,
"column": 20
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 5621,
"end": 5622,
"loc": {
"start": {
"line": 237,
"column": 10
},
"end": {
"line": 237,
"column": 11
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 5625,
"end": 5631,
"loc": {
"start": {
"line": 237,
"column": 14
},
"end": {
"line": 237,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 5625,
"end": 5626,
"loc": {
"start": {
"line": 237,
"column": 14
},
"end": {
"line": 237,
"column": 15
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 5627,
"end": 5631,
"loc": {
"start": {
"line": 237,
"column": 16
},
"end": {
"line": 237,
"column": 20
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 5647,
"end": 5744,
"loc": {
"start": {
"line": 238,
"column": 15
},
"end": {
"line": 242,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 5651,
"end": 5673,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 5651,
"end": 5669,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 5651,
"end": 5660,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 5651,
"end": 5656,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 5651,
"end": 5652,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 20
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 5653,
"end": 5656,
"loc": {
"start": {
"line": 238,
"column": 21
},
"end": {
"line": 238,
"column": 24
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 5657,
"end": 5660,
"loc": {
"start": {
"line": 238,
"column": 25
},
"end": {
"line": 238,
"column": 28
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 5661,
"end": 5669,
"loc": {
"start": {
"line": 238,
"column": 29
},
"end": {
"line": 238,
"column": 37
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 5670,
"end": 5672,
"loc": {
"start": {
"line": 238,
"column": 38
},
"end": {
"line": 238,
"column": 40
},
"identifierName": "id"
},
"name": "id"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 5675,
"end": 5708,
"loc": {
"start": {
"line": 238,
"column": 43
},
"end": {
"line": 240,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 5687,
"end": 5698,
"loc": {
"start": {
"line": 239,
"column": 10
},
"end": {
"line": 239,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 5687,
"end": 5698,
"loc": {
"start": {
"line": 239,
"column": 10
},
"end": {
"line": 239,
"column": 21
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 5687,
"end": 5688,
"loc": {
"start": {
"line": 239,
"column": 10
},
"end": {
"line": 239,
"column": 11
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 5691,
"end": 5698,
"loc": {
"start": {
"line": 239,
"column": 14
},
"end": {
"line": 239,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 5691,
"end": 5692,
"loc": {
"start": {
"line": 239,
"column": 14
},
"end": {
"line": 239,
"column": 15
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 5693,
"end": 5698,
"loc": {
"start": {
"line": 239,
"column": 16
},
"end": {
"line": 239,
"column": 21
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 5714,
"end": 5744,
"loc": {
"start": {
"line": 240,
"column": 15
},
"end": {
"line": 242,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5726,
"end": 5734,
"loc": {
"start": {
"line": 241,
"column": 10
},
"end": {
"line": 241,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 5733,
"end": 5734,
"loc": {
"start": {
"line": 241,
"column": 17
},
"end": {
"line": 241,
"column": 18
},
"identifierName": "o"
},
"name": "o"
}
}
],
"directives": []
}
}
}
],
"directives": []
}
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 5765,
"end": 7311,
"loc": {
"start": {
"line": 246,
"column": 2
},
"end": {
"line": 311,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 5765,
"end": 5771,
"loc": {
"start": {
"line": 246,
"column": 2
},
"end": {
"line": 246,
"column": 8
},
"identifierName": "delete"
},
"name": "delete"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 5773,
"end": 5775,
"loc": {
"start": {
"line": 246,
"column": 10
},
"end": {
"line": 246,
"column": 12
},
"identifierName": "id"
},
"name": "id"
}
],
"body": {
"type": "BlockStatement",
"start": 5777,
"end": 7311,
"loc": {
"start": {
"line": 246,
"column": 14
},
"end": {
"line": 311,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 5783,
"end": 5808,
"loc": {
"start": {
"line": 247,
"column": 4
},
"end": {
"line": 247,
"column": 29
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 5787,
"end": 5808,
"loc": {
"start": {
"line": 247,
"column": 8
},
"end": {
"line": 247,
"column": 29
}
},
"id": {
"type": "Identifier",
"start": 5787,
"end": 5788,
"loc": {
"start": {
"line": 247,
"column": 8
},
"end": {
"line": 247,
"column": 9
},
"identifierName": "d"
},
"name": "d"
},
"init": {
"type": "CallExpression",
"start": 5791,
"end": 5808,
"loc": {
"start": {
"line": 247,
"column": 12
},
"end": {
"line": 247,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
"start": 5791,
"end": 5804,
"loc": {
"start": {
"line": 247,
"column": 12
},
"end": {
"line": 247,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 5791,
"end": 5795,
"loc": {
"start": {
"line": 247,
"column": 12
},
"end": {
"line": 247,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 5796,
"end": 5804,
"loc": {
"start": {
"line": 247,
"column": 17
},
"end": {
"line": 247,
"column": 25
},
"identifierName": "findNode"
},
"name": "findNode"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 5805,
"end": 5807,
"loc": {
"start": {
"line": 247,
"column": 26
},
"end": {
"line": 247,
"column": 28
},
"identifierName": "id"
},
"name": "id"
}
]
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 5813,
"end": 5900,
"loc": {
"start": {
"line": 248,
"column": 4
},
"end": {
"line": 251,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 5817,
"end": 5826,
"loc": {
"start": {
"line": 248,
"column": 8
},
"end": {
"line": 248,
"column": 17
}
},
"left": {
"type": "Identifier",
"start": 5817,
"end": 5818,
"loc": {
"start": {
"line": 248,
"column": 8
},
"end": {
"line": 248,
"column": 9
},
"identifierName": "d"
},
"name": "d"
},
"operator": "==",
"right": {
"type": "NullLiteral",
"start": 5822,
"end": 5826,
"loc": {
"start": {
"line": 248,
"column": 13
},
"end": {
"line": 248,
"column": 17
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 5828,
"end": 5900,
"loc": {
"start": {
"line": 248,
"column": 19
},
"end": {
"line": 251,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5888,
"end": 5894,
"loc": {
"start": {
"line": 250,
"column": 6
},
"end": {
"line": 250,
"column": 12
}
},
"argument": null,
"leadingComments": [
{
"type": "CommentLine",
"value": " throw new Error('Element does not exist!')",
"start": 5836,
"end": 5881,
"loc": {
"start": {
"line": 249,
"column": 6
},
"end": {
"line": 249,
"column": 51
}
}
}
]
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 5905,
"end": 5918,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 252,
"column": 17
}
},
"expression": {
"type": "UpdateExpression",
"start": 5905,
"end": 5918,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 252,
"column": 17
}
},
"operator": "--",
"prefix": false,
"argument": {
"type": "MemberExpression",
"start": 5905,
"end": 5916,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 252,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 5905,
"end": 5909,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 252,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 5910,
"end": 5916,
"loc": {
"start": {
"line": 252,
"column": 9
},
"end": {
"line": 252,
"column": 15
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
},
{
"type": "IfStatement",
"start": 5923,
"end": 6221,
"loc": {
"start": {
"line": 253,
"column": 4
},
"end": {
"line": 264,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 5927,
"end": 5962,
"loc": {
"start": {
"line": 253,
"column": 8
},
"end": {
"line": 253,
"column": 43
}
},
"left": {
"type": "BinaryExpression",
"start": 5927,
"end": 5942,
"loc": {
"start": {
"line": 253,
"column": 8
},
"end": {
"line": 253,
"column": 23
}
},
"left": {
"type": "MemberExpression",
"start": 5927,
"end": 5933,
"loc": {
"start": {
"line": 253,
"column": 8
},
"end": {
"line": 253,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 5927,
"end": 5928,
"loc": {
"start": {
"line": 253,
"column": 8
},
"end": {
"line": 253,
"column": 9
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 5929,
"end": 5933,
"loc": {
"start": {
"line": 253,
"column": 10
},
"end": {
"line": 253,
"column": 14
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 5938,
"end": 5942,
"loc": {
"start": {
"line": 253,
"column": 19
},
"end": {
"line": 253,
"column": 23
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 5946,
"end": 5962,
"loc": {
"start": {
"line": 253,
"column": 27
},
"end": {
"line": 253,
"column": 43
}
},
"left": {
"type": "MemberExpression",
"start": 5946,
"end": 5953,
"loc": {
"start": {
"line": 253,
"column": 27
},
"end": {
"line": 253,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 5946,
"end": 5947,
"loc": {
"start": {
"line": 253,
"column": 27
},
"end": {
"line": 253,
"column": 28
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 5948,
"end": 5953,
"loc": {
"start": {
"line": 253,
"column": 29
},
"end": {
"line": 253,
"column": 34
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 5958,
"end": 5962,
"loc": {
"start": {
"line": 253,
"column": 39
},
"end": {
"line": 253,
"column": 43
}
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 5964,
"end": 6221,
"loc": {
"start": {
"line": 253,
"column": 45
},
"end": {
"line": 264,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 6078,
"end": 6092,
"loc": {
"start": {
"line": 256,
"column": 6
},
"end": {
"line": 256,
"column": 20
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6082,
"end": 6092,
"loc": {
"start": {
"line": 256,
"column": 10
},
"end": {
"line": 256,
"column": 20
}
},
"id": {
"type": "Identifier",
"start": 6082,
"end": 6083,
"loc": {
"start": {
"line": 256,
"column": 10
},
"end": {
"line": 256,
"column": 11
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"init": {
"type": "MemberExpression",
"start": 6086,
"end": 6092,
"loc": {
"start": {
"line": 256,
"column": 14
},
"end": {
"line": 256,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 6086,
"end": 6087,
"loc": {
"start": {
"line": 256,
"column": 14
},
"end": {
"line": 256,
"column": 15
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6088,
"end": 6092,
"loc": {
"start": {
"line": 256,
"column": 16
},
"end": {
"line": 256,
"column": 20
},
"identifierName": "left"
},
"name": "left",
"leadingComments": null,
"trailingComments": null
},
"computed": false,
"trailingComments": null
},
"leadingComments": null,
"trailingComments": null
}
],
"kind": "var",
"leadingComments": [
{
"type": "CommentLine",
"value": " switch d with the greates element in the left subtree.",
"start": 5972,
"end": 6029,
"loc": {
"start": {
"line": 254,
"column": 6
},
"end": {
"line": 254,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " o should have at most one child.",
"start": 6036,
"end": 6071,
"loc": {
"start": {
"line": 255,
"column": 6
},
"end": {
"line": 255,
"column": 41
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " find",
"start": 6099,
"end": 6106,
"loc": {
"start": {
"line": 257,
"column": 6
},
"end": {
"line": 257,
"column": 13
}
}
}
]
},
{
"type": "WhileStatement",
"start": 6113,
"end": 6167,
"loc": {
"start": {
"line": 258,
"column": 6
},
"end": {
"line": 260,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 6120,
"end": 6136,
"loc": {
"start": {
"line": 258,
"column": 13
},
"end": {
"line": 258,
"column": 29
}
},
"left": {
"type": "MemberExpression",
"start": 6120,
"end": 6127,
"loc": {
"start": {
"line": 258,
"column": 13
},
"end": {
"line": 258,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 6120,
"end": 6121,
"loc": {
"start": {
"line": 258,
"column": 13
},
"end": {
"line": 258,
"column": 14
},
"identifierName": "o"
},
"name": "o",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 6122,
"end": 6127,
"loc": {
"start": {
"line": 258,
"column": 15
},
"end": {
"line": 258,
"column": 20
},
"identifierName": "right"
},
"name": "right"
},
"computed": false,
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 6132,
"end": 6136,
"loc": {
"start": {
"line": 258,
"column": 25
},
"end": {
"line": 258,
"column": 29
}
}
},
"leadingComments": null
},
"body": {
"type": "BlockStatement",
"start": 6138,
"end": 6167,
"loc": {
"start": {
"line": 258,
"column": 31
},
"end": {
"line": 260,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6148,
"end": 6159,
"loc": {
"start": {
"line": 259,
"column": 8
},
"end": {
"line": 259,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6148,
"end": 6159,
"loc": {
"start": {
"line": 259,
"column": 8
},
"end": {
"line": 259,
"column": 19
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 6148,
"end": 6149,
"loc": {
"start": {
"line": 259,
"column": 8
},
"end": {
"line": 259,
"column": 9
},
"identifierName": "o"
},
"name": "o"
},
"right": {
"type": "MemberExpression",
"start": 6152,
"end": 6159,
"loc": {
"start": {
"line": 259,
"column": 12
},
"end": {
"line": 259,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 6152,
"end": 6153,
"loc": {
"start": {
"line": 259,
"column": 12
},
"end": {
"line": 259,
"column": 13
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 6154,
"end": 6159,
"loc": {
"start": {
"line": 259,
"column": 14
},
"end": {
"line": 259,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " find",
"start": 6099,
"end": 6106,
"loc": {
"start": {
"line": 257,
"column": 6
},
"end": {
"line": 257,
"column": 13
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " switch",
"start": 6174,
"end": 6183,
"loc": {
"start": {
"line": 261,
"column": 6
},
"end": {
"line": 261,
"column": 15
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 6190,
"end": 6203,
"loc": {
"start": {
"line": 262,
"column": 6
},
"end": {
"line": 262,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6190,
"end": 6203,
"loc": {
"start": {
"line": 262,
"column": 6
},
"end": {
"line": 262,
"column": 19
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 6190,
"end": 6195,
"loc": {
"start": {
"line": 262,
"column": 6
},
"end": {
"line": 262,
"column": 11
}
},
"object": {
"type": "Identifier",
"start": 6190,
"end": 6191,
"loc": {
"start": {
"line": 262,
"column": 6
},
"end": {
"line": 262,
"column": 7
},
"identifierName": "d"
},
"name": "d",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 6192,
"end": 6195,
"loc": {
"start": {
"line": 262,
"column": 8
},
"end": {
"line": 262,
"column": 11
},
"identifierName": "val"
},
"name": "val"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 6198,
"end": 6203,
"loc": {
"start": {
"line": 262,
"column": 14
},
"end": {
"line": 262,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 6198,
"end": 6199,
"loc": {
"start": {
"line": 262,
"column": 14
},
"end": {
"line": 262,
"column": 15
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 6200,
"end": 6203,
"loc": {
"start": {
"line": 262,
"column": 16
},
"end": {
"line": 262,
"column": 19
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " switch",
"start": 6174,
"end": 6183,
"loc": {
"start": {
"line": 261,
"column": 6
},
"end": {
"line": 261,
"column": 15
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 6210,
"end": 6215,
"loc": {
"start": {
"line": 263,
"column": 6
},
"end": {
"line": 263,
"column": 11
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6210,
"end": 6215,
"loc": {
"start": {
"line": 263,
"column": 6
},
"end": {
"line": 263,
"column": 11
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 6210,
"end": 6211,
"loc": {
"start": {
"line": 263,
"column": 6
},
"end": {
"line": 263,
"column": 7
},
"identifierName": "d"
},
"name": "d"
},
"right": {
"type": "Identifier",
"start": 6214,
"end": 6215,
"loc": {
"start": {
"line": 263,
"column": 10
},
"end": {
"line": 263,
"column": 11
},
"identifierName": "o"
},
"name": "o"
}
}
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " d has at most one child",
"start": 6226,
"end": 6252,
"loc": {
"start": {
"line": 265,
"column": 4
},
"end": {
"line": 265,
"column": 30
}
}
},
{
"type": "CommentLine",
"value": " let n be the node that replaces d",
"start": 6257,
"end": 6293,
"loc": {
"start": {
"line": 266,
"column": 4
},
"end": {
"line": 266,
"column": 40
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 6298,
"end": 6313,
"loc": {
"start": {
"line": 267,
"column": 4
},
"end": {
"line": 267,
"column": 19
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6302,
"end": 6313,
"loc": {
"start": {
"line": 267,
"column": 8
},
"end": {
"line": 267,
"column": 19
}
},
"id": {
"type": "Identifier",
"start": 6302,
"end": 6313,
"loc": {
"start": {
"line": 267,
"column": 8
},
"end": {
"line": 267,
"column": 19
},
"identifierName": "isFakeChild"
},
"name": "isFakeChild",
"leadingComments": null
},
"init": null,
"leadingComments": null
}
],
"kind": "var",
"leadingComments": [
{
"type": "CommentLine",
"value": " d has at most one child",
"start": 6226,
"end": 6252,
"loc": {
"start": {
"line": 265,
"column": 4
},
"end": {
"line": 265,
"column": 30
}
}
},
{
"type": "CommentLine",
"value": " let n be the node that replaces d",
"start": 6257,
"end": 6293,
"loc": {
"start": {
"line": 266,
"column": 4
},
"end": {
"line": 266,
"column": 40
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 6318,
"end": 6347,
"loc": {
"start": {
"line": 268,
"column": 4
},
"end": {
"line": 268,
"column": 33
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6322,
"end": 6347,
"loc": {
"start": {
"line": 268,
"column": 8
},
"end": {
"line": 268,
"column": 33
}
},
"id": {
"type": "Identifier",
"start": 6322,
"end": 6327,
"loc": {
"start": {
"line": 268,
"column": 8
},
"end": {
"line": 268,
"column": 13
},
"identifierName": "child"
},
"name": "child"
},
"init": {
"type": "LogicalExpression",
"start": 6330,
"end": 6347,
"loc": {
"start": {
"line": 268,
"column": 16
},
"end": {
"line": 268,
"column": 33
}
},
"left": {
"type": "MemberExpression",
"start": 6330,
"end": 6336,
"loc": {
"start": {
"line": 268,
"column": 16
},
"end": {
"line": 268,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 6330,
"end": 6331,
"loc": {
"start": {
"line": 268,
"column": 16
},
"end": {
"line": 268,
"column": 17
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6332,
"end": 6336,
"loc": {
"start": {
"line": 268,
"column": 18
},
"end": {
"line": 268,
"column": 22
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "||",
"right": {
"type": "MemberExpression",
"start": 6340,
"end": 6347,
"loc": {
"start": {
"line": 268,
"column": 26
},
"end": {
"line": 268,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 6340,
"end": 6341,
"loc": {
"start": {
"line": 268,
"column": 26
},
"end": {
"line": 268,
"column": 27
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6342,
"end": 6347,
"loc": {
"start": {
"line": 268,
"column": 28
},
"end": {
"line": 268,
"column": 33
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 6352,
"end": 6513,
"loc": {
"start": {
"line": 269,
"column": 4
},
"end": {
"line": 276,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 6356,
"end": 6370,
"loc": {
"start": {
"line": 269,
"column": 8
},
"end": {
"line": 269,
"column": 22
}
},
"left": {
"type": "Identifier",
"start": 6356,
"end": 6361,
"loc": {
"start": {
"line": 269,
"column": 8
},
"end": {
"line": 269,
"column": 13
},
"identifierName": "child"
},
"name": "child"
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 6366,
"end": 6370,
"loc": {
"start": {
"line": 269,
"column": 18
},
"end": {
"line": 269,
"column": 22
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 6372,
"end": 6474,
"loc": {
"start": {
"line": 269,
"column": 24
},
"end": {
"line": 274,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6380,
"end": 6398,
"loc": {
"start": {
"line": 270,
"column": 6
},
"end": {
"line": 270,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6380,
"end": 6398,
"loc": {
"start": {
"line": 270,
"column": 6
},
"end": {
"line": 270,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 6380,
"end": 6391,
"loc": {
"start": {
"line": 270,
"column": 6
},
"end": {
"line": 270,
"column": 17
},
"identifierName": "isFakeChild"
},
"name": "isFakeChild"
},
"right": {
"type": "BooleanLiteral",
"start": 6394,
"end": 6398,
"loc": {
"start": {
"line": 270,
"column": 20
},
"end": {
"line": 270,
"column": 24
}
},
"value": true
}
}
},
{
"type": "ExpressionStatement",
"start": 6405,
"end": 6424,
"loc": {
"start": {
"line": 271,
"column": 6
},
"end": {
"line": 271,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6405,
"end": 6424,
"loc": {
"start": {
"line": 271,
"column": 6
},
"end": {
"line": 271,
"column": 25
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 6405,
"end": 6410,
"loc": {
"start": {
"line": 271,
"column": 6
},
"end": {
"line": 271,
"column": 11
},
"identifierName": "child"
},
"name": "child"
},
"right": {
"type": "NewExpression",
"start": 6413,
"end": 6424,
"loc": {
"start": {
"line": 271,
"column": 14
},
"end": {
"line": 271,
"column": 25
}
},
"callee": {
"type": "Identifier",
"start": 6417,
"end": 6418,
"loc": {
"start": {
"line": 271,
"column": 18
},
"end": {
"line": 271,
"column": 19
},
"identifierName": "N"
},
"name": "N"
},
"arguments": [
{
"type": "NullLiteral",
"start": 6419,
"end": 6423,
"loc": {
"start": {
"line": 271,
"column": 20
},
"end": {
"line": 271,
"column": 24
}
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 6431,
"end": 6446,
"loc": {
"start": {
"line": 272,
"column": 6
},
"end": {
"line": 272,
"column": 21
}
},
"expression": {
"type": "CallExpression",
"start": 6431,
"end": 6446,
"loc": {
"start": {
"line": 272,
"column": 6
},
"end": {
"line": 272,
"column": 21
}
},
"callee": {
"type": "MemberExpression",
"start": 6431,
"end": 6444,
"loc": {
"start": {
"line": 272,
"column": 6
},
"end": {
"line": 272,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 6431,
"end": 6436,
"loc": {
"start": {
"line": 272,
"column": 6
},
"end": {
"line": 272,
"column": 11
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 6437,
"end": 6444,
"loc": {
"start": {
"line": 272,
"column": 12
},
"end": {
"line": 272,
"column": 19
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 6453,
"end": 6468,
"loc": {
"start": {
"line": 273,
"column": 6
},
"end": {
"line": 273,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6453,
"end": 6468,
"loc": {
"start": {
"line": 273,
"column": 6
},
"end": {
"line": 273,
"column": 21
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 6453,
"end": 6460,
"loc": {
"start": {
"line": 273,
"column": 6
},
"end": {
"line": 273,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 6453,
"end": 6454,
"loc": {
"start": {
"line": 273,
"column": 6
},
"end": {
"line": 273,
"column": 7
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6455,
"end": 6460,
"loc": {
"start": {
"line": 273,
"column": 8
},
"end": {
"line": 273,
"column": 13
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 6463,
"end": 6468,
"loc": {
"start": {
"line": 273,
"column": 16
},
"end": {
"line": 273,
"column": 21
},
"identifierName": "child"
},
"name": "child"
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 6480,
"end": 6513,
"loc": {
"start": {
"line": 274,
"column": 11
},
"end": {
"line": 276,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6488,
"end": 6507,
"loc": {
"start": {
"line": 275,
"column": 6
},
"end": {
"line": 275,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6488,
"end": 6507,
"loc": {
"start": {
"line": 275,
"column": 6
},
"end": {
"line": 275,
"column": 25
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 6488,
"end": 6499,
"loc": {
"start": {
"line": 275,
"column": 6
},
"end": {
"line": 275,
"column": 17
},
"identifierName": "isFakeChild"
},
"name": "isFakeChild"
},
"right": {
"type": "BooleanLiteral",
"start": 6502,
"end": 6507,
"loc": {
"start": {
"line": 275,
"column": 20
},
"end": {
"line": 275,
"column": 25
}
},
"value": false
}
}
}
],
"directives": []
}
},
{
"type": "IfStatement",
"start": 6519,
"end": 6899,
"loc": {
"start": {
"line": 278,
"column": 4
},
"end": {
"line": 293,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 6523,
"end": 6540,
"loc": {
"start": {
"line": 278,
"column": 8
},
"end": {
"line": 278,
"column": 25
}
},
"left": {
"type": "MemberExpression",
"start": 6523,
"end": 6531,
"loc": {
"start": {
"line": 278,
"column": 8
},
"end": {
"line": 278,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 6523,
"end": 6524,
"loc": {
"start": {
"line": 278,
"column": 8
},
"end": {
"line": 278,
"column": 9
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6525,
"end": 6531,
"loc": {
"start": {
"line": 278,
"column": 10
},
"end": {
"line": 278,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 6536,
"end": 6540,
"loc": {
"start": {
"line": 278,
"column": 21
},
"end": {
"line": 278,
"column": 25
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 6542,
"end": 6715,
"loc": {
"start": {
"line": 278,
"column": 27
},
"end": {
"line": 287,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 6550,
"end": 6696,
"loc": {
"start": {
"line": 279,
"column": 6
},
"end": {
"line": 285,
"column": 7
}
},
"test": {
"type": "UnaryExpression",
"start": 6554,
"end": 6566,
"loc": {
"start": {
"line": 279,
"column": 10
},
"end": {
"line": 279,
"column": 22
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 6555,
"end": 6566,
"loc": {
"start": {
"line": 279,
"column": 11
},
"end": {
"line": 279,
"column": 22
},
"identifierName": "isFakeChild"
},
"name": "isFakeChild"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 6568,
"end": 6656,
"loc": {
"start": {
"line": 279,
"column": 24
},
"end": {
"line": 283,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6578,
"end": 6595,
"loc": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 280,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6578,
"end": 6595,
"loc": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 280,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 6578,
"end": 6587,
"loc": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 280,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 6578,
"end": 6582,
"loc": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 280,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 6583,
"end": 6587,
"loc": {
"start": {
"line": 280,
"column": 13
},
"end": {
"line": 280,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 6590,
"end": 6595,
"loc": {
"start": {
"line": 280,
"column": 20
},
"end": {
"line": 280,
"column": 25
},
"identifierName": "child"
},
"name": "child"
}
}
},
{
"type": "ExpressionStatement",
"start": 6604,
"end": 6619,
"loc": {
"start": {
"line": 281,
"column": 8
},
"end": {
"line": 281,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 6604,
"end": 6619,
"loc": {
"start": {
"line": 281,
"column": 8
},
"end": {
"line": 281,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 6604,
"end": 6617,
"loc": {
"start": {
"line": 281,
"column": 8
},
"end": {
"line": 281,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 6604,
"end": 6609,
"loc": {
"start": {
"line": 281,
"column": 8
},
"end": {
"line": 281,
"column": 13
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 6610,
"end": 6617,
"loc": {
"start": {
"line": 281,
"column": 14
},
"end": {
"line": 281,
"column": 21
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 6628,
"end": 6648,
"loc": {
"start": {
"line": 282,
"column": 8
},
"end": {
"line": 282,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6628,
"end": 6648,
"loc": {
"start": {
"line": 282,
"column": 8
},
"end": {
"line": 282,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 6628,
"end": 6641,
"loc": {
"start": {
"line": 282,
"column": 8
},
"end": {
"line": 282,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 6628,
"end": 6633,
"loc": {
"start": {
"line": 282,
"column": 8
},
"end": {
"line": 282,
"column": 13
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 6634,
"end": 6641,
"loc": {
"start": {
"line": 282,
"column": 14
},
"end": {
"line": 282,
"column": 21
},
"identifierName": "_parent"
},
"name": "_parent"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 6644,
"end": 6648,
"loc": {
"start": {
"line": 282,
"column": 24
},
"end": {
"line": 282,
"column": 28
}
}
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 6662,
"end": 6696,
"loc": {
"start": {
"line": 283,
"column": 13
},
"end": {
"line": 285,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6672,
"end": 6688,
"loc": {
"start": {
"line": 284,
"column": 8
},
"end": {
"line": 284,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6672,
"end": 6688,
"loc": {
"start": {
"line": 284,
"column": 8
},
"end": {
"line": 284,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 6672,
"end": 6681,
"loc": {
"start": {
"line": 284,
"column": 8
},
"end": {
"line": 284,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 6672,
"end": 6676,
"loc": {
"start": {
"line": 284,
"column": 8
},
"end": {
"line": 284,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 6677,
"end": 6681,
"loc": {
"start": {
"line": 284,
"column": 13
},
"end": {
"line": 284,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 6684,
"end": 6688,
"loc": {
"start": {
"line": 284,
"column": 20
},
"end": {
"line": 284,
"column": 24
}
}
}
}
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 6703,
"end": 6709,
"loc": {
"start": {
"line": 286,
"column": 6
},
"end": {
"line": 286,
"column": 12
}
},
"argument": null
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 6721,
"end": 6899,
"loc": {
"start": {
"line": 287,
"column": 11
},
"end": {
"line": 293,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 6725,
"end": 6744,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 34
}
},
"left": {
"type": "MemberExpression",
"start": 6725,
"end": 6738,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 6725,
"end": 6733,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 6725,
"end": 6726,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 16
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6727,
"end": 6733,
"loc": {
"start": {
"line": 287,
"column": 17
},
"end": {
"line": 287,
"column": 23
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6734,
"end": 6738,
"loc": {
"start": {
"line": 287,
"column": 24
},
"end": {
"line": 287,
"column": 28
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 6743,
"end": 6744,
"loc": {
"start": {
"line": 287,
"column": 33
},
"end": {
"line": 287,
"column": 34
},
"identifierName": "d"
},
"name": "d"
}
},
"consequent": {
"type": "BlockStatement",
"start": 6746,
"end": 6781,
"loc": {
"start": {
"line": 287,
"column": 36
},
"end": {
"line": 289,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6754,
"end": 6775,
"loc": {
"start": {
"line": 288,
"column": 6
},
"end": {
"line": 288,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6754,
"end": 6775,
"loc": {
"start": {
"line": 288,
"column": 6
},
"end": {
"line": 288,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 6754,
"end": 6767,
"loc": {
"start": {
"line": 288,
"column": 6
},
"end": {
"line": 288,
"column": 19
}
},
"object": {
"type": "MemberExpression",
"start": 6754,
"end": 6762,
"loc": {
"start": {
"line": 288,
"column": 6
},
"end": {
"line": 288,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 6754,
"end": 6755,
"loc": {
"start": {
"line": 288,
"column": 6
},
"end": {
"line": 288,
"column": 7
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6756,
"end": 6762,
"loc": {
"start": {
"line": 288,
"column": 8
},
"end": {
"line": 288,
"column": 14
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6763,
"end": 6767,
"loc": {
"start": {
"line": 288,
"column": 15
},
"end": {
"line": 288,
"column": 19
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 6770,
"end": 6775,
"loc": {
"start": {
"line": 288,
"column": 22
},
"end": {
"line": 288,
"column": 27
},
"identifierName": "child"
},
"name": "child"
}
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 6787,
"end": 6899,
"loc": {
"start": {
"line": 289,
"column": 11
},
"end": {
"line": 293,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 6791,
"end": 6811,
"loc": {
"start": {
"line": 289,
"column": 15
},
"end": {
"line": 289,
"column": 35
}
},
"left": {
"type": "MemberExpression",
"start": 6791,
"end": 6805,
"loc": {
"start": {
"line": 289,
"column": 15
},
"end": {
"line": 289,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 6791,
"end": 6799,
"loc": {
"start": {
"line": 289,
"column": 15
},
"end": {
"line": 289,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 6791,
"end": 6792,
"loc": {
"start": {
"line": 289,
"column": 15
},
"end": {
"line": 289,
"column": 16
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6793,
"end": 6799,
"loc": {
"start": {
"line": 289,
"column": 17
},
"end": {
"line": 289,
"column": 23
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6800,
"end": 6805,
"loc": {
"start": {
"line": 289,
"column": 24
},
"end": {
"line": 289,
"column": 29
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 6810,
"end": 6811,
"loc": {
"start": {
"line": 289,
"column": 34
},
"end": {
"line": 289,
"column": 35
},
"identifierName": "d"
},
"name": "d"
}
},
"consequent": {
"type": "BlockStatement",
"start": 6813,
"end": 6849,
"loc": {
"start": {
"line": 289,
"column": 37
},
"end": {
"line": 291,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6821,
"end": 6843,
"loc": {
"start": {
"line": 290,
"column": 6
},
"end": {
"line": 290,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 6821,
"end": 6843,
"loc": {
"start": {
"line": 290,
"column": 6
},
"end": {
"line": 290,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 6821,
"end": 6835,
"loc": {
"start": {
"line": 290,
"column": 6
},
"end": {
"line": 290,
"column": 20
}
},
"object": {
"type": "MemberExpression",
"start": 6821,
"end": 6829,
"loc": {
"start": {
"line": 290,
"column": 6
},
"end": {
"line": 290,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 6821,
"end": 6822,
"loc": {
"start": {
"line": 290,
"column": 6
},
"end": {
"line": 290,
"column": 7
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6823,
"end": 6829,
"loc": {
"start": {
"line": 290,
"column": 8
},
"end": {
"line": 290,
"column": 14
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 6830,
"end": 6835,
"loc": {
"start": {
"line": 290,
"column": 15
},
"end": {
"line": 290,
"column": 20
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 6838,
"end": 6843,
"loc": {
"start": {
"line": 290,
"column": 23
},
"end": {
"line": 290,
"column": 28
},
"identifierName": "child"
},
"name": "child"
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 6855,
"end": 6899,
"loc": {
"start": {
"line": 291,
"column": 11
},
"end": {
"line": 293,
"column": 5
}
},
"body": [
{
"type": "ThrowStatement",
"start": 6863,
"end": 6893,
"loc": {
"start": {
"line": 292,
"column": 6
},
"end": {
"line": 292,
"column": 36
}
},
"argument": {
"type": "NewExpression",
"start": 6869,
"end": 6893,
"loc": {
"start": {
"line": 292,
"column": 12
},
"end": {
"line": 292,
"column": 36
}
},
"callee": {
"type": "Identifier",
"start": 6873,
"end": 6878,
"loc": {
"start": {
"line": 292,
"column": 16
},
"end": {
"line": 292,
"column": 21
},
"identifierName": "Error"
},
"name": "Error"
},
"arguments": [
{
"type": "StringLiteral",
"start": 6879,
"end": 6892,
"loc": {
"start": {
"line": 292,
"column": 22
},
"end": {
"line": 292,
"column": 35
}
},
"extra": {
"rawValue": "Impossible!",
"raw": "'Impossible!'"
},
"value": "Impossible!"
}
]
}
}
],
"directives": []
}
}
}
},
{
"type": "IfStatement",
"start": 6904,
"end": 7033,
"loc": {
"start": {
"line": 294,
"column": 4
},
"end": {
"line": 300,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 6908,
"end": 6919,
"loc": {
"start": {
"line": 294,
"column": 8
},
"end": {
"line": 294,
"column": 19
}
},
"callee": {
"type": "MemberExpression",
"start": 6908,
"end": 6917,
"loc": {
"start": {
"line": 294,
"column": 8
},
"end": {
"line": 294,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 6908,
"end": 6909,
"loc": {
"start": {
"line": 294,
"column": 8
},
"end": {
"line": 294,
"column": 9
},
"identifierName": "d"
},
"name": "d"
},
"property": {
"type": "Identifier",
"start": 6910,
"end": 6917,
"loc": {
"start": {
"line": 294,
"column": 10
},
"end": {
"line": 294,
"column": 17
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 6921,
"end": 7033,
"loc": {
"start": {
"line": 294,
"column": 21
},
"end": {
"line": 300,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 6929,
"end": 7027,
"loc": {
"start": {
"line": 295,
"column": 6
},
"end": {
"line": 299,
"column": 7
}
},
"test": {
"type": "CallExpression",
"start": 6933,
"end": 6946,
"loc": {
"start": {
"line": 295,
"column": 10
},
"end": {
"line": 295,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 6933,
"end": 6944,
"loc": {
"start": {
"line": 295,
"column": 10
},
"end": {
"line": 295,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 6933,
"end": 6938,
"loc": {
"start": {
"line": 295,
"column": 10
},
"end": {
"line": 295,
"column": 15
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 6939,
"end": 6944,
"loc": {
"start": {
"line": 295,
"column": 16
},
"end": {
"line": 295,
"column": 21
},
"identifierName": "isRed"
},
"name": "isRed"
},
"computed": false
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 6948,
"end": 6981,
"loc": {
"start": {
"line": 295,
"column": 25
},
"end": {
"line": 297,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6958,
"end": 6973,
"loc": {
"start": {
"line": 296,
"column": 8
},
"end": {
"line": 296,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 6958,
"end": 6973,
"loc": {
"start": {
"line": 296,
"column": 8
},
"end": {
"line": 296,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 6958,
"end": 6971,
"loc": {
"start": {
"line": 296,
"column": 8
},
"end": {
"line": 296,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 6958,
"end": 6963,
"loc": {
"start": {
"line": 296,
"column": 8
},
"end": {
"line": 296,
"column": 13
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 6964,
"end": 6971,
"loc": {
"start": {
"line": 296,
"column": 14
},
"end": {
"line": 296,
"column": 21
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 6987,
"end": 7027,
"loc": {
"start": {
"line": 297,
"column": 13
},
"end": {
"line": 299,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6997,
"end": 7019,
"loc": {
"start": {
"line": 298,
"column": 8
},
"end": {
"line": 298,
"column": 30
}
},
"expression": {
"type": "CallExpression",
"start": 6997,
"end": 7019,
"loc": {
"start": {
"line": 298,
"column": 8
},
"end": {
"line": 298,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 6997,
"end": 7012,
"loc": {
"start": {
"line": 298,
"column": 8
},
"end": {
"line": 298,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 6997,
"end": 7001,
"loc": {
"start": {
"line": 298,
"column": 8
},
"end": {
"line": 298,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 7002,
"end": 7012,
"loc": {
"start": {
"line": 298,
"column": 13
},
"end": {
"line": 298,
"column": 23
},
"identifierName": "_fixDelete"
},
"name": "_fixDelete"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 7013,
"end": 7018,
"loc": {
"start": {
"line": 298,
"column": 24
},
"end": {
"line": 298,
"column": 29
},
"identifierName": "child"
},
"name": "child"
}
]
}
}
],
"directives": []
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ExpressionStatement",
"start": 7038,
"end": 7057,
"loc": {
"start": {
"line": 301,
"column": 4
},
"end": {
"line": 301,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 7038,
"end": 7057,
"loc": {
"start": {
"line": 301,
"column": 4
},
"end": {
"line": 301,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 7038,
"end": 7055,
"loc": {
"start": {
"line": 301,
"column": 4
},
"end": {
"line": 301,
"column": 21
}
},
"object": {
"type": "MemberExpression",
"start": 7038,
"end": 7047,
"loc": {
"start": {
"line": 301,
"column": 4
},
"end": {
"line": 301,
"column": 13
}
},
"object": {
"type": "ThisExpression",
"start": 7038,
"end": 7042,
"loc": {
"start": {
"line": 301,
"column": 4
},
"end": {
"line": 301,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 7043,
"end": 7047,
"loc": {
"start": {
"line": 301,
"column": 9
},
"end": {
"line": 301,
"column": 13
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7048,
"end": 7055,
"loc": {
"start": {
"line": 301,
"column": 14
},
"end": {
"line": 301,
"column": 21
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "IfStatement",
"start": 7062,
"end": 7307,
"loc": {
"start": {
"line": 302,
"column": 4
},
"end": {
"line": 310,
"column": 5
}
},
"test": {
"type": "Identifier",
"start": 7066,
"end": 7077,
"loc": {
"start": {
"line": 302,
"column": 8
},
"end": {
"line": 302,
"column": 19
},
"identifierName": "isFakeChild"
},
"name": "isFakeChild"
},
"consequent": {
"type": "BlockStatement",
"start": 7079,
"end": 7307,
"loc": {
"start": {
"line": 302,
"column": 21
},
"end": {
"line": 310,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 7087,
"end": 7301,
"loc": {
"start": {
"line": 303,
"column": 6
},
"end": {
"line": 309,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 7091,
"end": 7118,
"loc": {
"start": {
"line": 303,
"column": 10
},
"end": {
"line": 303,
"column": 37
}
},
"left": {
"type": "MemberExpression",
"start": 7091,
"end": 7108,
"loc": {
"start": {
"line": 303,
"column": 10
},
"end": {
"line": 303,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 7091,
"end": 7103,
"loc": {
"start": {
"line": 303,
"column": 10
},
"end": {
"line": 303,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 7091,
"end": 7096,
"loc": {
"start": {
"line": 303,
"column": 10
},
"end": {
"line": 303,
"column": 15
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 7097,
"end": 7103,
"loc": {
"start": {
"line": 303,
"column": 16
},
"end": {
"line": 303,
"column": 22
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7104,
"end": 7108,
"loc": {
"start": {
"line": 303,
"column": 23
},
"end": {
"line": 303,
"column": 27
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 7113,
"end": 7118,
"loc": {
"start": {
"line": 303,
"column": 32
},
"end": {
"line": 303,
"column": 37
},
"identifierName": "child"
},
"name": "child"
}
},
"consequent": {
"type": "BlockStatement",
"start": 7120,
"end": 7162,
"loc": {
"start": {
"line": 303,
"column": 39
},
"end": {
"line": 305,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7130,
"end": 7154,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 7130,
"end": 7154,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 7130,
"end": 7147,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 7130,
"end": 7142,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 7130,
"end": 7135,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 13
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 7136,
"end": 7142,
"loc": {
"start": {
"line": 304,
"column": 14
},
"end": {
"line": 304,
"column": 20
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7143,
"end": 7147,
"loc": {
"start": {
"line": 304,
"column": 21
},
"end": {
"line": 304,
"column": 25
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 7150,
"end": 7154,
"loc": {
"start": {
"line": 304,
"column": 28
},
"end": {
"line": 304,
"column": 32
}
}
}
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 7168,
"end": 7301,
"loc": {
"start": {
"line": 305,
"column": 13
},
"end": {
"line": 309,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 7172,
"end": 7200,
"loc": {
"start": {
"line": 305,
"column": 17
},
"end": {
"line": 305,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 7172,
"end": 7190,
"loc": {
"start": {
"line": 305,
"column": 17
},
"end": {
"line": 305,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 7172,
"end": 7184,
"loc": {
"start": {
"line": 305,
"column": 17
},
"end": {
"line": 305,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 7172,
"end": 7177,
"loc": {
"start": {
"line": 305,
"column": 17
},
"end": {
"line": 305,
"column": 22
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 7178,
"end": 7184,
"loc": {
"start": {
"line": 305,
"column": 23
},
"end": {
"line": 305,
"column": 29
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7185,
"end": 7190,
"loc": {
"start": {
"line": 305,
"column": 30
},
"end": {
"line": 305,
"column": 35
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 7195,
"end": 7200,
"loc": {
"start": {
"line": 305,
"column": 40
},
"end": {
"line": 305,
"column": 45
},
"identifierName": "child"
},
"name": "child"
}
},
"consequent": {
"type": "BlockStatement",
"start": 7202,
"end": 7245,
"loc": {
"start": {
"line": 305,
"column": 47
},
"end": {
"line": 307,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7212,
"end": 7237,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 7212,
"end": 7237,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 7212,
"end": 7230,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 7212,
"end": 7224,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 7212,
"end": 7217,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 13
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 7218,
"end": 7224,
"loc": {
"start": {
"line": 306,
"column": 14
},
"end": {
"line": 306,
"column": 20
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7225,
"end": 7230,
"loc": {
"start": {
"line": 306,
"column": 21
},
"end": {
"line": 306,
"column": 26
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 7233,
"end": 7237,
"loc": {
"start": {
"line": 306,
"column": 29
},
"end": {
"line": 306,
"column": 33
}
}
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 7251,
"end": 7301,
"loc": {
"start": {
"line": 307,
"column": 13
},
"end": {
"line": 309,
"column": 7
}
},
"body": [
{
"type": "ThrowStatement",
"start": 7261,
"end": 7293,
"loc": {
"start": {
"line": 308,
"column": 8
},
"end": {
"line": 308,
"column": 40
}
},
"argument": {
"type": "NewExpression",
"start": 7267,
"end": 7293,
"loc": {
"start": {
"line": 308,
"column": 14
},
"end": {
"line": 308,
"column": 40
}
},
"callee": {
"type": "Identifier",
"start": 7271,
"end": 7276,
"loc": {
"start": {
"line": 308,
"column": 18
},
"end": {
"line": 308,
"column": 23
},
"identifierName": "Error"
},
"name": "Error"
},
"arguments": [
{
"type": "StringLiteral",
"start": 7277,
"end": 7292,
"loc": {
"start": {
"line": 308,
"column": 24
},
"end": {
"line": 308,
"column": 39
}
},
"extra": {
"rawValue": "Impossible #3",
"raw": "'Impossible #3'"
},
"value": "Impossible #3"
}
]
}
}
],
"directives": []
}
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 7314,
"end": 9301,
"loc": {
"start": {
"line": 312,
"column": 2
},
"end": {
"line": 385,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 7314,
"end": 7324,
"loc": {
"start": {
"line": 312,
"column": 2
},
"end": {
"line": 312,
"column": 12
},
"identifierName": "_fixDelete"
},
"name": "_fixDelete"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 7326,
"end": 7327,
"loc": {
"start": {
"line": 312,
"column": 14
},
"end": {
"line": 312,
"column": 15
},
"identifierName": "n"
},
"name": "n"
}
],
"body": {
"type": "BlockStatement",
"start": 7329,
"end": 9301,
"loc": {
"start": {
"line": 312,
"column": 17
},
"end": {
"line": 385,
"column": 3
}
},
"body": [
{
"type": "FunctionDeclaration",
"start": 7335,
"end": 7417,
"loc": {
"start": {
"line": 313,
"column": 4
},
"end": {
"line": 315,
"column": 5
}
},
"id": {
"type": "Identifier",
"start": 7344,
"end": 7351,
"loc": {
"start": {
"line": 313,
"column": 13
},
"end": {
"line": 313,
"column": 20
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 7353,
"end": 7357,
"loc": {
"start": {
"line": 313,
"column": 22
},
"end": {
"line": 313,
"column": 26
},
"identifierName": "node"
},
"name": "node"
}
],
"body": {
"type": "BlockStatement",
"start": 7359,
"end": 7417,
"loc": {
"start": {
"line": 313,
"column": 28
},
"end": {
"line": 315,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 7367,
"end": 7411,
"loc": {
"start": {
"line": 314,
"column": 6
},
"end": {
"line": 314,
"column": 50
}
},
"argument": {
"type": "ConditionalExpression",
"start": 7374,
"end": 7411,
"loc": {
"start": {
"line": 314,
"column": 13
},
"end": {
"line": 314,
"column": 50
}
},
"test": {
"type": "BinaryExpression",
"start": 7374,
"end": 7387,
"loc": {
"start": {
"line": 314,
"column": 13
},
"end": {
"line": 314,
"column": 26
}
},
"left": {
"type": "Identifier",
"start": 7374,
"end": 7378,
"loc": {
"start": {
"line": 314,
"column": 13
},
"end": {
"line": 314,
"column": 17
},
"identifierName": "node"
},
"name": "node"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 7383,
"end": 7387,
"loc": {
"start": {
"line": 314,
"column": 22
},
"end": {
"line": 314,
"column": 26
}
}
}
},
"consequent": {
"type": "CallExpression",
"start": 7390,
"end": 7404,
"loc": {
"start": {
"line": 314,
"column": 29
},
"end": {
"line": 314,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 7390,
"end": 7402,
"loc": {
"start": {
"line": 314,
"column": 29
},
"end": {
"line": 314,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 7390,
"end": 7394,
"loc": {
"start": {
"line": 314,
"column": 29
},
"end": {
"line": 314,
"column": 33
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 7395,
"end": 7402,
"loc": {
"start": {
"line": 314,
"column": 34
},
"end": {
"line": 314,
"column": 41
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false
},
"arguments": []
},
"alternate": {
"type": "BooleanLiteral",
"start": 7407,
"end": 7411,
"loc": {
"start": {
"line": 314,
"column": 46
},
"end": {
"line": 314,
"column": 50
}
},
"value": true
}
}
}
],
"directives": []
}
},
{
"type": "FunctionDeclaration",
"start": 7422,
"end": 7501,
"loc": {
"start": {
"line": 316,
"column": 4
},
"end": {
"line": 318,
"column": 5
}
},
"id": {
"type": "Identifier",
"start": 7431,
"end": 7436,
"loc": {
"start": {
"line": 316,
"column": 13
},
"end": {
"line": 316,
"column": 18
},
"identifierName": "isRed"
},
"name": "isRed"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 7438,
"end": 7442,
"loc": {
"start": {
"line": 316,
"column": 20
},
"end": {
"line": 316,
"column": 24
},
"identifierName": "node"
},
"name": "node"
}
],
"body": {
"type": "BlockStatement",
"start": 7444,
"end": 7501,
"loc": {
"start": {
"line": 316,
"column": 26
},
"end": {
"line": 318,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 7452,
"end": 7495,
"loc": {
"start": {
"line": 317,
"column": 6
},
"end": {
"line": 317,
"column": 49
}
},
"argument": {
"type": "ConditionalExpression",
"start": 7459,
"end": 7495,
"loc": {
"start": {
"line": 317,
"column": 13
},
"end": {
"line": 317,
"column": 49
}
},
"test": {
"type": "BinaryExpression",
"start": 7459,
"end": 7472,
"loc": {
"start": {
"line": 317,
"column": 13
},
"end": {
"line": 317,
"column": 26
}
},
"left": {
"type": "Identifier",
"start": 7459,
"end": 7463,
"loc": {
"start": {
"line": 317,
"column": 13
},
"end": {
"line": 317,
"column": 17
},
"identifierName": "node"
},
"name": "node"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 7468,
"end": 7472,
"loc": {
"start": {
"line": 317,
"column": 22
},
"end": {
"line": 317,
"column": 26
}
}
}
},
"consequent": {
"type": "CallExpression",
"start": 7475,
"end": 7487,
"loc": {
"start": {
"line": 317,
"column": 29
},
"end": {
"line": 317,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 7475,
"end": 7485,
"loc": {
"start": {
"line": 317,
"column": 29
},
"end": {
"line": 317,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 7475,
"end": 7479,
"loc": {
"start": {
"line": 317,
"column": 29
},
"end": {
"line": 317,
"column": 33
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 7480,
"end": 7485,
"loc": {
"start": {
"line": 317,
"column": 34
},
"end": {
"line": 317,
"column": 39
},
"identifierName": "isRed"
},
"name": "isRed"
},
"computed": false
},
"arguments": []
},
"alternate": {
"type": "BooleanLiteral",
"start": 7490,
"end": 7495,
"loc": {
"start": {
"line": 317,
"column": 44
},
"end": {
"line": 317,
"column": 49
}
},
"value": false
}
}
}
],
"directives": []
}
},
{
"type": "IfStatement",
"start": 7506,
"end": 7622,
"loc": {
"start": {
"line": 319,
"column": 4
},
"end": {
"line": 322,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 7510,
"end": 7527,
"loc": {
"start": {
"line": 319,
"column": 8
},
"end": {
"line": 319,
"column": 25
}
},
"left": {
"type": "MemberExpression",
"start": 7510,
"end": 7518,
"loc": {
"start": {
"line": 319,
"column": 8
},
"end": {
"line": 319,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 7510,
"end": 7511,
"loc": {
"start": {
"line": 319,
"column": 8
},
"end": {
"line": 319,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 7512,
"end": 7518,
"loc": {
"start": {
"line": 319,
"column": 10
},
"end": {
"line": 319,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 7523,
"end": 7527,
"loc": {
"start": {
"line": 319,
"column": 21
},
"end": {
"line": 319,
"column": 25
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 7529,
"end": 7622,
"loc": {
"start": {
"line": 319,
"column": 27
},
"end": {
"line": 322,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 7610,
"end": 7616,
"loc": {
"start": {
"line": 321,
"column": 6
},
"end": {
"line": 321,
"column": 12
}
},
"argument": null,
"leadingComments": [
{
"type": "CommentLine",
"value": " this can only be called after the first iteration of fixDelete.",
"start": 7537,
"end": 7603,
"loc": {
"start": {
"line": 320,
"column": 6
},
"end": {
"line": 320,
"column": 72
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " d was already replaced by the child",
"start": 7627,
"end": 7665,
"loc": {
"start": {
"line": 323,
"column": 4
},
"end": {
"line": 323,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " d is not the root",
"start": 7670,
"end": 7690,
"loc": {
"start": {
"line": 324,
"column": 4
},
"end": {
"line": 324,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " d and child are black",
"start": 7695,
"end": 7719,
"loc": {
"start": {
"line": 325,
"column": 4
},
"end": {
"line": 325,
"column": 28
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 7724,
"end": 7747,
"loc": {
"start": {
"line": 326,
"column": 4
},
"end": {
"line": 326,
"column": 27
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 7728,
"end": 7747,
"loc": {
"start": {
"line": 326,
"column": 8
},
"end": {
"line": 326,
"column": 27
}
},
"id": {
"type": "Identifier",
"start": 7728,
"end": 7735,
"loc": {
"start": {
"line": 326,
"column": 8
},
"end": {
"line": 326,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling",
"leadingComments": null
},
"init": {
"type": "MemberExpression",
"start": 7738,
"end": 7747,
"loc": {
"start": {
"line": 326,
"column": 18
},
"end": {
"line": 326,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 7738,
"end": 7739,
"loc": {
"start": {
"line": 326,
"column": 18
},
"end": {
"line": 326,
"column": 19
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 7740,
"end": 7747,
"loc": {
"start": {
"line": 326,
"column": 20
},
"end": {
"line": 326,
"column": 27
},
"identifierName": "sibling"
},
"name": "sibling"
},
"computed": false
},
"leadingComments": null
}
],
"kind": "var",
"leadingComments": [
{
"type": "CommentLine",
"value": " d was already replaced by the child",
"start": 7627,
"end": 7665,
"loc": {
"start": {
"line": 323,
"column": 4
},
"end": {
"line": 323,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " d is not the root",
"start": 7670,
"end": 7690,
"loc": {
"start": {
"line": 324,
"column": 4
},
"end": {
"line": 324,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " d and child are black",
"start": 7695,
"end": 7719,
"loc": {
"start": {
"line": 325,
"column": 4
},
"end": {
"line": 325,
"column": 28
}
}
}
]
},
{
"type": "IfStatement",
"start": 7752,
"end": 8098,
"loc": {
"start": {
"line": 327,
"column": 4
},
"end": {
"line": 339,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 7756,
"end": 7770,
"loc": {
"start": {
"line": 327,
"column": 8
},
"end": {
"line": 327,
"column": 22
}
},
"callee": {
"type": "Identifier",
"start": 7756,
"end": 7761,
"loc": {
"start": {
"line": 327,
"column": 8
},
"end": {
"line": 327,
"column": 13
},
"identifierName": "isRed"
},
"name": "isRed"
},
"arguments": [
{
"type": "Identifier",
"start": 7762,
"end": 7769,
"loc": {
"start": {
"line": 327,
"column": 14
},
"end": {
"line": 327,
"column": 21
},
"identifierName": "sibling"
},
"name": "sibling"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 7772,
"end": 8098,
"loc": {
"start": {
"line": 327,
"column": 24
},
"end": {
"line": 339,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7818,
"end": 7835,
"loc": {
"start": {
"line": 329,
"column": 6
},
"end": {
"line": 329,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 7818,
"end": 7835,
"loc": {
"start": {
"line": 329,
"column": 6
},
"end": {
"line": 329,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 7818,
"end": 7833,
"loc": {
"start": {
"line": 329,
"column": 6
},
"end": {
"line": 329,
"column": 21
}
},
"object": {
"type": "MemberExpression",
"start": 7818,
"end": 7826,
"loc": {
"start": {
"line": 329,
"column": 6
},
"end": {
"line": 329,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 7818,
"end": 7819,
"loc": {
"start": {
"line": 329,
"column": 6
},
"end": {
"line": 329,
"column": 7
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 7820,
"end": 7826,
"loc": {
"start": {
"line": 329,
"column": 8
},
"end": {
"line": 329,
"column": 14
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 7827,
"end": 7833,
"loc": {
"start": {
"line": 329,
"column": 15
},
"end": {
"line": 329,
"column": 21
},
"identifierName": "redden"
},
"name": "redden"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " make sibling the grandfather",
"start": 7780,
"end": 7811,
"loc": {
"start": {
"line": 328,
"column": 6
},
"end": {
"line": 328,
"column": 37
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 7842,
"end": 7859,
"loc": {
"start": {
"line": 330,
"column": 6
},
"end": {
"line": 330,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 7842,
"end": 7859,
"loc": {
"start": {
"line": 330,
"column": 6
},
"end": {
"line": 330,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 7842,
"end": 7857,
"loc": {
"start": {
"line": 330,
"column": 6
},
"end": {
"line": 330,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 7842,
"end": 7849,
"loc": {
"start": {
"line": 330,
"column": 6
},
"end": {
"line": 330,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 7850,
"end": 7857,
"loc": {
"start": {
"line": 330,
"column": 14
},
"end": {
"line": 330,
"column": 21
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "IfStatement",
"start": 7866,
"end": 8066,
"loc": {
"start": {
"line": 331,
"column": 6
},
"end": {
"line": 337,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 7870,
"end": 7889,
"loc": {
"start": {
"line": 331,
"column": 10
},
"end": {
"line": 331,
"column": 29
}
},
"left": {
"type": "Identifier",
"start": 7870,
"end": 7871,
"loc": {
"start": {
"line": 331,
"column": 10
},
"end": {
"line": 331,
"column": 11
},
"identifierName": "n"
},
"name": "n"
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 7876,
"end": 7889,
"loc": {
"start": {
"line": 331,
"column": 16
},
"end": {
"line": 331,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 7876,
"end": 7884,
"loc": {
"start": {
"line": 331,
"column": 16
},
"end": {
"line": 331,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 7876,
"end": 7877,
"loc": {
"start": {
"line": 331,
"column": 16
},
"end": {
"line": 331,
"column": 17
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 7878,
"end": 7884,
"loc": {
"start": {
"line": 331,
"column": 18
},
"end": {
"line": 331,
"column": 24
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7885,
"end": 7889,
"loc": {
"start": {
"line": 331,
"column": 25
},
"end": {
"line": 331,
"column": 29
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 7891,
"end": 7934,
"loc": {
"start": {
"line": 331,
"column": 31
},
"end": {
"line": 333,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7901,
"end": 7926,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 332,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 7901,
"end": 7926,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 332,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 7901,
"end": 7920,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 332,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 7901,
"end": 7909,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 332,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 7901,
"end": 7902,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 332,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 7903,
"end": 7909,
"loc": {
"start": {
"line": 332,
"column": 10
},
"end": {
"line": 332,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7910,
"end": 7920,
"loc": {
"start": {
"line": 332,
"column": 17
},
"end": {
"line": 332,
"column": 27
},
"identifierName": "rotateLeft"
},
"name": "rotateLeft"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 7921,
"end": 7925,
"loc": {
"start": {
"line": 332,
"column": 28
},
"end": {
"line": 332,
"column": 32
}
}
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 7940,
"end": 8066,
"loc": {
"start": {
"line": 333,
"column": 13
},
"end": {
"line": 337,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 7944,
"end": 7964,
"loc": {
"start": {
"line": 333,
"column": 17
},
"end": {
"line": 333,
"column": 37
}
},
"left": {
"type": "Identifier",
"start": 7944,
"end": 7945,
"loc": {
"start": {
"line": 333,
"column": 17
},
"end": {
"line": 333,
"column": 18
},
"identifierName": "n"
},
"name": "n"
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 7950,
"end": 7964,
"loc": {
"start": {
"line": 333,
"column": 23
},
"end": {
"line": 333,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 7950,
"end": 7958,
"loc": {
"start": {
"line": 333,
"column": 23
},
"end": {
"line": 333,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 7950,
"end": 7951,
"loc": {
"start": {
"line": 333,
"column": 23
},
"end": {
"line": 333,
"column": 24
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 7952,
"end": 7958,
"loc": {
"start": {
"line": 333,
"column": 25
},
"end": {
"line": 333,
"column": 31
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7959,
"end": 7964,
"loc": {
"start": {
"line": 333,
"column": 32
},
"end": {
"line": 333,
"column": 37
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 7966,
"end": 8010,
"loc": {
"start": {
"line": 333,
"column": 39
},
"end": {
"line": 335,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 7976,
"end": 8002,
"loc": {
"start": {
"line": 334,
"column": 8
},
"end": {
"line": 334,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 7976,
"end": 8002,
"loc": {
"start": {
"line": 334,
"column": 8
},
"end": {
"line": 334,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 7976,
"end": 7996,
"loc": {
"start": {
"line": 334,
"column": 8
},
"end": {
"line": 334,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 7976,
"end": 7984,
"loc": {
"start": {
"line": 334,
"column": 8
},
"end": {
"line": 334,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 7976,
"end": 7977,
"loc": {
"start": {
"line": 334,
"column": 8
},
"end": {
"line": 334,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 7978,
"end": 7984,
"loc": {
"start": {
"line": 334,
"column": 10
},
"end": {
"line": 334,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 7985,
"end": 7996,
"loc": {
"start": {
"line": 334,
"column": 17
},
"end": {
"line": 334,
"column": 28
},
"identifierName": "rotateRight"
},
"name": "rotateRight"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 7997,
"end": 8001,
"loc": {
"start": {
"line": 334,
"column": 29
},
"end": {
"line": 334,
"column": 33
}
}
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 8016,
"end": 8066,
"loc": {
"start": {
"line": 335,
"column": 13
},
"end": {
"line": 337,
"column": 7
}
},
"body": [
{
"type": "ThrowStatement",
"start": 8026,
"end": 8058,
"loc": {
"start": {
"line": 336,
"column": 8
},
"end": {
"line": 336,
"column": 40
}
},
"argument": {
"type": "NewExpression",
"start": 8032,
"end": 8058,
"loc": {
"start": {
"line": 336,
"column": 14
},
"end": {
"line": 336,
"column": 40
}
},
"callee": {
"type": "Identifier",
"start": 8036,
"end": 8041,
"loc": {
"start": {
"line": 336,
"column": 18
},
"end": {
"line": 336,
"column": 23
},
"identifierName": "Error"
},
"name": "Error"
},
"arguments": [
{
"type": "StringLiteral",
"start": 8042,
"end": 8057,
"loc": {
"start": {
"line": 336,
"column": 24
},
"end": {
"line": 336,
"column": 39
}
},
"extra": {
"rawValue": "Impossible #2",
"raw": "'Impossible #2'"
},
"value": "Impossible #2"
}
]
}
}
],
"directives": []
}
}
},
{
"type": "ExpressionStatement",
"start": 8073,
"end": 8092,
"loc": {
"start": {
"line": 338,
"column": 6
},
"end": {
"line": 338,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 8073,
"end": 8092,
"loc": {
"start": {
"line": 338,
"column": 6
},
"end": {
"line": 338,
"column": 25
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 8073,
"end": 8080,
"loc": {
"start": {
"line": 338,
"column": 6
},
"end": {
"line": 338,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"right": {
"type": "MemberExpression",
"start": 8083,
"end": 8092,
"loc": {
"start": {
"line": 338,
"column": 16
},
"end": {
"line": 338,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 8083,
"end": 8084,
"loc": {
"start": {
"line": 338,
"column": 16
},
"end": {
"line": 338,
"column": 17
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 8085,
"end": 8092,
"loc": {
"start": {
"line": 338,
"column": 18
},
"end": {
"line": 338,
"column": 25
},
"identifierName": "sibling"
},
"name": "sibling"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " parent, sibling, and children of n are black",
"start": 8103,
"end": 8150,
"loc": {
"start": {
"line": 340,
"column": 4
},
"end": {
"line": 340,
"column": 51
}
}
}
]
},
{
"type": "IfStatement",
"start": 8155,
"end": 9297,
"loc": {
"start": {
"line": 341,
"column": 4
},
"end": {
"line": 384,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 8159,
"end": 8267,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 344,
"column": 28
}
},
"left": {
"type": "LogicalExpression",
"start": 8159,
"end": 8235,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 343,
"column": 27
}
},
"left": {
"type": "LogicalExpression",
"start": 8159,
"end": 8204,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 342,
"column": 23
}
},
"left": {
"type": "CallExpression",
"start": 8159,
"end": 8177,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 341,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 8159,
"end": 8175,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 341,
"column": 24
}
},
"object": {
"type": "MemberExpression",
"start": 8159,
"end": 8167,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 341,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 8159,
"end": 8160,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 341,
"column": 9
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 8161,
"end": 8167,
"loc": {
"start": {
"line": 341,
"column": 10
},
"end": {
"line": 341,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 8168,
"end": 8175,
"loc": {
"start": {
"line": 341,
"column": 17
},
"end": {
"line": 341,
"column": 24
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8187,
"end": 8204,
"loc": {
"start": {
"line": 342,
"column": 6
},
"end": {
"line": 342,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 8187,
"end": 8202,
"loc": {
"start": {
"line": 342,
"column": 6
},
"end": {
"line": 342,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 8187,
"end": 8194,
"loc": {
"start": {
"line": 342,
"column": 6
},
"end": {
"line": 342,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8195,
"end": 8202,
"loc": {
"start": {
"line": 342,
"column": 14
},
"end": {
"line": 342,
"column": 21
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false
},
"arguments": []
},
"leadingComments": null
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8214,
"end": 8235,
"loc": {
"start": {
"line": 343,
"column": 6
},
"end": {
"line": 343,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 8214,
"end": 8221,
"loc": {
"start": {
"line": 343,
"column": 6
},
"end": {
"line": 343,
"column": 13
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8222,
"end": 8234,
"loc": {
"start": {
"line": 343,
"column": 14
},
"end": {
"line": 343,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 8222,
"end": 8229,
"loc": {
"start": {
"line": 343,
"column": 14
},
"end": {
"line": 343,
"column": 21
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8230,
"end": 8234,
"loc": {
"start": {
"line": 343,
"column": 22
},
"end": {
"line": 343,
"column": 26
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
]
},
"leadingComments": null
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8245,
"end": 8267,
"loc": {
"start": {
"line": 344,
"column": 6
},
"end": {
"line": 344,
"column": 28
}
},
"callee": {
"type": "Identifier",
"start": 8245,
"end": 8252,
"loc": {
"start": {
"line": 344,
"column": 6
},
"end": {
"line": 344,
"column": 13
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8253,
"end": 8266,
"loc": {
"start": {
"line": 344,
"column": 14
},
"end": {
"line": 344,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 8253,
"end": 8260,
"loc": {
"start": {
"line": 344,
"column": 14
},
"end": {
"line": 344,
"column": 21
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8261,
"end": 8266,
"loc": {
"start": {
"line": 344,
"column": 22
},
"end": {
"line": 344,
"column": 27
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
]
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 8274,
"end": 8336,
"loc": {
"start": {
"line": 345,
"column": 6
},
"end": {
"line": 348,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 8282,
"end": 8298,
"loc": {
"start": {
"line": 346,
"column": 6
},
"end": {
"line": 346,
"column": 22
}
},
"expression": {
"type": "CallExpression",
"start": 8282,
"end": 8298,
"loc": {
"start": {
"line": 346,
"column": 6
},
"end": {
"line": 346,
"column": 22
}
},
"callee": {
"type": "MemberExpression",
"start": 8282,
"end": 8296,
"loc": {
"start": {
"line": 346,
"column": 6
},
"end": {
"line": 346,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 8282,
"end": 8289,
"loc": {
"start": {
"line": 346,
"column": 6
},
"end": {
"line": 346,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8290,
"end": 8296,
"loc": {
"start": {
"line": 346,
"column": 14
},
"end": {
"line": 346,
"column": 20
},
"identifierName": "redden"
},
"name": "redden"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 8305,
"end": 8330,
"loc": {
"start": {
"line": 347,
"column": 6
},
"end": {
"line": 347,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 8305,
"end": 8330,
"loc": {
"start": {
"line": 347,
"column": 6
},
"end": {
"line": 347,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 8305,
"end": 8320,
"loc": {
"start": {
"line": 347,
"column": 6
},
"end": {
"line": 347,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 8305,
"end": 8309,
"loc": {
"start": {
"line": 347,
"column": 6
},
"end": {
"line": 347,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 8310,
"end": 8320,
"loc": {
"start": {
"line": 347,
"column": 11
},
"end": {
"line": 347,
"column": 21
},
"identifierName": "_fixDelete"
},
"name": "_fixDelete"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 8321,
"end": 8329,
"loc": {
"start": {
"line": 347,
"column": 22
},
"end": {
"line": 347,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 8321,
"end": 8322,
"loc": {
"start": {
"line": 347,
"column": 22
},
"end": {
"line": 347,
"column": 23
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 8323,
"end": 8329,
"loc": {
"start": {
"line": 347,
"column": 24
},
"end": {
"line": 347,
"column": 30
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 8342,
"end": 9297,
"loc": {
"start": {
"line": 348,
"column": 11
},
"end": {
"line": 384,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 8346,
"end": 8452,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 351,
"column": 28
}
},
"left": {
"type": "LogicalExpression",
"start": 8346,
"end": 8420,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 350,
"column": 27
}
},
"left": {
"type": "LogicalExpression",
"start": 8346,
"end": 8389,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 349,
"column": 23
}
},
"left": {
"type": "CallExpression",
"start": 8346,
"end": 8362,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 348,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 8346,
"end": 8360,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 348,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 8346,
"end": 8354,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 348,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 8346,
"end": 8347,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 348,
"column": 16
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 8348,
"end": 8354,
"loc": {
"start": {
"line": 348,
"column": 17
},
"end": {
"line": 348,
"column": 23
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 8355,
"end": 8360,
"loc": {
"start": {
"line": 348,
"column": 24
},
"end": {
"line": 348,
"column": 29
},
"identifierName": "isRed"
},
"name": "isRed"
},
"computed": false
},
"arguments": []
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8372,
"end": 8389,
"loc": {
"start": {
"line": 349,
"column": 6
},
"end": {
"line": 349,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 8372,
"end": 8387,
"loc": {
"start": {
"line": 349,
"column": 6
},
"end": {
"line": 349,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 8372,
"end": 8379,
"loc": {
"start": {
"line": 349,
"column": 6
},
"end": {
"line": 349,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8380,
"end": 8387,
"loc": {
"start": {
"line": 349,
"column": 14
},
"end": {
"line": 349,
"column": 21
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false
},
"arguments": []
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8399,
"end": 8420,
"loc": {
"start": {
"line": 350,
"column": 6
},
"end": {
"line": 350,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 8399,
"end": 8406,
"loc": {
"start": {
"line": 350,
"column": 6
},
"end": {
"line": 350,
"column": 13
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8407,
"end": 8419,
"loc": {
"start": {
"line": 350,
"column": 14
},
"end": {
"line": 350,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 8407,
"end": 8414,
"loc": {
"start": {
"line": 350,
"column": 14
},
"end": {
"line": 350,
"column": 21
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8415,
"end": 8419,
"loc": {
"start": {
"line": 350,
"column": 22
},
"end": {
"line": 350,
"column": 26
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
]
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8430,
"end": 8452,
"loc": {
"start": {
"line": 351,
"column": 6
},
"end": {
"line": 351,
"column": 28
}
},
"callee": {
"type": "Identifier",
"start": 8430,
"end": 8437,
"loc": {
"start": {
"line": 351,
"column": 6
},
"end": {
"line": 351,
"column": 13
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8438,
"end": 8451,
"loc": {
"start": {
"line": 351,
"column": 14
},
"end": {
"line": 351,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 8438,
"end": 8445,
"loc": {
"start": {
"line": 351,
"column": 14
},
"end": {
"line": 351,
"column": 21
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8446,
"end": 8451,
"loc": {
"start": {
"line": 351,
"column": 22
},
"end": {
"line": 351,
"column": 27
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 8459,
"end": 8514,
"loc": {
"start": {
"line": 352,
"column": 6
},
"end": {
"line": 355,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 8467,
"end": 8483,
"loc": {
"start": {
"line": 353,
"column": 6
},
"end": {
"line": 353,
"column": 22
}
},
"expression": {
"type": "CallExpression",
"start": 8467,
"end": 8483,
"loc": {
"start": {
"line": 353,
"column": 6
},
"end": {
"line": 353,
"column": 22
}
},
"callee": {
"type": "MemberExpression",
"start": 8467,
"end": 8481,
"loc": {
"start": {
"line": 353,
"column": 6
},
"end": {
"line": 353,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 8467,
"end": 8474,
"loc": {
"start": {
"line": 353,
"column": 6
},
"end": {
"line": 353,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8475,
"end": 8481,
"loc": {
"start": {
"line": 353,
"column": 14
},
"end": {
"line": 353,
"column": 20
},
"identifierName": "redden"
},
"name": "redden"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 8490,
"end": 8508,
"loc": {
"start": {
"line": 354,
"column": 6
},
"end": {
"line": 354,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 8490,
"end": 8508,
"loc": {
"start": {
"line": 354,
"column": 6
},
"end": {
"line": 354,
"column": 24
}
},
"callee": {
"type": "MemberExpression",
"start": 8490,
"end": 8506,
"loc": {
"start": {
"line": 354,
"column": 6
},
"end": {
"line": 354,
"column": 22
}
},
"object": {
"type": "MemberExpression",
"start": 8490,
"end": 8498,
"loc": {
"start": {
"line": 354,
"column": 6
},
"end": {
"line": 354,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 8490,
"end": 8491,
"loc": {
"start": {
"line": 354,
"column": 6
},
"end": {
"line": 354,
"column": 7
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 8492,
"end": 8498,
"loc": {
"start": {
"line": 354,
"column": 8
},
"end": {
"line": 354,
"column": 14
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 8499,
"end": 8506,
"loc": {
"start": {
"line": 354,
"column": 15
},
"end": {
"line": 354,
"column": 22
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 8520,
"end": 9297,
"loc": {
"start": {
"line": 355,
"column": 11
},
"end": {
"line": 384,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 8528,
"end": 9041,
"loc": {
"start": {
"line": 356,
"column": 6
},
"end": {
"line": 374,
"column": 7
}
},
"test": {
"type": "LogicalExpression",
"start": 8532,
"end": 8645,
"loc": {
"start": {
"line": 356,
"column": 10
},
"end": {
"line": 359,
"column": 30
}
},
"left": {
"type": "LogicalExpression",
"start": 8532,
"end": 8611,
"loc": {
"start": {
"line": 356,
"column": 10
},
"end": {
"line": 358,
"column": 27
}
},
"left": {
"type": "LogicalExpression",
"start": 8532,
"end": 8580,
"loc": {
"start": {
"line": 356,
"column": 10
},
"end": {
"line": 357,
"column": 25
}
},
"left": {
"type": "BinaryExpression",
"start": 8532,
"end": 8551,
"loc": {
"start": {
"line": 356,
"column": 10
},
"end": {
"line": 356,
"column": 29
}
},
"left": {
"type": "Identifier",
"start": 8532,
"end": 8533,
"loc": {
"start": {
"line": 356,
"column": 10
},
"end": {
"line": 356,
"column": 11
},
"identifierName": "n"
},
"name": "n"
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 8538,
"end": 8551,
"loc": {
"start": {
"line": 356,
"column": 16
},
"end": {
"line": 356,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 8538,
"end": 8546,
"loc": {
"start": {
"line": 356,
"column": 16
},
"end": {
"line": 356,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 8538,
"end": 8539,
"loc": {
"start": {
"line": 356,
"column": 16
},
"end": {
"line": 356,
"column": 17
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 8540,
"end": 8546,
"loc": {
"start": {
"line": 356,
"column": 18
},
"end": {
"line": 356,
"column": 24
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 8547,
"end": 8551,
"loc": {
"start": {
"line": 356,
"column": 25
},
"end": {
"line": 356,
"column": 29
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8563,
"end": 8580,
"loc": {
"start": {
"line": 357,
"column": 8
},
"end": {
"line": 357,
"column": 25
}
},
"callee": {
"type": "MemberExpression",
"start": 8563,
"end": 8578,
"loc": {
"start": {
"line": 357,
"column": 8
},
"end": {
"line": 357,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 8563,
"end": 8570,
"loc": {
"start": {
"line": 357,
"column": 8
},
"end": {
"line": 357,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8571,
"end": 8578,
"loc": {
"start": {
"line": 357,
"column": 16
},
"end": {
"line": 357,
"column": 23
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false
},
"arguments": []
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8592,
"end": 8611,
"loc": {
"start": {
"line": 358,
"column": 8
},
"end": {
"line": 358,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 8592,
"end": 8597,
"loc": {
"start": {
"line": 358,
"column": 8
},
"end": {
"line": 358,
"column": 13
},
"identifierName": "isRed"
},
"name": "isRed"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8598,
"end": 8610,
"loc": {
"start": {
"line": 358,
"column": 14
},
"end": {
"line": 358,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 8598,
"end": 8605,
"loc": {
"start": {
"line": 358,
"column": 14
},
"end": {
"line": 358,
"column": 21
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8606,
"end": 8610,
"loc": {
"start": {
"line": 358,
"column": 22
},
"end": {
"line": 358,
"column": 26
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
]
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8623,
"end": 8645,
"loc": {
"start": {
"line": 359,
"column": 8
},
"end": {
"line": 359,
"column": 30
}
},
"callee": {
"type": "Identifier",
"start": 8623,
"end": 8630,
"loc": {
"start": {
"line": 359,
"column": 8
},
"end": {
"line": 359,
"column": 15
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8631,
"end": 8644,
"loc": {
"start": {
"line": 359,
"column": 16
},
"end": {
"line": 359,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 8631,
"end": 8638,
"loc": {
"start": {
"line": 359,
"column": 16
},
"end": {
"line": 359,
"column": 23
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8639,
"end": 8644,
"loc": {
"start": {
"line": 359,
"column": 24
},
"end": {
"line": 359,
"column": 29
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 8654,
"end": 8781,
"loc": {
"start": {
"line": 360,
"column": 8
},
"end": {
"line": 365,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 8664,
"end": 8680,
"loc": {
"start": {
"line": 361,
"column": 8
},
"end": {
"line": 361,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 8664,
"end": 8680,
"loc": {
"start": {
"line": 361,
"column": 8
},
"end": {
"line": 361,
"column": 24
}
},
"callee": {
"type": "MemberExpression",
"start": 8664,
"end": 8678,
"loc": {
"start": {
"line": 361,
"column": 8
},
"end": {
"line": 361,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 8664,
"end": 8671,
"loc": {
"start": {
"line": 361,
"column": 8
},
"end": {
"line": 361,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8672,
"end": 8678,
"loc": {
"start": {
"line": 361,
"column": 16
},
"end": {
"line": 361,
"column": 22
},
"identifierName": "redden"
},
"name": "redden"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 8689,
"end": 8711,
"loc": {
"start": {
"line": 362,
"column": 8
},
"end": {
"line": 362,
"column": 30
}
},
"expression": {
"type": "CallExpression",
"start": 8689,
"end": 8711,
"loc": {
"start": {
"line": 362,
"column": 8
},
"end": {
"line": 362,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 8689,
"end": 8709,
"loc": {
"start": {
"line": 362,
"column": 8
},
"end": {
"line": 362,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 8689,
"end": 8701,
"loc": {
"start": {
"line": 362,
"column": 8
},
"end": {
"line": 362,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 8689,
"end": 8696,
"loc": {
"start": {
"line": 362,
"column": 8
},
"end": {
"line": 362,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8697,
"end": 8701,
"loc": {
"start": {
"line": 362,
"column": 16
},
"end": {
"line": 362,
"column": 20
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 8702,
"end": 8709,
"loc": {
"start": {
"line": 362,
"column": 21
},
"end": {
"line": 362,
"column": 28
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 8720,
"end": 8745,
"loc": {
"start": {
"line": 363,
"column": 8
},
"end": {
"line": 363,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 8720,
"end": 8745,
"loc": {
"start": {
"line": 363,
"column": 8
},
"end": {
"line": 363,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 8720,
"end": 8739,
"loc": {
"start": {
"line": 363,
"column": 8
},
"end": {
"line": 363,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 8720,
"end": 8727,
"loc": {
"start": {
"line": 363,
"column": 8
},
"end": {
"line": 363,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8728,
"end": 8739,
"loc": {
"start": {
"line": 363,
"column": 16
},
"end": {
"line": 363,
"column": 27
},
"identifierName": "rotateRight"
},
"name": "rotateRight"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 8740,
"end": 8744,
"loc": {
"start": {
"line": 363,
"column": 28
},
"end": {
"line": 363,
"column": 32
}
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 8754,
"end": 8773,
"loc": {
"start": {
"line": 364,
"column": 8
},
"end": {
"line": 364,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 8754,
"end": 8773,
"loc": {
"start": {
"line": 364,
"column": 8
},
"end": {
"line": 364,
"column": 27
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 8754,
"end": 8761,
"loc": {
"start": {
"line": 364,
"column": 8
},
"end": {
"line": 364,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"right": {
"type": "MemberExpression",
"start": 8764,
"end": 8773,
"loc": {
"start": {
"line": 364,
"column": 18
},
"end": {
"line": 364,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 8764,
"end": 8765,
"loc": {
"start": {
"line": 364,
"column": 18
},
"end": {
"line": 364,
"column": 19
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 8766,
"end": 8773,
"loc": {
"start": {
"line": 364,
"column": 20
},
"end": {
"line": 364,
"column": 27
},
"identifierName": "sibling"
},
"name": "sibling"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 8787,
"end": 9041,
"loc": {
"start": {
"line": 365,
"column": 13
},
"end": {
"line": 374,
"column": 7
}
},
"test": {
"type": "LogicalExpression",
"start": 8791,
"end": 8905,
"loc": {
"start": {
"line": 365,
"column": 17
},
"end": {
"line": 368,
"column": 29
}
},
"left": {
"type": "LogicalExpression",
"start": 8791,
"end": 8872,
"loc": {
"start": {
"line": 365,
"column": 17
},
"end": {
"line": 367,
"column": 28
}
},
"left": {
"type": "LogicalExpression",
"start": 8791,
"end": 8840,
"loc": {
"start": {
"line": 365,
"column": 17
},
"end": {
"line": 366,
"column": 25
}
},
"left": {
"type": "BinaryExpression",
"start": 8791,
"end": 8811,
"loc": {
"start": {
"line": 365,
"column": 17
},
"end": {
"line": 365,
"column": 37
}
},
"left": {
"type": "Identifier",
"start": 8791,
"end": 8792,
"loc": {
"start": {
"line": 365,
"column": 17
},
"end": {
"line": 365,
"column": 18
},
"identifierName": "n"
},
"name": "n"
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 8797,
"end": 8811,
"loc": {
"start": {
"line": 365,
"column": 23
},
"end": {
"line": 365,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 8797,
"end": 8805,
"loc": {
"start": {
"line": 365,
"column": 23
},
"end": {
"line": 365,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 8797,
"end": 8798,
"loc": {
"start": {
"line": 365,
"column": 23
},
"end": {
"line": 365,
"column": 24
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 8799,
"end": 8805,
"loc": {
"start": {
"line": 365,
"column": 25
},
"end": {
"line": 365,
"column": 31
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 8806,
"end": 8811,
"loc": {
"start": {
"line": 365,
"column": 32
},
"end": {
"line": 365,
"column": 37
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8823,
"end": 8840,
"loc": {
"start": {
"line": 366,
"column": 8
},
"end": {
"line": 366,
"column": 25
}
},
"callee": {
"type": "MemberExpression",
"start": 8823,
"end": 8838,
"loc": {
"start": {
"line": 366,
"column": 8
},
"end": {
"line": 366,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 8823,
"end": 8830,
"loc": {
"start": {
"line": 366,
"column": 8
},
"end": {
"line": 366,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8831,
"end": 8838,
"loc": {
"start": {
"line": 366,
"column": 16
},
"end": {
"line": 366,
"column": 23
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false
},
"arguments": []
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8852,
"end": 8872,
"loc": {
"start": {
"line": 367,
"column": 8
},
"end": {
"line": 367,
"column": 28
}
},
"callee": {
"type": "Identifier",
"start": 8852,
"end": 8857,
"loc": {
"start": {
"line": 367,
"column": 8
},
"end": {
"line": 367,
"column": 13
},
"identifierName": "isRed"
},
"name": "isRed"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8858,
"end": 8871,
"loc": {
"start": {
"line": 367,
"column": 14
},
"end": {
"line": 367,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 8858,
"end": 8865,
"loc": {
"start": {
"line": 367,
"column": 14
},
"end": {
"line": 367,
"column": 21
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8866,
"end": 8871,
"loc": {
"start": {
"line": 367,
"column": 22
},
"end": {
"line": 367,
"column": 27
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
]
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 8884,
"end": 8905,
"loc": {
"start": {
"line": 368,
"column": 8
},
"end": {
"line": 368,
"column": 29
}
},
"callee": {
"type": "Identifier",
"start": 8884,
"end": 8891,
"loc": {
"start": {
"line": 368,
"column": 8
},
"end": {
"line": 368,
"column": 15
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8892,
"end": 8904,
"loc": {
"start": {
"line": 368,
"column": 16
},
"end": {
"line": 368,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 8892,
"end": 8899,
"loc": {
"start": {
"line": 368,
"column": 16
},
"end": {
"line": 368,
"column": 23
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8900,
"end": 8904,
"loc": {
"start": {
"line": 368,
"column": 24
},
"end": {
"line": 368,
"column": 28
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
]
}
},
"consequent": {
"type": "BlockStatement",
"start": 8914,
"end": 9041,
"loc": {
"start": {
"line": 369,
"column": 8
},
"end": {
"line": 374,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 8924,
"end": 8940,
"loc": {
"start": {
"line": 370,
"column": 8
},
"end": {
"line": 370,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 8924,
"end": 8940,
"loc": {
"start": {
"line": 370,
"column": 8
},
"end": {
"line": 370,
"column": 24
}
},
"callee": {
"type": "MemberExpression",
"start": 8924,
"end": 8938,
"loc": {
"start": {
"line": 370,
"column": 8
},
"end": {
"line": 370,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 8924,
"end": 8931,
"loc": {
"start": {
"line": 370,
"column": 8
},
"end": {
"line": 370,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8932,
"end": 8938,
"loc": {
"start": {
"line": 370,
"column": 16
},
"end": {
"line": 370,
"column": 22
},
"identifierName": "redden"
},
"name": "redden"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 8949,
"end": 8972,
"loc": {
"start": {
"line": 371,
"column": 8
},
"end": {
"line": 371,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 8949,
"end": 8972,
"loc": {
"start": {
"line": 371,
"column": 8
},
"end": {
"line": 371,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 8949,
"end": 8970,
"loc": {
"start": {
"line": 371,
"column": 8
},
"end": {
"line": 371,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 8949,
"end": 8962,
"loc": {
"start": {
"line": 371,
"column": 8
},
"end": {
"line": 371,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 8949,
"end": 8956,
"loc": {
"start": {
"line": 371,
"column": 8
},
"end": {
"line": 371,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8957,
"end": 8962,
"loc": {
"start": {
"line": 371,
"column": 16
},
"end": {
"line": 371,
"column": 21
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 8963,
"end": 8970,
"loc": {
"start": {
"line": 371,
"column": 22
},
"end": {
"line": 371,
"column": 29
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 8981,
"end": 9005,
"loc": {
"start": {
"line": 372,
"column": 8
},
"end": {
"line": 372,
"column": 32
}
},
"expression": {
"type": "CallExpression",
"start": 8981,
"end": 9005,
"loc": {
"start": {
"line": 372,
"column": 8
},
"end": {
"line": 372,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 8981,
"end": 8999,
"loc": {
"start": {
"line": 372,
"column": 8
},
"end": {
"line": 372,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 8981,
"end": 8988,
"loc": {
"start": {
"line": 372,
"column": 8
},
"end": {
"line": 372,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 8989,
"end": 8999,
"loc": {
"start": {
"line": 372,
"column": 16
},
"end": {
"line": 372,
"column": 26
},
"identifierName": "rotateLeft"
},
"name": "rotateLeft"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 9000,
"end": 9004,
"loc": {
"start": {
"line": 372,
"column": 27
},
"end": {
"line": 372,
"column": 31
}
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 9014,
"end": 9033,
"loc": {
"start": {
"line": 373,
"column": 8
},
"end": {
"line": 373,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9014,
"end": 9033,
"loc": {
"start": {
"line": 373,
"column": 8
},
"end": {
"line": 373,
"column": 27
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 9014,
"end": 9021,
"loc": {
"start": {
"line": 373,
"column": 8
},
"end": {
"line": 373,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"right": {
"type": "MemberExpression",
"start": 9024,
"end": 9033,
"loc": {
"start": {
"line": 373,
"column": 18
},
"end": {
"line": 373,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 9024,
"end": 9025,
"loc": {
"start": {
"line": 373,
"column": 18
},
"end": {
"line": 373,
"column": 19
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 9026,
"end": 9033,
"loc": {
"start": {
"line": 373,
"column": 20
},
"end": {
"line": 373,
"column": 27
},
"identifierName": "sibling"
},
"name": "sibling"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": null
}
},
{
"type": "ExpressionStatement",
"start": 9048,
"end": 9078,
"loc": {
"start": {
"line": 375,
"column": 6
},
"end": {
"line": 375,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9048,
"end": 9078,
"loc": {
"start": {
"line": 375,
"column": 6
},
"end": {
"line": 375,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 9048,
"end": 9061,
"loc": {
"start": {
"line": 375,
"column": 6
},
"end": {
"line": 375,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 9048,
"end": 9055,
"loc": {
"start": {
"line": 375,
"column": 6
},
"end": {
"line": 375,
"column": 13
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 9056,
"end": 9061,
"loc": {
"start": {
"line": 375,
"column": 14
},
"end": {
"line": 375,
"column": 19
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 9064,
"end": 9078,
"loc": {
"start": {
"line": 375,
"column": 22
},
"end": {
"line": 375,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 9064,
"end": 9072,
"loc": {
"start": {
"line": 375,
"column": 22
},
"end": {
"line": 375,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 9064,
"end": 9065,
"loc": {
"start": {
"line": 375,
"column": 22
},
"end": {
"line": 375,
"column": 23
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 9066,
"end": 9072,
"loc": {
"start": {
"line": 375,
"column": 24
},
"end": {
"line": 375,
"column": 30
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9073,
"end": 9078,
"loc": {
"start": {
"line": 375,
"column": 31
},
"end": {
"line": 375,
"column": 36
},
"identifierName": "color"
},
"name": "color"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 9085,
"end": 9103,
"loc": {
"start": {
"line": 376,
"column": 6
},
"end": {
"line": 376,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 9085,
"end": 9103,
"loc": {
"start": {
"line": 376,
"column": 6
},
"end": {
"line": 376,
"column": 24
}
},
"callee": {
"type": "MemberExpression",
"start": 9085,
"end": 9101,
"loc": {
"start": {
"line": 376,
"column": 6
},
"end": {
"line": 376,
"column": 22
}
},
"object": {
"type": "MemberExpression",
"start": 9085,
"end": 9093,
"loc": {
"start": {
"line": 376,
"column": 6
},
"end": {
"line": 376,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 9085,
"end": 9086,
"loc": {
"start": {
"line": 376,
"column": 6
},
"end": {
"line": 376,
"column": 7
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 9087,
"end": 9093,
"loc": {
"start": {
"line": 376,
"column": 8
},
"end": {
"line": 376,
"column": 14
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9094,
"end": 9101,
"loc": {
"start": {
"line": 376,
"column": 15
},
"end": {
"line": 376,
"column": 22
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "IfStatement",
"start": 9110,
"end": 9291,
"loc": {
"start": {
"line": 377,
"column": 6
},
"end": {
"line": 383,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 9114,
"end": 9133,
"loc": {
"start": {
"line": 377,
"column": 10
},
"end": {
"line": 377,
"column": 29
}
},
"left": {
"type": "Identifier",
"start": 9114,
"end": 9115,
"loc": {
"start": {
"line": 377,
"column": 10
},
"end": {
"line": 377,
"column": 11
},
"identifierName": "n"
},
"name": "n"
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 9120,
"end": 9133,
"loc": {
"start": {
"line": 377,
"column": 16
},
"end": {
"line": 377,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 9120,
"end": 9128,
"loc": {
"start": {
"line": 377,
"column": 16
},
"end": {
"line": 377,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 9120,
"end": 9121,
"loc": {
"start": {
"line": 377,
"column": 16
},
"end": {
"line": 377,
"column": 17
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 9122,
"end": 9128,
"loc": {
"start": {
"line": 377,
"column": 18
},
"end": {
"line": 377,
"column": 24
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9129,
"end": 9133,
"loc": {
"start": {
"line": 377,
"column": 25
},
"end": {
"line": 377,
"column": 29
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 9135,
"end": 9210,
"loc": {
"start": {
"line": 377,
"column": 31
},
"end": {
"line": 380,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9145,
"end": 9168,
"loc": {
"start": {
"line": 378,
"column": 8
},
"end": {
"line": 378,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 9145,
"end": 9168,
"loc": {
"start": {
"line": 378,
"column": 8
},
"end": {
"line": 378,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 9145,
"end": 9166,
"loc": {
"start": {
"line": 378,
"column": 8
},
"end": {
"line": 378,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 9145,
"end": 9158,
"loc": {
"start": {
"line": 378,
"column": 8
},
"end": {
"line": 378,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 9145,
"end": 9152,
"loc": {
"start": {
"line": 378,
"column": 8
},
"end": {
"line": 378,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 9153,
"end": 9158,
"loc": {
"start": {
"line": 378,
"column": 16
},
"end": {
"line": 378,
"column": 21
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9159,
"end": 9166,
"loc": {
"start": {
"line": 378,
"column": 22
},
"end": {
"line": 378,
"column": 29
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 9177,
"end": 9202,
"loc": {
"start": {
"line": 379,
"column": 8
},
"end": {
"line": 379,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 9177,
"end": 9202,
"loc": {
"start": {
"line": 379,
"column": 8
},
"end": {
"line": 379,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 9177,
"end": 9196,
"loc": {
"start": {
"line": 379,
"column": 8
},
"end": {
"line": 379,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 9177,
"end": 9185,
"loc": {
"start": {
"line": 379,
"column": 8
},
"end": {
"line": 379,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 9177,
"end": 9178,
"loc": {
"start": {
"line": 379,
"column": 8
},
"end": {
"line": 379,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 9179,
"end": 9185,
"loc": {
"start": {
"line": 379,
"column": 10
},
"end": {
"line": 379,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9186,
"end": 9196,
"loc": {
"start": {
"line": 379,
"column": 17
},
"end": {
"line": 379,
"column": 27
},
"identifierName": "rotateLeft"
},
"name": "rotateLeft"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 9197,
"end": 9201,
"loc": {
"start": {
"line": 379,
"column": 28
},
"end": {
"line": 379,
"column": 32
}
}
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 9216,
"end": 9291,
"loc": {
"start": {
"line": 380,
"column": 13
},
"end": {
"line": 383,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9226,
"end": 9248,
"loc": {
"start": {
"line": 381,
"column": 8
},
"end": {
"line": 381,
"column": 30
}
},
"expression": {
"type": "CallExpression",
"start": 9226,
"end": 9248,
"loc": {
"start": {
"line": 381,
"column": 8
},
"end": {
"line": 381,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 9226,
"end": 9246,
"loc": {
"start": {
"line": 381,
"column": 8
},
"end": {
"line": 381,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 9226,
"end": 9238,
"loc": {
"start": {
"line": 381,
"column": 8
},
"end": {
"line": 381,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 9226,
"end": 9233,
"loc": {
"start": {
"line": 381,
"column": 8
},
"end": {
"line": 381,
"column": 15
},
"identifierName": "sibling"
},
"name": "sibling"
},
"property": {
"type": "Identifier",
"start": 9234,
"end": 9238,
"loc": {
"start": {
"line": 381,
"column": 16
},
"end": {
"line": 381,
"column": 20
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9239,
"end": 9246,
"loc": {
"start": {
"line": 381,
"column": 21
},
"end": {
"line": 381,
"column": 28
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 9257,
"end": 9283,
"loc": {
"start": {
"line": 382,
"column": 8
},
"end": {
"line": 382,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 9257,
"end": 9283,
"loc": {
"start": {
"line": 382,
"column": 8
},
"end": {
"line": 382,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 9257,
"end": 9277,
"loc": {
"start": {
"line": 382,
"column": 8
},
"end": {
"line": 382,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 9257,
"end": 9265,
"loc": {
"start": {
"line": 382,
"column": 8
},
"end": {
"line": 382,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 9257,
"end": 9258,
"loc": {
"start": {
"line": 382,
"column": 8
},
"end": {
"line": 382,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 9259,
"end": 9265,
"loc": {
"start": {
"line": 382,
"column": 10
},
"end": {
"line": 382,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9266,
"end": 9277,
"loc": {
"start": {
"line": 382,
"column": 17
},
"end": {
"line": 382,
"column": 28
},
"identifierName": "rotateRight"
},
"name": "rotateRight"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 9278,
"end": 9282,
"loc": {
"start": {
"line": 382,
"column": 29
},
"end": {
"line": 382,
"column": 33
}
}
}
]
}
}
],
"directives": []
}
}
],
"directives": []
}
},
"leadingComments": [
{
"type": "CommentLine",
"value": " parent, sibling, and children of n are black",
"start": 8103,
"end": 8150,
"loc": {
"start": {
"line": 340,
"column": 4
},
"end": {
"line": 340,
"column": 51
}
}
}
]
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 9304,
"end": 10013,
"loc": {
"start": {
"line": 386,
"column": 2
},
"end": {
"line": 417,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 9304,
"end": 9307,
"loc": {
"start": {
"line": 386,
"column": 2
},
"end": {
"line": 386,
"column": 5
},
"identifierName": "put"
},
"name": "put"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 9309,
"end": 9310,
"loc": {
"start": {
"line": 386,
"column": 7
},
"end": {
"line": 386,
"column": 8
},
"identifierName": "v"
},
"name": "v"
}
],
"body": {
"type": "BlockStatement",
"start": 9312,
"end": 10013,
"loc": {
"start": {
"line": 386,
"column": 10
},
"end": {
"line": 417,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 9318,
"end": 9337,
"loc": {
"start": {
"line": 387,
"column": 4
},
"end": {
"line": 387,
"column": 23
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 9322,
"end": 9337,
"loc": {
"start": {
"line": 387,
"column": 8
},
"end": {
"line": 387,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 9322,
"end": 9326,
"loc": {
"start": {
"line": 387,
"column": 8
},
"end": {
"line": 387,
"column": 12
},
"identifierName": "node"
},
"name": "node"
},
"init": {
"type": "NewExpression",
"start": 9329,
"end": 9337,
"loc": {
"start": {
"line": 387,
"column": 15
},
"end": {
"line": 387,
"column": 23
}
},
"callee": {
"type": "Identifier",
"start": 9333,
"end": 9334,
"loc": {
"start": {
"line": 387,
"column": 19
},
"end": {
"line": 387,
"column": 20
},
"identifierName": "N"
},
"name": "N"
},
"arguments": [
{
"type": "Identifier",
"start": 9335,
"end": 9336,
"loc": {
"start": {
"line": 387,
"column": 21
},
"end": {
"line": 387,
"column": 22
},
"identifierName": "v"
},
"name": "v"
}
]
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 9342,
"end": 9951,
"loc": {
"start": {
"line": 388,
"column": 4
},
"end": {
"line": 413,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 9346,
"end": 9364,
"loc": {
"start": {
"line": 388,
"column": 8
},
"end": {
"line": 388,
"column": 26
}
},
"left": {
"type": "MemberExpression",
"start": 9346,
"end": 9355,
"loc": {
"start": {
"line": 388,
"column": 8
},
"end": {
"line": 388,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 9346,
"end": 9350,
"loc": {
"start": {
"line": 388,
"column": 8
},
"end": {
"line": 388,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 9351,
"end": 9355,
"loc": {
"start": {
"line": 388,
"column": 13
},
"end": {
"line": 388,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 9360,
"end": 9364,
"loc": {
"start": {
"line": 388,
"column": 22
},
"end": {
"line": 388,
"column": 26
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 9366,
"end": 9915,
"loc": {
"start": {
"line": 388,
"column": 28
},
"end": {
"line": 411,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 9374,
"end": 9391,
"loc": {
"start": {
"line": 389,
"column": 6
},
"end": {
"line": 389,
"column": 23
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 9378,
"end": 9391,
"loc": {
"start": {
"line": 389,
"column": 10
},
"end": {
"line": 389,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 9378,
"end": 9379,
"loc": {
"start": {
"line": 389,
"column": 10
},
"end": {
"line": 389,
"column": 11
},
"identifierName": "p"
},
"name": "p"
},
"init": {
"type": "MemberExpression",
"start": 9382,
"end": 9391,
"loc": {
"start": {
"line": 389,
"column": 14
},
"end": {
"line": 389,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 9382,
"end": 9386,
"loc": {
"start": {
"line": 389,
"column": 14
},
"end": {
"line": 389,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 9387,
"end": 9391,
"loc": {
"start": {
"line": 389,
"column": 19
},
"end": {
"line": 389,
"column": 23
},
"identifierName": "root"
},
"name": "root",
"leadingComments": null,
"trailingComments": null
},
"computed": false,
"trailingComments": null
},
"trailingComments": null
}
],
"kind": "var",
"trailingComments": [
{
"type": "CommentLine",
"value": " p abbrev. parent",
"start": 9392,
"end": 9411,
"loc": {
"start": {
"line": 389,
"column": 24
},
"end": {
"line": 389,
"column": 43
}
}
}
]
},
{
"type": "WhileStatement",
"start": 9418,
"end": 9881,
"loc": {
"start": {
"line": 390,
"column": 6
},
"end": {
"line": 409,
"column": 7
}
},
"test": {
"type": "BooleanLiteral",
"start": 9425,
"end": 9429,
"loc": {
"start": {
"line": 390,
"column": 13
},
"end": {
"line": 390,
"column": 17
}
},
"value": true,
"leadingComments": null
},
"body": {
"type": "BlockStatement",
"start": 9431,
"end": 9881,
"loc": {
"start": {
"line": 390,
"column": 19
},
"end": {
"line": 409,
"column": 7
}
},
"body": [
{
"type": "IfStatement",
"start": 9441,
"end": 9873,
"loc": {
"start": {
"line": 391,
"column": 8
},
"end": {
"line": 408,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 9445,
"end": 9477,
"loc": {
"start": {
"line": 391,
"column": 12
},
"end": {
"line": 391,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 9445,
"end": 9466,
"loc": {
"start": {
"line": 391,
"column": 12
},
"end": {
"line": 391,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 9445,
"end": 9457,
"loc": {
"start": {
"line": 391,
"column": 12
},
"end": {
"line": 391,
"column": 24
}
},
"object": {
"type": "MemberExpression",
"start": 9445,
"end": 9453,
"loc": {
"start": {
"line": 391,
"column": 12
},
"end": {
"line": 391,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 9445,
"end": 9449,
"loc": {
"start": {
"line": 391,
"column": 12
},
"end": {
"line": 391,
"column": 16
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 9450,
"end": 9453,
"loc": {
"start": {
"line": 391,
"column": 17
},
"end": {
"line": 391,
"column": 20
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9454,
"end": 9457,
"loc": {
"start": {
"line": 391,
"column": 21
},
"end": {
"line": 391,
"column": 24
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9458,
"end": 9466,
"loc": {
"start": {
"line": 391,
"column": 25
},
"end": {
"line": 391,
"column": 33
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 9467,
"end": 9476,
"loc": {
"start": {
"line": 391,
"column": 34
},
"end": {
"line": 391,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 9467,
"end": 9472,
"loc": {
"start": {
"line": 391,
"column": 34
},
"end": {
"line": 391,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 9467,
"end": 9468,
"loc": {
"start": {
"line": 391,
"column": 34
},
"end": {
"line": 391,
"column": 35
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9469,
"end": 9472,
"loc": {
"start": {
"line": 391,
"column": 36
},
"end": {
"line": 391,
"column": 39
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9473,
"end": 9476,
"loc": {
"start": {
"line": 391,
"column": 40
},
"end": {
"line": 391,
"column": 43
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 9479,
"end": 9621,
"loc": {
"start": {
"line": 391,
"column": 46
},
"end": {
"line": 398,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 9491,
"end": 9611,
"loc": {
"start": {
"line": 392,
"column": 10
},
"end": {
"line": 397,
"column": 11
}
},
"test": {
"type": "BinaryExpression",
"start": 9495,
"end": 9510,
"loc": {
"start": {
"line": 392,
"column": 14
},
"end": {
"line": 392,
"column": 29
}
},
"left": {
"type": "MemberExpression",
"start": 9495,
"end": 9501,
"loc": {
"start": {
"line": 392,
"column": 14
},
"end": {
"line": 392,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 9495,
"end": 9496,
"loc": {
"start": {
"line": 392,
"column": 14
},
"end": {
"line": 392,
"column": 15
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9497,
"end": 9501,
"loc": {
"start": {
"line": 392,
"column": 16
},
"end": {
"line": 392,
"column": 20
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 9506,
"end": 9510,
"loc": {
"start": {
"line": 392,
"column": 25
},
"end": {
"line": 392,
"column": 29
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 9512,
"end": 9569,
"loc": {
"start": {
"line": 392,
"column": 31
},
"end": {
"line": 395,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9526,
"end": 9539,
"loc": {
"start": {
"line": 393,
"column": 12
},
"end": {
"line": 393,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9526,
"end": 9539,
"loc": {
"start": {
"line": 393,
"column": 12
},
"end": {
"line": 393,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 9526,
"end": 9532,
"loc": {
"start": {
"line": 393,
"column": 12
},
"end": {
"line": 393,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 9526,
"end": 9527,
"loc": {
"start": {
"line": 393,
"column": 12
},
"end": {
"line": 393,
"column": 13
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9528,
"end": 9532,
"loc": {
"start": {
"line": 393,
"column": 14
},
"end": {
"line": 393,
"column": 18
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 9535,
"end": 9539,
"loc": {
"start": {
"line": 393,
"column": 21
},
"end": {
"line": 393,
"column": 25
},
"identifierName": "node"
},
"name": "node"
}
}
},
{
"type": "BreakStatement",
"start": 9552,
"end": 9557,
"loc": {
"start": {
"line": 394,
"column": 12
},
"end": {
"line": 394,
"column": 17
}
},
"label": null
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 9575,
"end": 9611,
"loc": {
"start": {
"line": 395,
"column": 17
},
"end": {
"line": 397,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9589,
"end": 9599,
"loc": {
"start": {
"line": 396,
"column": 12
},
"end": {
"line": 396,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9589,
"end": 9599,
"loc": {
"start": {
"line": 396,
"column": 12
},
"end": {
"line": 396,
"column": 22
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 9589,
"end": 9590,
"loc": {
"start": {
"line": 396,
"column": 12
},
"end": {
"line": 396,
"column": 13
},
"identifierName": "p"
},
"name": "p"
},
"right": {
"type": "MemberExpression",
"start": 9593,
"end": 9599,
"loc": {
"start": {
"line": 396,
"column": 16
},
"end": {
"line": 396,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 9593,
"end": 9594,
"loc": {
"start": {
"line": 396,
"column": 16
},
"end": {
"line": 396,
"column": 17
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9595,
"end": 9599,
"loc": {
"start": {
"line": 396,
"column": 18
},
"end": {
"line": 396,
"column": 22
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
}
}
],
"directives": []
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 9627,
"end": 9873,
"loc": {
"start": {
"line": 398,
"column": 15
},
"end": {
"line": 408,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 9631,
"end": 9663,
"loc": {
"start": {
"line": 398,
"column": 19
},
"end": {
"line": 398,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 9631,
"end": 9649,
"loc": {
"start": {
"line": 398,
"column": 19
},
"end": {
"line": 398,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 9631,
"end": 9640,
"loc": {
"start": {
"line": 398,
"column": 19
},
"end": {
"line": 398,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 9631,
"end": 9636,
"loc": {
"start": {
"line": 398,
"column": 19
},
"end": {
"line": 398,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 9631,
"end": 9632,
"loc": {
"start": {
"line": 398,
"column": 19
},
"end": {
"line": 398,
"column": 20
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9633,
"end": 9636,
"loc": {
"start": {
"line": 398,
"column": 21
},
"end": {
"line": 398,
"column": 24
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9637,
"end": 9640,
"loc": {
"start": {
"line": 398,
"column": 25
},
"end": {
"line": 398,
"column": 28
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9641,
"end": 9649,
"loc": {
"start": {
"line": 398,
"column": 29
},
"end": {
"line": 398,
"column": 37
},
"identifierName": "lessThan"
},
"name": "lessThan"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 9650,
"end": 9662,
"loc": {
"start": {
"line": 398,
"column": 38
},
"end": {
"line": 398,
"column": 50
}
},
"object": {
"type": "MemberExpression",
"start": 9650,
"end": 9658,
"loc": {
"start": {
"line": 398,
"column": 38
},
"end": {
"line": 398,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 9650,
"end": 9654,
"loc": {
"start": {
"line": 398,
"column": 38
},
"end": {
"line": 398,
"column": 42
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 9655,
"end": 9658,
"loc": {
"start": {
"line": 398,
"column": 43
},
"end": {
"line": 398,
"column": 46
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9659,
"end": 9662,
"loc": {
"start": {
"line": 398,
"column": 47
},
"end": {
"line": 398,
"column": 50
},
"identifierName": "_id"
},
"name": "_id"
},
"computed": false
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 9665,
"end": 9810,
"loc": {
"start": {
"line": 398,
"column": 53
},
"end": {
"line": 405,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 9677,
"end": 9800,
"loc": {
"start": {
"line": 399,
"column": 10
},
"end": {
"line": 404,
"column": 11
}
},
"test": {
"type": "BinaryExpression",
"start": 9681,
"end": 9697,
"loc": {
"start": {
"line": 399,
"column": 14
},
"end": {
"line": 399,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 9681,
"end": 9688,
"loc": {
"start": {
"line": 399,
"column": 14
},
"end": {
"line": 399,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 9681,
"end": 9682,
"loc": {
"start": {
"line": 399,
"column": 14
},
"end": {
"line": 399,
"column": 15
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9683,
"end": 9688,
"loc": {
"start": {
"line": 399,
"column": 16
},
"end": {
"line": 399,
"column": 21
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 9693,
"end": 9697,
"loc": {
"start": {
"line": 399,
"column": 26
},
"end": {
"line": 399,
"column": 30
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 9699,
"end": 9757,
"loc": {
"start": {
"line": 399,
"column": 32
},
"end": {
"line": 402,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9713,
"end": 9727,
"loc": {
"start": {
"line": 400,
"column": 12
},
"end": {
"line": 400,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9713,
"end": 9727,
"loc": {
"start": {
"line": 400,
"column": 12
},
"end": {
"line": 400,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 9713,
"end": 9720,
"loc": {
"start": {
"line": 400,
"column": 12
},
"end": {
"line": 400,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 9713,
"end": 9714,
"loc": {
"start": {
"line": 400,
"column": 12
},
"end": {
"line": 400,
"column": 13
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9715,
"end": 9720,
"loc": {
"start": {
"line": 400,
"column": 14
},
"end": {
"line": 400,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 9723,
"end": 9727,
"loc": {
"start": {
"line": 400,
"column": 22
},
"end": {
"line": 400,
"column": 26
},
"identifierName": "node"
},
"name": "node"
}
}
},
{
"type": "BreakStatement",
"start": 9740,
"end": 9745,
"loc": {
"start": {
"line": 401,
"column": 12
},
"end": {
"line": 401,
"column": 17
}
},
"label": null
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 9763,
"end": 9800,
"loc": {
"start": {
"line": 402,
"column": 17
},
"end": {
"line": 404,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9777,
"end": 9788,
"loc": {
"start": {
"line": 403,
"column": 12
},
"end": {
"line": 403,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9777,
"end": 9788,
"loc": {
"start": {
"line": 403,
"column": 12
},
"end": {
"line": 403,
"column": 23
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 9777,
"end": 9778,
"loc": {
"start": {
"line": 403,
"column": 12
},
"end": {
"line": 403,
"column": 13
},
"identifierName": "p"
},
"name": "p"
},
"right": {
"type": "MemberExpression",
"start": 9781,
"end": 9788,
"loc": {
"start": {
"line": 403,
"column": 16
},
"end": {
"line": 403,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 9781,
"end": 9782,
"loc": {
"start": {
"line": 403,
"column": 16
},
"end": {
"line": 403,
"column": 17
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9783,
"end": 9788,
"loc": {
"start": {
"line": 403,
"column": 18
},
"end": {
"line": 403,
"column": 23
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
}
],
"directives": []
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 9816,
"end": 9873,
"loc": {
"start": {
"line": 405,
"column": 15
},
"end": {
"line": 408,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9828,
"end": 9844,
"loc": {
"start": {
"line": 406,
"column": 10
},
"end": {
"line": 406,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9828,
"end": 9844,
"loc": {
"start": {
"line": 406,
"column": 10
},
"end": {
"line": 406,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 9828,
"end": 9833,
"loc": {
"start": {
"line": 406,
"column": 10
},
"end": {
"line": 406,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 9828,
"end": 9829,
"loc": {
"start": {
"line": 406,
"column": 10
},
"end": {
"line": 406,
"column": 11
},
"identifierName": "p"
},
"name": "p"
},
"property": {
"type": "Identifier",
"start": 9830,
"end": 9833,
"loc": {
"start": {
"line": 406,
"column": 12
},
"end": {
"line": 406,
"column": 15
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 9836,
"end": 9844,
"loc": {
"start": {
"line": 406,
"column": 18
},
"end": {
"line": 406,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 9836,
"end": 9840,
"loc": {
"start": {
"line": 406,
"column": 18
},
"end": {
"line": 406,
"column": 22
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 9841,
"end": 9844,
"loc": {
"start": {
"line": 406,
"column": 23
},
"end": {
"line": 406,
"column": 26
},
"identifierName": "val"
},
"name": "val"
},
"computed": false
}
}
},
{
"type": "ReturnStatement",
"start": 9855,
"end": 9863,
"loc": {
"start": {
"line": 407,
"column": 10
},
"end": {
"line": 407,
"column": 18
}
},
"argument": {
"type": "Identifier",
"start": 9862,
"end": 9863,
"loc": {
"start": {
"line": 407,
"column": 17
},
"end": {
"line": 407,
"column": 18
},
"identifierName": "p"
},
"name": "p"
}
}
],
"directives": []
}
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " p abbrev. parent",
"start": 9392,
"end": 9411,
"loc": {
"start": {
"line": 389,
"column": 24
},
"end": {
"line": 389,
"column": 43
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 9888,
"end": 9909,
"loc": {
"start": {
"line": 410,
"column": 6
},
"end": {
"line": 410,
"column": 27
}
},
"expression": {
"type": "CallExpression",
"start": 9888,
"end": 9909,
"loc": {
"start": {
"line": 410,
"column": 6
},
"end": {
"line": 410,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 9888,
"end": 9903,
"loc": {
"start": {
"line": 410,
"column": 6
},
"end": {
"line": 410,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 9888,
"end": 9892,
"loc": {
"start": {
"line": 410,
"column": 6
},
"end": {
"line": 410,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 9893,
"end": 9903,
"loc": {
"start": {
"line": 410,
"column": 11
},
"end": {
"line": 410,
"column": 21
},
"identifierName": "_fixInsert"
},
"name": "_fixInsert"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 9904,
"end": 9908,
"loc": {
"start": {
"line": 410,
"column": 22
},
"end": {
"line": 410,
"column": 26
},
"identifierName": "node"
},
"name": "node"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 9921,
"end": 9951,
"loc": {
"start": {
"line": 411,
"column": 11
},
"end": {
"line": 413,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 9929,
"end": 9945,
"loc": {
"start": {
"line": 412,
"column": 6
},
"end": {
"line": 412,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 9929,
"end": 9945,
"loc": {
"start": {
"line": 412,
"column": 6
},
"end": {
"line": 412,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 9929,
"end": 9938,
"loc": {
"start": {
"line": 412,
"column": 6
},
"end": {
"line": 412,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 9929,
"end": 9933,
"loc": {
"start": {
"line": 412,
"column": 6
},
"end": {
"line": 412,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 9934,
"end": 9938,
"loc": {
"start": {
"line": 412,
"column": 11
},
"end": {
"line": 412,
"column": 15
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 9941,
"end": 9945,
"loc": {
"start": {
"line": 412,
"column": 18
},
"end": {
"line": 412,
"column": 22
},
"identifierName": "node"
},
"name": "node"
}
}
}
],
"directives": []
}
},
{
"type": "ExpressionStatement",
"start": 9956,
"end": 9969,
"loc": {
"start": {
"line": 414,
"column": 4
},
"end": {
"line": 414,
"column": 17
}
},
"expression": {
"type": "UpdateExpression",
"start": 9956,
"end": 9969,
"loc": {
"start": {
"line": 414,
"column": 4
},
"end": {
"line": 414,
"column": 17
}
},
"operator": "++",
"prefix": false,
"argument": {
"type": "MemberExpression",
"start": 9956,
"end": 9967,
"loc": {
"start": {
"line": 414,
"column": 4
},
"end": {
"line": 414,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 9956,
"end": 9960,
"loc": {
"start": {
"line": 414,
"column": 4
},
"end": {
"line": 414,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 9961,
"end": 9967,
"loc": {
"start": {
"line": 414,
"column": 9
},
"end": {
"line": 414,
"column": 15
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 9974,
"end": 9993,
"loc": {
"start": {
"line": 415,
"column": 4
},
"end": {
"line": 415,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 9974,
"end": 9993,
"loc": {
"start": {
"line": 415,
"column": 4
},
"end": {
"line": 415,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 9974,
"end": 9991,
"loc": {
"start": {
"line": 415,
"column": 4
},
"end": {
"line": 415,
"column": 21
}
},
"object": {
"type": "MemberExpression",
"start": 9974,
"end": 9983,
"loc": {
"start": {
"line": 415,
"column": 4
},
"end": {
"line": 415,
"column": 13
}
},
"object": {
"type": "ThisExpression",
"start": 9974,
"end": 9978,
"loc": {
"start": {
"line": 415,
"column": 4
},
"end": {
"line": 415,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 9979,
"end": 9983,
"loc": {
"start": {
"line": 415,
"column": 9
},
"end": {
"line": 415,
"column": 13
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 9984,
"end": 9991,
"loc": {
"start": {
"line": 415,
"column": 14
},
"end": {
"line": 415,
"column": 21
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ReturnStatement",
"start": 9998,
"end": 10009,
"loc": {
"start": {
"line": 416,
"column": 4
},
"end": {
"line": 416,
"column": 15
}
},
"argument": {
"type": "Identifier",
"start": 10005,
"end": 10009,
"loc": {
"start": {
"line": 416,
"column": 11
},
"end": {
"line": 416,
"column": 15
},
"identifierName": "node"
},
"name": "node"
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 10016,
"end": 11506,
"loc": {
"start": {
"line": 418,
"column": 2
},
"end": {
"line": 464,
"column": 3
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10016,
"end": 10026,
"loc": {
"start": {
"line": 418,
"column": 2
},
"end": {
"line": 418,
"column": 12
},
"identifierName": "_fixInsert"
},
"name": "_fixInsert"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 10028,
"end": 10029,
"loc": {
"start": {
"line": 418,
"column": 14
},
"end": {
"line": 418,
"column": 15
},
"identifierName": "n"
},
"name": "n"
}
],
"body": {
"type": "BlockStatement",
"start": 10031,
"end": 11506,
"loc": {
"start": {
"line": 418,
"column": 17
},
"end": {
"line": 464,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 10037,
"end": 10148,
"loc": {
"start": {
"line": 419,
"column": 4
},
"end": {
"line": 424,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 10041,
"end": 10058,
"loc": {
"start": {
"line": 419,
"column": 8
},
"end": {
"line": 419,
"column": 25
}
},
"left": {
"type": "MemberExpression",
"start": 10041,
"end": 10049,
"loc": {
"start": {
"line": 419,
"column": 8
},
"end": {
"line": 419,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 10041,
"end": 10042,
"loc": {
"start": {
"line": 419,
"column": 8
},
"end": {
"line": 419,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10043,
"end": 10049,
"loc": {
"start": {
"line": 419,
"column": 10
},
"end": {
"line": 419,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NullLiteral",
"start": 10054,
"end": 10058,
"loc": {
"start": {
"line": 419,
"column": 21
},
"end": {
"line": 419,
"column": 25
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 10060,
"end": 10098,
"loc": {
"start": {
"line": 419,
"column": 27
},
"end": {
"line": 422,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 10068,
"end": 10079,
"loc": {
"start": {
"line": 420,
"column": 6
},
"end": {
"line": 420,
"column": 17
}
},
"expression": {
"type": "CallExpression",
"start": 10068,
"end": 10079,
"loc": {
"start": {
"line": 420,
"column": 6
},
"end": {
"line": 420,
"column": 17
}
},
"callee": {
"type": "MemberExpression",
"start": 10068,
"end": 10077,
"loc": {
"start": {
"line": 420,
"column": 6
},
"end": {
"line": 420,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 10068,
"end": 10069,
"loc": {
"start": {
"line": 420,
"column": 6
},
"end": {
"line": 420,
"column": 7
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10070,
"end": 10077,
"loc": {
"start": {
"line": 420,
"column": 8
},
"end": {
"line": 420,
"column": 15
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ReturnStatement",
"start": 10086,
"end": 10092,
"loc": {
"start": {
"line": 421,
"column": 6
},
"end": {
"line": 421,
"column": 12
}
},
"argument": null
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 10104,
"end": 10148,
"loc": {
"start": {
"line": 422,
"column": 11
},
"end": {
"line": 424,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 10108,
"end": 10126,
"loc": {
"start": {
"line": 422,
"column": 15
},
"end": {
"line": 422,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 10108,
"end": 10124,
"loc": {
"start": {
"line": 422,
"column": 15
},
"end": {
"line": 422,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 10108,
"end": 10116,
"loc": {
"start": {
"line": 422,
"column": 15
},
"end": {
"line": 422,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 10108,
"end": 10109,
"loc": {
"start": {
"line": 422,
"column": 15
},
"end": {
"line": 422,
"column": 16
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10110,
"end": 10116,
"loc": {
"start": {
"line": 422,
"column": 17
},
"end": {
"line": 422,
"column": 23
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 10117,
"end": 10124,
"loc": {
"start": {
"line": 422,
"column": 24
},
"end": {
"line": 422,
"column": 31
},
"identifierName": "isBlack"
},
"name": "isBlack"
},
"computed": false
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 10128,
"end": 10148,
"loc": {
"start": {
"line": 422,
"column": 35
},
"end": {
"line": 424,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 10136,
"end": 10142,
"loc": {
"start": {
"line": 423,
"column": 6
},
"end": {
"line": 423,
"column": 12
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
}
},
{
"type": "VariableDeclaration",
"start": 10153,
"end": 10177,
"loc": {
"start": {
"line": 425,
"column": 4
},
"end": {
"line": 425,
"column": 28
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 10157,
"end": 10177,
"loc": {
"start": {
"line": 425,
"column": 8
},
"end": {
"line": 425,
"column": 28
}
},
"id": {
"type": "Identifier",
"start": 10157,
"end": 10162,
"loc": {
"start": {
"line": 425,
"column": 8
},
"end": {
"line": 425,
"column": 13
},
"identifierName": "uncle"
},
"name": "uncle"
},
"init": {
"type": "CallExpression",
"start": 10165,
"end": 10177,
"loc": {
"start": {
"line": 425,
"column": 16
},
"end": {
"line": 425,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 10165,
"end": 10175,
"loc": {
"start": {
"line": 425,
"column": 16
},
"end": {
"line": 425,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 10165,
"end": 10166,
"loc": {
"start": {
"line": 425,
"column": 16
},
"end": {
"line": 425,
"column": 17
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10167,
"end": 10175,
"loc": {
"start": {
"line": 425,
"column": 18
},
"end": {
"line": 425,
"column": 26
},
"identifierName": "getUncle"
},
"name": "getUncle"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "var"
},
{
"type": "IfStatement",
"start": 10182,
"end": 11502,
"loc": {
"start": {
"line": 426,
"column": 4
},
"end": {
"line": 463,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 10186,
"end": 10217,
"loc": {
"start": {
"line": 426,
"column": 8
},
"end": {
"line": 426,
"column": 39
}
},
"left": {
"type": "BinaryExpression",
"start": 10186,
"end": 10200,
"loc": {
"start": {
"line": 426,
"column": 8
},
"end": {
"line": 426,
"column": 22
}
},
"left": {
"type": "Identifier",
"start": 10186,
"end": 10191,
"loc": {
"start": {
"line": 426,
"column": 8
},
"end": {
"line": 426,
"column": 13
},
"identifierName": "uncle"
},
"name": "uncle"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 10196,
"end": 10200,
"loc": {
"start": {
"line": 426,
"column": 18
},
"end": {
"line": 426,
"column": 22
}
}
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 10204,
"end": 10217,
"loc": {
"start": {
"line": 426,
"column": 26
},
"end": {
"line": 426,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 10204,
"end": 10215,
"loc": {
"start": {
"line": 426,
"column": 26
},
"end": {
"line": 426,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 10204,
"end": 10209,
"loc": {
"start": {
"line": 426,
"column": 26
},
"end": {
"line": 426,
"column": 31
},
"identifierName": "uncle"
},
"name": "uncle"
},
"property": {
"type": "Identifier",
"start": 10210,
"end": 10215,
"loc": {
"start": {
"line": 426,
"column": 32
},
"end": {
"line": 426,
"column": 37
},
"identifierName": "isRed"
},
"name": "isRed"
},
"computed": false
},
"arguments": []
}
},
"consequent": {
"type": "BlockStatement",
"start": 10219,
"end": 10378,
"loc": {
"start": {
"line": 426,
"column": 41
},
"end": {
"line": 432,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 10266,
"end": 10284,
"loc": {
"start": {
"line": 428,
"column": 6
},
"end": {
"line": 428,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 10266,
"end": 10284,
"loc": {
"start": {
"line": 428,
"column": 6
},
"end": {
"line": 428,
"column": 24
}
},
"callee": {
"type": "MemberExpression",
"start": 10266,
"end": 10282,
"loc": {
"start": {
"line": 428,
"column": 6
},
"end": {
"line": 428,
"column": 22
}
},
"object": {
"type": "MemberExpression",
"start": 10266,
"end": 10274,
"loc": {
"start": {
"line": 428,
"column": 6
},
"end": {
"line": 428,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 10266,
"end": 10267,
"loc": {
"start": {
"line": 428,
"column": 6
},
"end": {
"line": 428,
"column": 7
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 10268,
"end": 10274,
"loc": {
"start": {
"line": 428,
"column": 8
},
"end": {
"line": 428,
"column": 14
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 10275,
"end": 10282,
"loc": {
"start": {
"line": 428,
"column": 15
},
"end": {
"line": 428,
"column": 22
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Note: parent: red, uncle: red",
"start": 10227,
"end": 10259,
"loc": {
"start": {
"line": 427,
"column": 6
},
"end": {
"line": 427,
"column": 38
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 10291,
"end": 10306,
"loc": {
"start": {
"line": 429,
"column": 6
},
"end": {
"line": 429,
"column": 21
}
},
"expression": {
"type": "CallExpression",
"start": 10291,
"end": 10306,
"loc": {
"start": {
"line": 429,
"column": 6
},
"end": {
"line": 429,
"column": 21
}
},
"callee": {
"type": "MemberExpression",
"start": 10291,
"end": 10304,
"loc": {
"start": {
"line": 429,
"column": 6
},
"end": {
"line": 429,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 10291,
"end": 10296,
"loc": {
"start": {
"line": 429,
"column": 6
},
"end": {
"line": 429,
"column": 11
},
"identifierName": "uncle"
},
"name": "uncle"
},
"property": {
"type": "Identifier",
"start": 10297,
"end": 10304,
"loc": {
"start": {
"line": 429,
"column": 12
},
"end": {
"line": 429,
"column": 19
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 10313,
"end": 10335,
"loc": {
"start": {
"line": 430,
"column": 6
},
"end": {
"line": 430,
"column": 28
}
},
"expression": {
"type": "CallExpression",
"start": 10313,
"end": 10335,
"loc": {
"start": {
"line": 430,
"column": 6
},
"end": {
"line": 430,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 10313,
"end": 10333,
"loc": {
"start": {
"line": 430,
"column": 6
},
"end": {
"line": 430,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 10313,
"end": 10326,
"loc": {
"start": {
"line": 430,
"column": 6
},
"end": {
"line": 430,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 10313,
"end": 10314,
"loc": {
"start": {
"line": 430,
"column": 6
},
"end": {
"line": 430,
"column": 7
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10315,
"end": 10326,
"loc": {
"start": {
"line": 430,
"column": 8
},
"end": {
"line": 430,
"column": 19
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 10327,
"end": 10333,
"loc": {
"start": {
"line": 430,
"column": 20
},
"end": {
"line": 430,
"column": 26
},
"identifierName": "redden"
},
"name": "redden"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 10342,
"end": 10372,
"loc": {
"start": {
"line": 431,
"column": 6
},
"end": {
"line": 431,
"column": 36
}
},
"expression": {
"type": "CallExpression",
"start": 10342,
"end": 10372,
"loc": {
"start": {
"line": 431,
"column": 6
},
"end": {
"line": 431,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 10342,
"end": 10357,
"loc": {
"start": {
"line": 431,
"column": 6
},
"end": {
"line": 431,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 10342,
"end": 10346,
"loc": {
"start": {
"line": 431,
"column": 6
},
"end": {
"line": 431,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 10347,
"end": 10357,
"loc": {
"start": {
"line": 431,
"column": 11
},
"end": {
"line": 431,
"column": 21
},
"identifierName": "_fixInsert"
},
"name": "_fixInsert"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 10358,
"end": 10371,
"loc": {
"start": {
"line": 431,
"column": 22
},
"end": {
"line": 431,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 10358,
"end": 10359,
"loc": {
"start": {
"line": 431,
"column": 22
},
"end": {
"line": 431,
"column": 23
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10360,
"end": 10371,
"loc": {
"start": {
"line": 431,
"column": 24
},
"end": {
"line": 431,
"column": 35
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"computed": false
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 10384,
"end": 11502,
"loc": {
"start": {
"line": 432,
"column": 11
},
"end": {
"line": 463,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 10694,
"end": 11112,
"loc": {
"start": {
"line": 440,
"column": 6
},
"end": {
"line": 450,
"column": 7
}
},
"test": {
"type": "LogicalExpression",
"start": 10698,
"end": 10753,
"loc": {
"start": {
"line": 440,
"column": 10
},
"end": {
"line": 440,
"column": 65
}
},
"left": {
"type": "BinaryExpression",
"start": 10698,
"end": 10718,
"loc": {
"start": {
"line": 440,
"column": 10
},
"end": {
"line": 440,
"column": 30
}
},
"left": {
"type": "Identifier",
"start": 10698,
"end": 10699,
"loc": {
"start": {
"line": 440,
"column": 10
},
"end": {
"line": 440,
"column": 11
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 10704,
"end": 10718,
"loc": {
"start": {
"line": 440,
"column": 16
},
"end": {
"line": 440,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 10704,
"end": 10712,
"loc": {
"start": {
"line": 440,
"column": 16
},
"end": {
"line": 440,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 10704,
"end": 10705,
"loc": {
"start": {
"line": 440,
"column": 16
},
"end": {
"line": 440,
"column": 17
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10706,
"end": 10712,
"loc": {
"start": {
"line": 440,
"column": 18
},
"end": {
"line": 440,
"column": 24
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 10713,
"end": 10718,
"loc": {
"start": {
"line": 440,
"column": 25
},
"end": {
"line": 440,
"column": 30
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"leadingComments": null
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 10722,
"end": 10753,
"loc": {
"start": {
"line": 440,
"column": 34
},
"end": {
"line": 440,
"column": 65
}
},
"left": {
"type": "MemberExpression",
"start": 10722,
"end": 10730,
"loc": {
"start": {
"line": 440,
"column": 34
},
"end": {
"line": 440,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 10722,
"end": 10723,
"loc": {
"start": {
"line": 440,
"column": 34
},
"end": {
"line": 440,
"column": 35
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10724,
"end": 10730,
"loc": {
"start": {
"line": 440,
"column": 36
},
"end": {
"line": 440,
"column": 42
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 10735,
"end": 10753,
"loc": {
"start": {
"line": 440,
"column": 47
},
"end": {
"line": 440,
"column": 65
}
},
"object": {
"type": "MemberExpression",
"start": 10735,
"end": 10748,
"loc": {
"start": {
"line": 440,
"column": 47
},
"end": {
"line": 440,
"column": 60
}
},
"object": {
"type": "Identifier",
"start": 10735,
"end": 10736,
"loc": {
"start": {
"line": 440,
"column": 47
},
"end": {
"line": 440,
"column": 48
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10737,
"end": 10748,
"loc": {
"start": {
"line": 440,
"column": 49
},
"end": {
"line": 440,
"column": 60
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 10749,
"end": 10753,
"loc": {
"start": {
"line": 440,
"column": 61
},
"end": {
"line": 440,
"column": 65
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 10755,
"end": 10960,
"loc": {
"start": {
"line": 440,
"column": 67
},
"end": {
"line": 446,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 10765,
"end": 10790,
"loc": {
"start": {
"line": 441,
"column": 8
},
"end": {
"line": 441,
"column": 33
}
},
"expression": {
"type": "CallExpression",
"start": 10765,
"end": 10790,
"loc": {
"start": {
"line": 441,
"column": 8
},
"end": {
"line": 441,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 10765,
"end": 10784,
"loc": {
"start": {
"line": 441,
"column": 8
},
"end": {
"line": 441,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 10765,
"end": 10773,
"loc": {
"start": {
"line": 441,
"column": 8
},
"end": {
"line": 441,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 10765,
"end": 10766,
"loc": {
"start": {
"line": 441,
"column": 8
},
"end": {
"line": 441,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10767,
"end": 10773,
"loc": {
"start": {
"line": 441,
"column": 10
},
"end": {
"line": 441,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 10774,
"end": 10784,
"loc": {
"start": {
"line": 441,
"column": 17
},
"end": {
"line": 441,
"column": 27
},
"identifierName": "rotateLeft"
},
"name": "rotateLeft"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 10785,
"end": 10789,
"loc": {
"start": {
"line": 441,
"column": 28
},
"end": {
"line": 441,
"column": 32
}
}
}
],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Since we rotated and want to use the previous",
"start": 10799,
"end": 10847,
"loc": {
"start": {
"line": 442,
"column": 8
},
"end": {
"line": 442,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " cases, we need to set n in such a way that",
"start": 10856,
"end": 10901,
"loc": {
"start": {
"line": 443,
"column": 8
},
"end": {
"line": 443,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " n.parent.isRed again",
"start": 10910,
"end": 10933,
"loc": {
"start": {
"line": 444,
"column": 8
},
"end": {
"line": 444,
"column": 31
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 10942,
"end": 10952,
"loc": {
"start": {
"line": 445,
"column": 8
},
"end": {
"line": 445,
"column": 18
}
},
"expression": {
"type": "AssignmentExpression",
"start": 10942,
"end": 10952,
"loc": {
"start": {
"line": 445,
"column": 8
},
"end": {
"line": 445,
"column": 18
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 10942,
"end": 10943,
"loc": {
"start": {
"line": 445,
"column": 8
},
"end": {
"line": 445,
"column": 9
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 10946,
"end": 10952,
"loc": {
"start": {
"line": 445,
"column": 12
},
"end": {
"line": 445,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 10946,
"end": 10947,
"loc": {
"start": {
"line": 445,
"column": 12
},
"end": {
"line": 445,
"column": 13
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10948,
"end": 10952,
"loc": {
"start": {
"line": 445,
"column": 14
},
"end": {
"line": 445,
"column": 18
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Since we rotated and want to use the previous",
"start": 10799,
"end": 10847,
"loc": {
"start": {
"line": 442,
"column": 8
},
"end": {
"line": 442,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " cases, we need to set n in such a way that",
"start": 10856,
"end": 10901,
"loc": {
"start": {
"line": 443,
"column": 8
},
"end": {
"line": 443,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " n.parent.isRed again",
"start": 10910,
"end": 10933,
"loc": {
"start": {
"line": 444,
"column": 8
},
"end": {
"line": 444,
"column": 31
}
}
}
]
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 10966,
"end": 11112,
"loc": {
"start": {
"line": 446,
"column": 13
},
"end": {
"line": 450,
"column": 7
}
},
"test": {
"type": "LogicalExpression",
"start": 10970,
"end": 11025,
"loc": {
"start": {
"line": 446,
"column": 17
},
"end": {
"line": 446,
"column": 72
}
},
"left": {
"type": "BinaryExpression",
"start": 10970,
"end": 10989,
"loc": {
"start": {
"line": 446,
"column": 17
},
"end": {
"line": 446,
"column": 36
}
},
"left": {
"type": "Identifier",
"start": 10970,
"end": 10971,
"loc": {
"start": {
"line": 446,
"column": 17
},
"end": {
"line": 446,
"column": 18
},
"identifierName": "n"
},
"name": "n"
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 10976,
"end": 10989,
"loc": {
"start": {
"line": 446,
"column": 23
},
"end": {
"line": 446,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 10976,
"end": 10984,
"loc": {
"start": {
"line": 446,
"column": 23
},
"end": {
"line": 446,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 10976,
"end": 10977,
"loc": {
"start": {
"line": 446,
"column": 23
},
"end": {
"line": 446,
"column": 24
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10978,
"end": 10984,
"loc": {
"start": {
"line": 446,
"column": 25
},
"end": {
"line": 446,
"column": 31
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 10985,
"end": 10989,
"loc": {
"start": {
"line": 446,
"column": 32
},
"end": {
"line": 446,
"column": 36
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 10993,
"end": 11025,
"loc": {
"start": {
"line": 446,
"column": 40
},
"end": {
"line": 446,
"column": 72
}
},
"left": {
"type": "MemberExpression",
"start": 10993,
"end": 11001,
"loc": {
"start": {
"line": 446,
"column": 40
},
"end": {
"line": 446,
"column": 48
}
},
"object": {
"type": "Identifier",
"start": 10993,
"end": 10994,
"loc": {
"start": {
"line": 446,
"column": 40
},
"end": {
"line": 446,
"column": 41
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 10995,
"end": 11001,
"loc": {
"start": {
"line": 446,
"column": 42
},
"end": {
"line": 446,
"column": 48
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 11006,
"end": 11025,
"loc": {
"start": {
"line": 446,
"column": 53
},
"end": {
"line": 446,
"column": 72
}
},
"object": {
"type": "MemberExpression",
"start": 11006,
"end": 11019,
"loc": {
"start": {
"line": 446,
"column": 53
},
"end": {
"line": 446,
"column": 66
}
},
"object": {
"type": "Identifier",
"start": 11006,
"end": 11007,
"loc": {
"start": {
"line": 446,
"column": 53
},
"end": {
"line": 446,
"column": 54
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 11008,
"end": 11019,
"loc": {
"start": {
"line": 446,
"column": 55
},
"end": {
"line": 446,
"column": 66
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 11020,
"end": 11025,
"loc": {
"start": {
"line": 446,
"column": 67
},
"end": {
"line": 446,
"column": 72
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 11027,
"end": 11112,
"loc": {
"start": {
"line": 446,
"column": 74
},
"end": {
"line": 450,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 11037,
"end": 11063,
"loc": {
"start": {
"line": 447,
"column": 8
},
"end": {
"line": 447,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 11037,
"end": 11063,
"loc": {
"start": {
"line": 447,
"column": 8
},
"end": {
"line": 447,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 11037,
"end": 11057,
"loc": {
"start": {
"line": 447,
"column": 8
},
"end": {
"line": 447,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 11037,
"end": 11045,
"loc": {
"start": {
"line": 447,
"column": 8
},
"end": {
"line": 447,
"column": 16
}
},
"object": {
"type": "Identifier",
"start": 11037,
"end": 11038,
"loc": {
"start": {
"line": 447,
"column": 8
},
"end": {
"line": 447,
"column": 9
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 11039,
"end": 11045,
"loc": {
"start": {
"line": 447,
"column": 10
},
"end": {
"line": 447,
"column": 16
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 11046,
"end": 11057,
"loc": {
"start": {
"line": 447,
"column": 17
},
"end": {
"line": 447,
"column": 28
},
"identifierName": "rotateRight"
},
"name": "rotateRight"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 11058,
"end": 11062,
"loc": {
"start": {
"line": 447,
"column": 29
},
"end": {
"line": 447,
"column": 33
}
}
}
],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": " see above",
"start": 11072,
"end": 11084,
"loc": {
"start": {
"line": 448,
"column": 8
},
"end": {
"line": 448,
"column": 20
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 11093,
"end": 11104,
"loc": {
"start": {
"line": 449,
"column": 8
},
"end": {
"line": 449,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 11093,
"end": 11104,
"loc": {
"start": {
"line": 449,
"column": 8
},
"end": {
"line": 449,
"column": 19
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 11093,
"end": 11094,
"loc": {
"start": {
"line": 449,
"column": 8
},
"end": {
"line": 449,
"column": 9
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 11097,
"end": 11104,
"loc": {
"start": {
"line": 449,
"column": 12
},
"end": {
"line": 449,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 11097,
"end": 11098,
"loc": {
"start": {
"line": 449,
"column": 12
},
"end": {
"line": 449,
"column": 13
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 11099,
"end": 11104,
"loc": {
"start": {
"line": 449,
"column": 14
},
"end": {
"line": 449,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " see above",
"start": 11072,
"end": 11084,
"loc": {
"start": {
"line": 448,
"column": 8
},
"end": {
"line": 448,
"column": 20
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Note: parent: red, uncle: black or null",
"start": 10392,
"end": 10434,
"loc": {
"start": {
"line": 433,
"column": 6
},
"end": {
"line": 433,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " Now we transform the tree in such a way that",
"start": 10441,
"end": 10488,
"loc": {
"start": {
"line": 434,
"column": 6
},
"end": {
"line": 434,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " either of these holds:",
"start": 10495,
"end": 10520,
"loc": {
"start": {
"line": 435,
"column": 6
},
"end": {
"line": 435,
"column": 31
}
}
},
{
"type": "CommentLine",
"value": " 1) grandparent.left.isRed",
"start": 10527,
"end": 10557,
"loc": {
"start": {
"line": 436,
"column": 6
},
"end": {
"line": 436,
"column": 36
}
}
},
{
"type": "CommentLine",
"value": " and grandparent.left.left.isRed",
"start": 10564,
"end": 10602,
"loc": {
"start": {
"line": 437,
"column": 6
},
"end": {
"line": 437,
"column": 44
}
}
},
{
"type": "CommentLine",
"value": " 2) grandparent.right.isRed",
"start": 10609,
"end": 10640,
"loc": {
"start": {
"line": 438,
"column": 6
},
"end": {
"line": 438,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " and grandparent.right.right.isRed",
"start": 10647,
"end": 10687,
"loc": {
"start": {
"line": 439,
"column": 6
},
"end": {
"line": 439,
"column": 46
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Case 1) or 2) hold from here on.",
"start": 11119,
"end": 11154,
"loc": {
"start": {
"line": 451,
"column": 6
},
"end": {
"line": 451,
"column": 41
}
}
},
{
"type": "CommentLine",
"value": " Now traverse grandparent, make parent a black node",
"start": 11161,
"end": 11214,
"loc": {
"start": {
"line": 452,
"column": 6
},
"end": {
"line": 452,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " on the highest level which holds two red nodes.",
"start": 11221,
"end": 11271,
"loc": {
"start": {
"line": 453,
"column": 6
},
"end": {
"line": 453,
"column": 56
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 11278,
"end": 11296,
"loc": {
"start": {
"line": 454,
"column": 6
},
"end": {
"line": 454,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 11278,
"end": 11296,
"loc": {
"start": {
"line": 454,
"column": 6
},
"end": {
"line": 454,
"column": 24
}
},
"callee": {
"type": "MemberExpression",
"start": 11278,
"end": 11294,
"loc": {
"start": {
"line": 454,
"column": 6
},
"end": {
"line": 454,
"column": 22
}
},
"object": {
"type": "MemberExpression",
"start": 11278,
"end": 11286,
"loc": {
"start": {
"line": 454,
"column": 6
},
"end": {
"line": 454,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 11278,
"end": 11279,
"loc": {
"start": {
"line": 454,
"column": 6
},
"end": {
"line": 454,
"column": 7
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 11280,
"end": 11286,
"loc": {
"start": {
"line": 454,
"column": 8
},
"end": {
"line": 454,
"column": 14
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 11287,
"end": 11294,
"loc": {
"start": {
"line": 454,
"column": 15
},
"end": {
"line": 454,
"column": 22
},
"identifierName": "blacken"
},
"name": "blacken"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Case 1) or 2) hold from here on.",
"start": 11119,
"end": 11154,
"loc": {
"start": {
"line": 451,
"column": 6
},
"end": {
"line": 451,
"column": 41
}
}
},
{
"type": "CommentLine",
"value": " Now traverse grandparent, make parent a black node",
"start": 11161,
"end": 11214,
"loc": {
"start": {
"line": 452,
"column": 6
},
"end": {
"line": 452,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " on the highest level which holds two red nodes.",
"start": 11221,
"end": 11271,
"loc": {
"start": {
"line": 453,
"column": 6
},
"end": {
"line": 453,
"column": 56
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 11303,
"end": 11325,
"loc": {
"start": {
"line": 455,
"column": 6
},
"end": {
"line": 455,
"column": 28
}
},
"expression": {
"type": "CallExpression",
"start": 11303,
"end": 11325,
"loc": {
"start": {
"line": 455,
"column": 6
},
"end": {
"line": 455,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 11303,
"end": 11323,
"loc": {
"start": {
"line": 455,
"column": 6
},
"end": {
"line": 455,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 11303,
"end": 11316,
"loc": {
"start": {
"line": 455,
"column": 6
},
"end": {
"line": 455,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 11303,
"end": 11304,
"loc": {
"start": {
"line": 455,
"column": 6
},
"end": {
"line": 455,
"column": 7
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 11305,
"end": 11316,
"loc": {
"start": {
"line": 455,
"column": 8
},
"end": {
"line": 455,
"column": 19
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 11317,
"end": 11323,
"loc": {
"start": {
"line": 455,
"column": 20
},
"end": {
"line": 455,
"column": 26
},
"identifierName": "redden"
},
"name": "redden"
},
"computed": false
},
"arguments": []
}
},
{
"type": "IfStatement",
"start": 11332,
"end": 11496,
"loc": {
"start": {
"line": 456,
"column": 6
},
"end": {
"line": 462,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 11336,
"end": 11355,
"loc": {
"start": {
"line": 456,
"column": 10
},
"end": {
"line": 456,
"column": 29
}
},
"left": {
"type": "Identifier",
"start": 11336,
"end": 11337,
"loc": {
"start": {
"line": 456,
"column": 10
},
"end": {
"line": 456,
"column": 11
},
"identifierName": "n"
},
"name": "n"
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start": 11342,
"end": 11355,
"loc": {
"start": {
"line": 456,
"column": 16
},
"end": {
"line": 456,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 11342,
"end": 11350,
"loc": {
"start": {
"line": 456,
"column": 16
},
"end": {
"line": 456,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 11342,
"end": 11343,
"loc": {
"start": {
"line": 456,
"column": 16
},
"end": {
"line": 456,
"column": 17
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 11344,
"end": 11350,
"loc": {
"start": {
"line": 456,
"column": 18
},
"end": {
"line": 456,
"column": 24
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 11351,
"end": 11355,
"loc": {
"start": {
"line": 456,
"column": 25
},
"end": {
"line": 456,
"column": 29
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 11357,
"end": 11424,
"loc": {
"start": {
"line": 456,
"column": 31
},
"end": {
"line": 459,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 11385,
"end": 11416,
"loc": {
"start": {
"line": 458,
"column": 8
},
"end": {
"line": 458,
"column": 39
}
},
"expression": {
"type": "CallExpression",
"start": 11385,
"end": 11416,
"loc": {
"start": {
"line": 458,
"column": 8
},
"end": {
"line": 458,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 11385,
"end": 11410,
"loc": {
"start": {
"line": 458,
"column": 8
},
"end": {
"line": 458,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 11385,
"end": 11398,
"loc": {
"start": {
"line": 458,
"column": 8
},
"end": {
"line": 458,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 11385,
"end": 11386,
"loc": {
"start": {
"line": 458,
"column": 8
},
"end": {
"line": 458,
"column": 9
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 11387,
"end": 11398,
"loc": {
"start": {
"line": 458,
"column": 10
},
"end": {
"line": 458,
"column": 21
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 11399,
"end": 11410,
"loc": {
"start": {
"line": 458,
"column": 22
},
"end": {
"line": 458,
"column": 33
},
"identifierName": "rotateRight"
},
"name": "rotateRight"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "ThisExpression",
"start": 11411,
"end": 11415,
"loc": {
"start": {
"line": 458,
"column": 34
},
"end": {
"line": 458,
"column": 38
}
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Case 1",
"start": 11367,
"end": 11376,
"loc": {
"start": {
"line": 457,
"column": 8
},
"end": {
"line": 457,
"column": 17
}
}
}
]
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 11430,
"end": 11496,
"loc": {
"start": {
"line": 459,
"column": 13
},
"end": {
"line": 462,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 11458,
"end": 11488,
"loc": {
"start": {
"line": 461,
"column": 8
},
"end": {
"line": 461,
"column": 38
}
},
"expression": {
"type": "CallExpression",
"start": 11458,
"end": 11488,
"loc": {
"start": {
"line": 461,
"column": 8
},
"end": {
"line": 461,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 11458,
"end": 11482,
"loc": {
"start": {
"line": 461,
"column": 8
},
"end": {
"line": 461,
"column": 32
}
},
"object": {
"type": "MemberExpression",
"start": 11458,
"end": 11471,
"loc": {
"start": {
"line": 461,
"column": 8
},
"end": {
"line": 461,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 11458,
"end": 11459,
"loc": {
"start": {
"line": 461,
"column": 8
},
"end": {
"line": 461,
"column": 9
},
"identifierName": "n"
},
"name": "n",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 11460,
"end": 11471,
"loc": {
"start": {
"line": 461,
"column": 10
},
"end": {
"line": 461,
"column": 21
},
"identifierName": "grandparent"
},
"name": "grandparent"
},
"computed": false,
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 11472,
"end": 11482,
"loc": {
"start": {
"line": 461,
"column": 22
},
"end": {
"line": 461,
"column": 32
},
"identifierName": "rotateLeft"
},
"name": "rotateLeft"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "ThisExpression",
"start": 11483,
"end": 11487,
"loc": {
"start": {
"line": 461,
"column": 33
},
"end": {
"line": 461,
"column": 37
}
}
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Case 2",
"start": 11440,
"end": 11449,
"loc": {
"start": {
"line": 460,
"column": 8
},
"end": {
"line": 460,
"column": 17
}
}
}
]
}
],
"directives": []
}
}
],
"directives": []
}
}
],
"directives": []
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "\n * This is a Red Black Tree implementation\n ",
"start": 2522,
"end": 2571,
"loc": {
"start": {
"line": 114,
"column": 0
},
"end": {
"line": 116,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "\n * This is a Red Black Tree implementation\n ",
"start": 2522,
"end": 2571,
"loc": {
"start": {
"line": 114,
"column": 0
},
"end": {
"line": 116,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentLine",
"value": " A created node is always red!",
"start": 343,
"end": 375,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " search the most left node in the right tree",
"start": 1427,
"end": 1473,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 52
}
}
},
{
"type": "CommentLine",
"value": " search the most right node in the left tree",
"start": 1771,
"end": 1817,
"loc": {
"start": {
"line": 82,
"column": 6
},
"end": {
"line": 82,
"column": 52
}
}
},
{
"type": "CommentLine",
"value": " we can assume that grandparent exists when this is called!",
"start": 2308,
"end": 2369,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 65
}
}
},
{
"type": "CommentBlock",
"value": "\n * This is a Red Black Tree implementation\n ",
"start": 2522,
"end": 2571,
"loc": {
"start": {
"line": 114,
"column": 0
},
"end": {
"line": 116,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": " o is included in the bound",
"start": 3112,
"end": 3141,
"loc": {
"start": {
"line": 139,
"column": 10
},
"end": {
"line": 139,
"column": 39
}
}
},
{
"type": "CommentLine",
"value": " try to find an element that is closer to the bound",
"start": 3152,
"end": 3205,
"loc": {
"start": {
"line": 140,
"column": 10
},
"end": {
"line": 140,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " o is not within the bound, maybe one of the right elements is..",
"start": 3301,
"end": 3367,
"loc": {
"start": {
"line": 143,
"column": 10
},
"end": {
"line": 143,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " there is no right element. Search for the next bigger element,",
"start": 3457,
"end": 3522,
"loc": {
"start": {
"line": 147,
"column": 12
},
"end": {
"line": 147,
"column": 77
}
}
},
{
"type": "CommentLine",
"value": " this should be within the bounds",
"start": 3535,
"end": 3570,
"loc": {
"start": {
"line": 148,
"column": 12
},
"end": {
"line": 148,
"column": 47
}
}
},
{
"type": "CommentLine",
"value": " o is included in the bound",
"start": 3966,
"end": 3995,
"loc": {
"start": {
"line": 167,
"column": 10
},
"end": {
"line": 167,
"column": 39
}
}
},
{
"type": "CommentLine",
"value": " try to find an element that is closer to the bound",
"start": 4006,
"end": 4059,
"loc": {
"start": {
"line": 168,
"column": 10
},
"end": {
"line": 168,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " o is not within the bound, maybe one of the left elements is..",
"start": 4152,
"end": 4217,
"loc": {
"start": {
"line": 171,
"column": 10
},
"end": {
"line": 171,
"column": 75
}
}
},
{
"type": "CommentLine",
"value": " there is no left element. Search for the prev smaller element,",
"start": 4305,
"end": 4370,
"loc": {
"start": {
"line": 175,
"column": 12
},
"end": {
"line": 175,
"column": 77
}
}
},
{
"type": "CommentLine",
"value": " this should be within the bounds",
"start": 4383,
"end": 4418,
"loc": {
"start": {
"line": 176,
"column": 12
},
"end": {
"line": 176,
"column": 47
}
}
},
{
"type": "CommentLine",
"value": " eslint-disable-line no-unmodified-loop-condition",
"start": 5100,
"end": 5151,
"loc": {
"start": {
"line": 210,
"column": 23
},
"end": {
"line": 210,
"column": 74
}
}
},
{
"type": "CommentLine",
"value": " throw new Error('Element does not exist!')",
"start": 5836,
"end": 5881,
"loc": {
"start": {
"line": 249,
"column": 6
},
"end": {
"line": 249,
"column": 51
}
}
},
{
"type": "CommentLine",
"value": " switch d with the greates element in the left subtree.",
"start": 5972,
"end": 6029,
"loc": {
"start": {
"line": 254,
"column": 6
},
"end": {
"line": 254,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " o should have at most one child.",
"start": 6036,
"end": 6071,
"loc": {
"start": {
"line": 255,
"column": 6
},
"end": {
"line": 255,
"column": 41
}
}
},
{
"type": "CommentLine",
"value": " find",
"start": 6099,
"end": 6106,
"loc": {
"start": {
"line": 257,
"column": 6
},
"end": {
"line": 257,
"column": 13
}
}
},
{
"type": "CommentLine",
"value": " switch",
"start": 6174,
"end": 6183,
"loc": {
"start": {
"line": 261,
"column": 6
},
"end": {
"line": 261,
"column": 15
}
}
},
{
"type": "CommentLine",
"value": " d has at most one child",
"start": 6226,
"end": 6252,
"loc": {
"start": {
"line": 265,
"column": 4
},
"end": {
"line": 265,
"column": 30
}
}
},
{
"type": "CommentLine",
"value": " let n be the node that replaces d",
"start": 6257,
"end": 6293,
"loc": {
"start": {
"line": 266,
"column": 4
},
"end": {
"line": 266,
"column": 40
}
}
},
{
"type": "CommentLine",
"value": " this can only be called after the first iteration of fixDelete.",
"start": 7537,
"end": 7603,
"loc": {
"start": {
"line": 320,
"column": 6
},
"end": {
"line": 320,
"column": 72
}
}
},
{
"type": "CommentLine",
"value": " d was already replaced by the child",
"start": 7627,
"end": 7665,
"loc": {
"start": {
"line": 323,
"column": 4
},
"end": {
"line": 323,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " d is not the root",
"start": 7670,
"end": 7690,
"loc": {
"start": {
"line": 324,
"column": 4
},
"end": {
"line": 324,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " d and child are black",
"start": 7695,
"end": 7719,
"loc": {
"start": {
"line": 325,
"column": 4
},
"end": {
"line": 325,
"column": 28
}
}
},
{
"type": "CommentLine",
"value": " make sibling the grandfather",
"start": 7780,
"end": 7811,
"loc": {
"start": {
"line": 328,
"column": 6
},
"end": {
"line": 328,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " parent, sibling, and children of n are black",
"start": 8103,
"end": 8150,
"loc": {
"start": {
"line": 340,
"column": 4
},
"end": {
"line": 340,
"column": 51
}
}
},
{
"type": "CommentLine",
"value": " p abbrev. parent",
"start": 9392,
"end": 9411,
"loc": {
"start": {
"line": 389,
"column": 24
},
"end": {
"line": 389,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " Note: parent: red, uncle: red",
"start": 10227,
"end": 10259,
"loc": {
"start": {
"line": 427,
"column": 6
},
"end": {
"line": 427,
"column": 38
}
}
},
{
"type": "CommentLine",
"value": " Note: parent: red, uncle: black or null",
"start": 10392,
"end": 10434,
"loc": {
"start": {
"line": 433,
"column": 6
},
"end": {
"line": 433,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " Now we transform the tree in such a way that",
"start": 10441,
"end": 10488,
"loc": {
"start": {
"line": 434,
"column": 6
},
"end": {
"line": 434,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " either of these holds:",
"start": 10495,
"end": 10520,
"loc": {
"start": {
"line": 435,
"column": 6
},
"end": {
"line": 435,
"column": 31
}
}
},
{
"type": "CommentLine",
"value": " 1) grandparent.left.isRed",
"start": 10527,
"end": 10557,
"loc": {
"start": {
"line": 436,
"column": 6
},
"end": {
"line": 436,
"column": 36
}
}
},
{
"type": "CommentLine",
"value": " and grandparent.left.left.isRed",
"start": 10564,
"end": 10602,
"loc": {
"start": {
"line": 437,
"column": 6
},
"end": {
"line": 437,
"column": 44
}
}
},
{
"type": "CommentLine",
"value": " 2) grandparent.right.isRed",
"start": 10609,
"end": 10640,
"loc": {
"start": {
"line": 438,
"column": 6
},
"end": {
"line": 438,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " and grandparent.right.right.isRed",
"start": 10647,
"end": 10687,
"loc": {
"start": {
"line": 439,
"column": 6
},
"end": {
"line": 439,
"column": 46
}
}
},
{
"type": "CommentLine",
"value": " Since we rotated and want to use the previous",
"start": 10799,
"end": 10847,
"loc": {
"start": {
"line": 442,
"column": 8
},
"end": {
"line": 442,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " cases, we need to set n in such a way that",
"start": 10856,
"end": 10901,
"loc": {
"start": {
"line": 443,
"column": 8
},
"end": {
"line": 443,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " n.parent.isRed again",
"start": 10910,
"end": 10933,
"loc": {
"start": {
"line": 444,
"column": 8
},
"end": {
"line": 444,
"column": 31
}
}
},
{
"type": "CommentLine",
"value": " see above",
"start": 11072,
"end": 11084,
"loc": {
"start": {
"line": 448,
"column": 8
},
"end": {
"line": 448,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " Case 1) or 2) hold from here on.",
"start": 11119,
"end": 11154,
"loc": {
"start": {
"line": 451,
"column": 6
},
"end": {
"line": 451,
"column": 41
}
}
},
{
"type": "CommentLine",
"value": " Now traverse grandparent, make parent a black node",
"start": 11161,
"end": 11214,
"loc": {
"start": {
"line": 452,
"column": 6
},
"end": {
"line": 452,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " on the highest level which holds two red nodes.",
"start": 11221,
"end": 11271,
"loc": {
"start": {
"line": 453,
"column": 6
},
"end": {
"line": 453,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " Case 1",
"start": 11367,
"end": 11376,
"loc": {
"start": {
"line": 457,
"column": 8
},
"end": {
"line": 457,
"column": 17
}
}
},
{
"type": "CommentLine",
"value": " Case 2",
"start": 11440,
"end": 11449,
"loc": {
"start": {
"line": 460,
"column": 8
},
"end": {
"line": 460,
"column": 17
}
}
}
],
"tokens": [
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 1,
"end": 9,
"loc": {
"start": {
"line": 2,
"column": 0
},
"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": "rotate",
"start": 10,
"end": 16,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 17,
"end": 18,
"loc": {
"start": {
"line": 2,
"column": 16
},
"end": {
"line": 2,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tree",
"start": 18,
"end": 22,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 21
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 22,
"end": 23,
"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": "parent",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 30,
"end": 31,
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 32,
"end": 41,
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 40
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 41,
"end": 42,
"loc": {
"start": {
"line": 2,
"column": 40
},
"end": {
"line": 2,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 43,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 42
},
"end": {
"line": 2,
"column": 43
}
}
},
{
"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": 43
},
"end": {
"line": 2,
"column": 44
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 46,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 45
},
"end": {
"line": 2,
"column": 46
}
}
},
{
"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": 50,
"end": 52,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 4
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 53,
"end": 54,
"loc": {
"start": {
"line": 3,
"column": 5
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 54,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 61,
"end": 64,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 16
}
}
},
{
"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": 65,
"end": 69,
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 69,
"end": 70,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 71,
"end": 72,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tree",
"start": 77,
"end": 81,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 81,
"end": 82,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 82,
"end": 86,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 87,
"end": 88,
"loc": {
"start": {
"line": 4,
"column": 14
},
"end": {
"line": 4,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 89,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 103,
"end": 112,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 112,
"end": 113,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_parent",
"start": 113,
"end": 120,
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 121,
"end": 122,
"loc": {
"start": {
"line": 5,
"column": 22
},
"end": {
"line": 5,
"column": 23
}
}
},
{
"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": 123,
"end": 127,
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 130,
"end": 131,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 6,
"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": 132,
"end": 136,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"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": 137,
"end": 139,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 140,
"end": 141,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 141,
"end": 147,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 147,
"end": 148,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 148,
"end": 152,
"loc": {
"start": {
"line": 6,
"column": 20
},
"end": {
"line": 6,
"column": 24
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 153,
"end": 156,
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 157,
"end": 158,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 158,
"end": 159,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 160,
"end": 161,
"loc": {
"start": {
"line": 6,
"column": 32
},
"end": {
"line": 6,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 166,
"end": 172,
"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": 172,
"end": 173,
"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": "left",
"start": 173,
"end": 177,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 7,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 178,
"end": 179,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 180,
"end": 189,
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 192,
"end": 193,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 8,
"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": 194,
"end": 198,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"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": 199,
"end": 201,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 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": "parent",
"start": 203,
"end": 209,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 209,
"end": 210,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 210,
"end": 215,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 25
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 216,
"end": 219,
"loc": {
"start": {
"line": 8,
"column": 26
},
"end": {
"line": 8,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 220,
"end": 221,
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 8,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 221,
"end": 222,
"loc": {
"start": {
"line": 8,
"column": 31
},
"end": {
"line": 8,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 223,
"end": 224,
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 8,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 229,
"end": 235,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 235,
"end": 236,
"loc": {
"start": {
"line": 9,
"column": 10
},
"end": {
"line": 9,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 236,
"end": 241,
"loc": {
"start": {
"line": 9,
"column": 11
},
"end": {
"line": 9,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 242,
"end": 243,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 244,
"end": 253,
"loc": {
"start": {
"line": 9,
"column": 19
},
"end": {
"line": 9,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 256,
"end": 257,
"loc": {
"start": {
"line": 10,
"column": 2
},
"end": {
"line": 10,
"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": 258,
"end": 262,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 8
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 263,
"end": 264,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 10
}
}
},
{
"type": {
"label": "throw",
"keyword": "throw",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "throw",
"start": 269,
"end": 274,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 9
}
}
},
{
"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": 275,
"end": 278,
"loc": {
"start": {
"line": 11,
"column": 10
},
"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": "Error",
"start": 279,
"end": 284,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 284,
"end": 285,
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 20
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "The elements are wrongly connected!",
"start": 285,
"end": 322,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 57
}
}
},
{
"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": 11,
"column": 57
},
"end": {
"line": 11,
"column": 58
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 326,
"end": 327,
"loc": {
"start": {
"line": 12,
"column": 2
},
"end": {
"line": 12,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 328,
"end": 329,
"loc": {
"start": {
"line": 13,
"column": 0
},
"end": {
"line": 13,
"column": 1
}
}
},
{
"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": 331,
"end": 336,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 15,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "N",
"start": 337,
"end": 338,
"loc": {
"start": {
"line": 15,
"column": 6
},
"end": {
"line": 15,
"column": 7
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 339,
"end": 340,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " A created node is always red!",
"start": 343,
"end": 375,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 378,
"end": 389,
"loc": {
"start": {
"line": 17,
"column": 2
},
"end": {
"line": 17,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 390,
"end": 391,
"loc": {
"start": {
"line": 17,
"column": 14
},
"end": {
"line": 17,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 391,
"end": 394,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 394,
"end": 395,
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 396,
"end": 397,
"loc": {
"start": {
"line": 17,
"column": 20
},
"end": {
"line": 17,
"column": 21
}
}
},
{
"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": 402,
"end": 406,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 406,
"end": 407,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 407,
"end": 410,
"loc": {
"start": {
"line": 18,
"column": 9
},
"end": {
"line": 18,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 411,
"end": 412,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 413,
"end": 416,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 18
}
}
},
{
"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": 421,
"end": 425,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 425,
"end": 426,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 426,
"end": 431,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 432,
"end": 433,
"loc": {
"start": {
"line": 19,
"column": 15
},
"end": {
"line": 19,
"column": 16
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 434,
"end": 438,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 21
}
}
},
{
"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": 443,
"end": 447,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 447,
"end": 448,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_left",
"start": 448,
"end": 453,
"loc": {
"start": {
"line": 20,
"column": 9
},
"end": {
"line": 20,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 454,
"end": 455,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 16
}
}
},
{
"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": 456,
"end": 460,
"loc": {
"start": {
"line": 20,
"column": 17
},
"end": {
"line": 20,
"column": 21
}
}
},
{
"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": 465,
"end": 469,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 469,
"end": 470,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_right",
"start": 470,
"end": 476,
"loc": {
"start": {
"line": 21,
"column": 9
},
"end": {
"line": 21,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 477,
"end": 478,
"loc": {
"start": {
"line": 21,
"column": 16
},
"end": {
"line": 21,
"column": 17
}
}
},
{
"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": 479,
"end": 483,
"loc": {
"start": {
"line": 21,
"column": 18
},
"end": {
"line": 21,
"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": 488,
"end": 492,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 492,
"end": 493,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_parent",
"start": 493,
"end": 500,
"loc": {
"start": {
"line": 22,
"column": 9
},
"end": {
"line": 22,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 501,
"end": 502,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 18
}
}
},
{
"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": 503,
"end": 507,
"loc": {
"start": {
"line": 22,
"column": 19
},
"end": {
"line": 22,
"column": 23
}
}
},
{
"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": 23,
"column": 2
},
"end": {
"line": 23,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 514,
"end": 519,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 7
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 520,
"end": 521,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 521,
"end": 522,
"loc": {
"start": {
"line": 24,
"column": 9
},
"end": {
"line": 24,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 523,
"end": 524,
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 24,
"column": 12
}
}
},
{
"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": 525,
"end": 531,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 19
}
}
},
{
"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": 532,
"end": 536,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 536,
"end": 537,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 537,
"end": 542,
"loc": {
"start": {
"line": 24,
"column": 25
},
"end": {
"line": 24,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 543,
"end": 544,
"loc": {
"start": {
"line": 24,
"column": 31
},
"end": {
"line": 24,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 547,
"end": 554,
"loc": {
"start": {
"line": 25,
"column": 2
},
"end": {
"line": 25,
"column": 9
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 555,
"end": 556,
"loc": {
"start": {
"line": 25,
"column": 10
},
"end": {
"line": 25,
"column": 11
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 556,
"end": 557,
"loc": {
"start": {
"line": 25,
"column": 11
},
"end": {
"line": 25,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 558,
"end": 559,
"loc": {
"start": {
"line": 25,
"column": 13
},
"end": {
"line": 25,
"column": 14
}
}
},
{
"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": 560,
"end": 566,
"loc": {
"start": {
"line": 25,
"column": 15
},
"end": {
"line": 25,
"column": 21
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 567,
"end": 568,
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 568,
"end": 572,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 572,
"end": 573,
"loc": {
"start": {
"line": 25,
"column": 27
},
"end": {
"line": 25,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 573,
"end": 578,
"loc": {
"start": {
"line": 25,
"column": 28
},
"end": {
"line": 25,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 579,
"end": 580,
"loc": {
"start": {
"line": 25,
"column": 34
},
"end": {
"line": 25,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 583,
"end": 589,
"loc": {
"start": {
"line": 26,
"column": 2
},
"end": {
"line": 26,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 590,
"end": 591,
"loc": {
"start": {
"line": 26,
"column": 9
},
"end": {
"line": 26,
"column": 10
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 591,
"end": 592,
"loc": {
"start": {
"line": 26,
"column": 10
},
"end": {
"line": 26,
"column": 11
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 593,
"end": 594,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 13
}
}
},
{
"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": 595,
"end": 599,
"loc": {
"start": {
"line": 26,
"column": 14
},
"end": {
"line": 26,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 599,
"end": 600,
"loc": {
"start": {
"line": 26,
"column": 18
},
"end": {
"line": 26,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 600,
"end": 605,
"loc": {
"start": {
"line": 26,
"column": 19
},
"end": {
"line": 26,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 606,
"end": 607,
"loc": {
"start": {
"line": 26,
"column": 25
},
"end": {
"line": 26,
"column": 26
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 608,
"end": 612,
"loc": {
"start": {
"line": 26,
"column": 27
},
"end": {
"line": 26,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 612,
"end": 613,
"loc": {
"start": {
"line": 26,
"column": 31
},
"end": {
"line": 26,
"column": 32
}
}
},
{
"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": 614,
"end": 620,
"loc": {
"start": {
"line": 26,
"column": 33
},
"end": {
"line": 26,
"column": 39
}
}
},
{
"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": 621,
"end": 625,
"loc": {
"start": {
"line": 26,
"column": 40
},
"end": {
"line": 26,
"column": 44
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 626,
"end": 627,
"loc": {
"start": {
"line": 26,
"column": 45
},
"end": {
"line": 26,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 630,
"end": 637,
"loc": {
"start": {
"line": 27,
"column": 2
},
"end": {
"line": 27,
"column": 9
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 638,
"end": 639,
"loc": {
"start": {
"line": 27,
"column": 10
},
"end": {
"line": 27,
"column": 11
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 639,
"end": 640,
"loc": {
"start": {
"line": 27,
"column": 11
},
"end": {
"line": 27,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 641,
"end": 642,
"loc": {
"start": {
"line": 27,
"column": 13
},
"end": {
"line": 27,
"column": 14
}
}
},
{
"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": 643,
"end": 647,
"loc": {
"start": {
"line": 27,
"column": 15
},
"end": {
"line": 27,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 647,
"end": 648,
"loc": {
"start": {
"line": 27,
"column": 19
},
"end": {
"line": 27,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 648,
"end": 653,
"loc": {
"start": {
"line": 27,
"column": 20
},
"end": {
"line": 27,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 654,
"end": 655,
"loc": {
"start": {
"line": 27,
"column": 26
},
"end": {
"line": 27,
"column": 27
}
}
},
{
"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": 656,
"end": 661,
"loc": {
"start": {
"line": 27,
"column": 28
},
"end": {
"line": 27,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 661,
"end": 662,
"loc": {
"start": {
"line": 27,
"column": 33
},
"end": {
"line": 27,
"column": 34
}
}
},
{
"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": 663,
"end": 669,
"loc": {
"start": {
"line": 27,
"column": 35
},
"end": {
"line": 27,
"column": 41
}
}
},
{
"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": 670,
"end": 674,
"loc": {
"start": {
"line": 27,
"column": 42
},
"end": {
"line": 27,
"column": 46
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 675,
"end": 676,
"loc": {
"start": {
"line": 27,
"column": 47
},
"end": {
"line": 27,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "get",
"start": 679,
"end": 682,
"loc": {
"start": {
"line": 28,
"column": 2
},
"end": {
"line": 28,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 683,
"end": 694,
"loc": {
"start": {
"line": 28,
"column": 6
},
"end": {
"line": 28,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 695,
"end": 696,
"loc": {
"start": {
"line": 28,
"column": 18
},
"end": {
"line": 28,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 696,
"end": 697,
"loc": {
"start": {
"line": 28,
"column": 19
},
"end": {
"line": 28,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 698,
"end": 699,
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 22
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 704,
"end": 710,
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 29,
"column": 10
}
}
},
{
"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": 711,
"end": 715,
"loc": {
"start": {
"line": 29,
"column": 11
},
"end": {
"line": 29,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 715,
"end": 716,
"loc": {
"start": {
"line": 29,
"column": 15
},
"end": {
"line": 29,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 716,
"end": 722,
"loc": {
"start": {
"line": 29,
"column": 16
},
"end": {
"line": 29,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 722,
"end": 723,
"loc": {
"start": {
"line": 29,
"column": 22
},
"end": {
"line": 29,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 723,
"end": 729,
"loc": {
"start": {
"line": 29,
"column": 23
},
"end": {
"line": 29,
"column": 29
}
}
},
{
"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": 30,
"column": 2
},
"end": {
"line": 30,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "get",
"start": 736,
"end": 739,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 31,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 740,
"end": 746,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 747,
"end": 748,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 748,
"end": 749,
"loc": {
"start": {
"line": 31,
"column": 14
},
"end": {
"line": 31,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 750,
"end": 751,
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"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": 756,
"end": 762,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 10
}
}
},
{
"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": 763,
"end": 767,
"loc": {
"start": {
"line": 32,
"column": 11
},
"end": {
"line": 32,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 767,
"end": 768,
"loc": {
"start": {
"line": 32,
"column": 15
},
"end": {
"line": 32,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_parent",
"start": 768,
"end": 775,
"loc": {
"start": {
"line": 32,
"column": 16
},
"end": {
"line": 32,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 778,
"end": 779,
"loc": {
"start": {
"line": 33,
"column": 2
},
"end": {
"line": 33,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "get",
"start": 782,
"end": 785,
"loc": {
"start": {
"line": 34,
"column": 2
},
"end": {
"line": 34,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 786,
"end": 793,
"loc": {
"start": {
"line": 34,
"column": 6
},
"end": {
"line": 34,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 794,
"end": 795,
"loc": {
"start": {
"line": 34,
"column": 14
},
"end": {
"line": 34,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 795,
"end": 796,
"loc": {
"start": {
"line": 34,
"column": 15
},
"end": {
"line": 34,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 797,
"end": 798,
"loc": {
"start": {
"line": 34,
"column": 17
},
"end": {
"line": 34,
"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": 803,
"end": 809,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 35,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 810,
"end": 811,
"loc": {
"start": {
"line": 35,
"column": 11
},
"end": {
"line": 35,
"column": 12
}
}
},
{
"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": 811,
"end": 815,
"loc": {
"start": {
"line": 35,
"column": 12
},
"end": {
"line": 35,
"column": 16
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 816,
"end": 819,
"loc": {
"start": {
"line": 35,
"column": 17
},
"end": {
"line": 35,
"column": 20
}
}
},
{
"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": 820,
"end": 824,
"loc": {
"start": {
"line": 35,
"column": 21
},
"end": {
"line": 35,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 824,
"end": 825,
"loc": {
"start": {
"line": 35,
"column": 25
},
"end": {
"line": 35,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 825,
"end": 831,
"loc": {
"start": {
"line": 35,
"column": 26
},
"end": {
"line": 35,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 831,
"end": 832,
"loc": {
"start": {
"line": 35,
"column": 32
},
"end": {
"line": 35,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 832,
"end": 836,
"loc": {
"start": {
"line": 35,
"column": 33
},
"end": {
"line": 35,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 836,
"end": 837,
"loc": {
"start": {
"line": 35,
"column": 37
},
"end": {
"line": 35,
"column": 38
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 844,
"end": 845,
"loc": {
"start": {
"line": 36,
"column": 6
},
"end": {
"line": 36,
"column": 7
}
}
},
{
"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": 846,
"end": 850,
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 850,
"end": 851,
"loc": {
"start": {
"line": 36,
"column": 12
},
"end": {
"line": 36,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 851,
"end": 857,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 36,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 857,
"end": 858,
"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": "right",
"start": 858,
"end": 863,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 25
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 864,
"end": 865,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 27
}
}
},
{
"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": 866,
"end": 870,
"loc": {
"start": {
"line": 36,
"column": 28
},
"end": {
"line": 36,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 870,
"end": 871,
"loc": {
"start": {
"line": 36,
"column": 32
},
"end": {
"line": 36,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 871,
"end": 877,
"loc": {
"start": {
"line": 36,
"column": 33
},
"end": {
"line": 36,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 877,
"end": 878,
"loc": {
"start": {
"line": 36,
"column": 39
},
"end": {
"line": 36,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 878,
"end": 882,
"loc": {
"start": {
"line": 36,
"column": 40
},
"end": {
"line": 36,
"column": 44
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 885,
"end": 886,
"loc": {
"start": {
"line": 37,
"column": 2
},
"end": {
"line": 37,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "get",
"start": 889,
"end": 892,
"loc": {
"start": {
"line": 38,
"column": 2
},
"end": {
"line": 38,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 893,
"end": 897,
"loc": {
"start": {
"line": 38,
"column": 6
},
"end": {
"line": 38,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 898,
"end": 899,
"loc": {
"start": {
"line": 38,
"column": 11
},
"end": {
"line": 38,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 899,
"end": 900,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 901,
"end": 902,
"loc": {
"start": {
"line": 38,
"column": 14
},
"end": {
"line": 38,
"column": 15
}
}
},
{
"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": 907,
"end": 913,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"column": 10
}
}
},
{
"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": 914,
"end": 918,
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 39,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 918,
"end": 919,
"loc": {
"start": {
"line": 39,
"column": 15
},
"end": {
"line": 39,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_left",
"start": 919,
"end": 924,
"loc": {
"start": {
"line": 39,
"column": 16
},
"end": {
"line": 39,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 927,
"end": 928,
"loc": {
"start": {
"line": 40,
"column": 2
},
"end": {
"line": 40,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "get",
"start": 931,
"end": 934,
"loc": {
"start": {
"line": 41,
"column": 2
},
"end": {
"line": 41,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 935,
"end": 940,
"loc": {
"start": {
"line": 41,
"column": 6
},
"end": {
"line": 41,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 941,
"end": 942,
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 13
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 942,
"end": 943,
"loc": {
"start": {
"line": 41,
"column": 13
},
"end": {
"line": 41,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 944,
"end": 945,
"loc": {
"start": {
"line": 41,
"column": 15
},
"end": {
"line": 41,
"column": 16
}
}
},
{
"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": 950,
"end": 956,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 10
}
}
},
{
"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": 957,
"end": 961,
"loc": {
"start": {
"line": 42,
"column": 11
},
"end": {
"line": 42,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 961,
"end": 962,
"loc": {
"start": {
"line": 42,
"column": 15
},
"end": {
"line": 42,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_right",
"start": 962,
"end": 968,
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 971,
"end": 972,
"loc": {
"start": {
"line": 43,
"column": 2
},
"end": {
"line": 43,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "set",
"start": 975,
"end": 978,
"loc": {
"start": {
"line": 44,
"column": 2
},
"end": {
"line": 44,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 979,
"end": 983,
"loc": {
"start": {
"line": 44,
"column": 6
},
"end": {
"line": 44,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 984,
"end": 985,
"loc": {
"start": {
"line": 44,
"column": 11
},
"end": {
"line": 44,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 985,
"end": 986,
"loc": {
"start": {
"line": 44,
"column": 12
},
"end": {
"line": 44,
"column": 13
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 986,
"end": 987,
"loc": {
"start": {
"line": 44,
"column": 13
},
"end": {
"line": 44,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 988,
"end": 989,
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 44,
"column": 16
}
}
},
{
"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": 994,
"end": 996,
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 45,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 997,
"end": 998,
"loc": {
"start": {
"line": 45,
"column": 7
},
"end": {
"line": 45,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 998,
"end": 999,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 9
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1000,
"end": 1003,
"loc": {
"start": {
"line": 45,
"column": 10
},
"end": {
"line": 45,
"column": 13
}
}
},
{
"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": 1004,
"end": 1008,
"loc": {
"start": {
"line": 45,
"column": 14
},
"end": {
"line": 45,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1008,
"end": 1009,
"loc": {
"start": {
"line": 45,
"column": 18
},
"end": {
"line": 45,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1010,
"end": 1011,
"loc": {
"start": {
"line": 45,
"column": 20
},
"end": {
"line": 45,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 1018,
"end": 1019,
"loc": {
"start": {
"line": 46,
"column": 6
},
"end": {
"line": 46,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1019,
"end": 1020,
"loc": {
"start": {
"line": 46,
"column": 7
},
"end": {
"line": 46,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_parent",
"start": 1020,
"end": 1027,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1028,
"end": 1029,
"loc": {
"start": {
"line": 46,
"column": 16
},
"end": {
"line": 46,
"column": 17
}
}
},
{
"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": 1030,
"end": 1034,
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1039,
"end": 1040,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 5
}
}
},
{
"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": 1045,
"end": 1049,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1049,
"end": 1050,
"loc": {
"start": {
"line": 48,
"column": 8
},
"end": {
"line": 48,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_left",
"start": 1050,
"end": 1055,
"loc": {
"start": {
"line": 48,
"column": 9
},
"end": {
"line": 48,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1056,
"end": 1057,
"loc": {
"start": {
"line": 48,
"column": 15
},
"end": {
"line": 48,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 1058,
"end": 1059,
"loc": {
"start": {
"line": 48,
"column": 17
},
"end": {
"line": 48,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1062,
"end": 1063,
"loc": {
"start": {
"line": 49,
"column": 2
},
"end": {
"line": 49,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "set",
"start": 1066,
"end": 1069,
"loc": {
"start": {
"line": 50,
"column": 2
},
"end": {
"line": 50,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1070,
"end": 1075,
"loc": {
"start": {
"line": 50,
"column": 6
},
"end": {
"line": 50,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1076,
"end": 1077,
"loc": {
"start": {
"line": 50,
"column": 12
},
"end": {
"line": 50,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 1077,
"end": 1078,
"loc": {
"start": {
"line": 50,
"column": 13
},
"end": {
"line": 50,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1078,
"end": 1079,
"loc": {
"start": {
"line": 50,
"column": 14
},
"end": {
"line": 50,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1080,
"end": 1081,
"loc": {
"start": {
"line": 50,
"column": 16
},
"end": {
"line": 50,
"column": 17
}
}
},
{
"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": 1086,
"end": 1088,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 51,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1089,
"end": 1090,
"loc": {
"start": {
"line": 51,
"column": 7
},
"end": {
"line": 51,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 1090,
"end": 1091,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 9
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1092,
"end": 1095,
"loc": {
"start": {
"line": 51,
"column": 10
},
"end": {
"line": 51,
"column": 13
}
}
},
{
"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": 1096,
"end": 1100,
"loc": {
"start": {
"line": 51,
"column": 14
},
"end": {
"line": 51,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1100,
"end": 1101,
"loc": {
"start": {
"line": 51,
"column": 18
},
"end": {
"line": 51,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1102,
"end": 1103,
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 51,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 1110,
"end": 1111,
"loc": {
"start": {
"line": 52,
"column": 6
},
"end": {
"line": 52,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1111,
"end": 1112,
"loc": {
"start": {
"line": 52,
"column": 7
},
"end": {
"line": 52,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_parent",
"start": 1112,
"end": 1119,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1120,
"end": 1121,
"loc": {
"start": {
"line": 52,
"column": 16
},
"end": {
"line": 52,
"column": 17
}
}
},
{
"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": 1122,
"end": 1126,
"loc": {
"start": {
"line": 52,
"column": 18
},
"end": {
"line": 52,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1131,
"end": 1132,
"loc": {
"start": {
"line": 53,
"column": 4
},
"end": {
"line": 53,
"column": 5
}
}
},
{
"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": 1137,
"end": 1141,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1141,
"end": 1142,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_right",
"start": 1142,
"end": 1148,
"loc": {
"start": {
"line": 54,
"column": 9
},
"end": {
"line": 54,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1149,
"end": 1150,
"loc": {
"start": {
"line": 54,
"column": 16
},
"end": {
"line": 54,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 1151,
"end": 1152,
"loc": {
"start": {
"line": 54,
"column": 18
},
"end": {
"line": 54,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1155,
"end": 1156,
"loc": {
"start": {
"line": 55,
"column": 2
},
"end": {
"line": 55,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateLeft",
"start": 1159,
"end": 1169,
"loc": {
"start": {
"line": 56,
"column": 2
},
"end": {
"line": 56,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1170,
"end": 1171,
"loc": {
"start": {
"line": 56,
"column": 13
},
"end": {
"line": 56,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tree",
"start": 1171,
"end": 1175,
"loc": {
"start": {
"line": 56,
"column": 14
},
"end": {
"line": 56,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1175,
"end": 1176,
"loc": {
"start": {
"line": 56,
"column": 18
},
"end": {
"line": 56,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1177,
"end": 1178,
"loc": {
"start": {
"line": 56,
"column": 20
},
"end": {
"line": 56,
"column": 21
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1183,
"end": 1188,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 57,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1189,
"end": 1195,
"loc": {
"start": {
"line": 57,
"column": 10
},
"end": {
"line": 57,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1196,
"end": 1197,
"loc": {
"start": {
"line": 57,
"column": 17
},
"end": {
"line": 57,
"column": 18
}
}
},
{
"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": 1198,
"end": 1202,
"loc": {
"start": {
"line": 57,
"column": 19
},
"end": {
"line": 57,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1202,
"end": 1203,
"loc": {
"start": {
"line": 57,
"column": 23
},
"end": {
"line": 57,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1203,
"end": 1209,
"loc": {
"start": {
"line": 57,
"column": 24
},
"end": {
"line": 57,
"column": 30
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1214,
"end": 1219,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 1220,
"end": 1229,
"loc": {
"start": {
"line": 58,
"column": 10
},
"end": {
"line": 58,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1230,
"end": 1231,
"loc": {
"start": {
"line": 58,
"column": 20
},
"end": {
"line": 58,
"column": 21
}
}
},
{
"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": 1232,
"end": 1236,
"loc": {
"start": {
"line": 58,
"column": 22
},
"end": {
"line": 58,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1236,
"end": 1237,
"loc": {
"start": {
"line": 58,
"column": 26
},
"end": {
"line": 58,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1237,
"end": 1242,
"loc": {
"start": {
"line": 58,
"column": 27
},
"end": {
"line": 58,
"column": 32
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1247,
"end": 1252,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 59,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newRight",
"start": 1253,
"end": 1261,
"loc": {
"start": {
"line": 59,
"column": 10
},
"end": {
"line": 59,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1262,
"end": 1263,
"loc": {
"start": {
"line": 59,
"column": 19
},
"end": {
"line": 59,
"column": 20
}
}
},
{
"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": 1264,
"end": 1268,
"loc": {
"start": {
"line": 59,
"column": 21
},
"end": {
"line": 59,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1268,
"end": 1269,
"loc": {
"start": {
"line": 59,
"column": 25
},
"end": {
"line": 59,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1269,
"end": 1274,
"loc": {
"start": {
"line": 59,
"column": 26
},
"end": {
"line": 59,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1274,
"end": 1275,
"loc": {
"start": {
"line": 59,
"column": 31
},
"end": {
"line": 59,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1275,
"end": 1279,
"loc": {
"start": {
"line": 59,
"column": 32
},
"end": {
"line": 59,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 1284,
"end": 1293,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1293,
"end": 1294,
"loc": {
"start": {
"line": 60,
"column": 13
},
"end": {
"line": 60,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1294,
"end": 1298,
"loc": {
"start": {
"line": 60,
"column": 14
},
"end": {
"line": 60,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1299,
"end": 1300,
"loc": {
"start": {
"line": 60,
"column": 19
},
"end": {
"line": 60,
"column": 20
}
}
},
{
"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": 1301,
"end": 1305,
"loc": {
"start": {
"line": 60,
"column": 21
},
"end": {
"line": 60,
"column": 25
}
}
},
{
"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": 1310,
"end": 1314,
"loc": {
"start": {
"line": 61,
"column": 4
},
"end": {
"line": 61,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1314,
"end": 1315,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1315,
"end": 1320,
"loc": {
"start": {
"line": 61,
"column": 9
},
"end": {
"line": 61,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1321,
"end": 1322,
"loc": {
"start": {
"line": 61,
"column": 15
},
"end": {
"line": 61,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newRight",
"start": 1323,
"end": 1331,
"loc": {
"start": {
"line": 61,
"column": 17
},
"end": {
"line": 61,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotate",
"start": 1336,
"end": 1342,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1342,
"end": 1343,
"loc": {
"start": {
"line": 62,
"column": 10
},
"end": {
"line": 62,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tree",
"start": 1343,
"end": 1347,
"loc": {
"start": {
"line": 62,
"column": 11
},
"end": {
"line": 62,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1347,
"end": 1348,
"loc": {
"start": {
"line": 62,
"column": 15
},
"end": {
"line": 62,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1349,
"end": 1355,
"loc": {
"start": {
"line": 62,
"column": 17
},
"end": {
"line": 62,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1355,
"end": 1356,
"loc": {
"start": {
"line": 62,
"column": 23
},
"end": {
"line": 62,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 1357,
"end": 1366,
"loc": {
"start": {
"line": 62,
"column": 25
},
"end": {
"line": 62,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1366,
"end": 1367,
"loc": {
"start": {
"line": 62,
"column": 34
},
"end": {
"line": 62,
"column": 35
}
}
},
{
"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": 1368,
"end": 1372,
"loc": {
"start": {
"line": 62,
"column": 36
},
"end": {
"line": 62,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1372,
"end": 1373,
"loc": {
"start": {
"line": 62,
"column": 40
},
"end": {
"line": 62,
"column": 41
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1376,
"end": 1377,
"loc": {
"start": {
"line": 63,
"column": 2
},
"end": {
"line": 63,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "next",
"start": 1380,
"end": 1384,
"loc": {
"start": {
"line": 64,
"column": 2
},
"end": {
"line": 64,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1385,
"end": 1386,
"loc": {
"start": {
"line": 64,
"column": 7
},
"end": {
"line": 64,
"column": 8
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1386,
"end": 1387,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 9
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1388,
"end": 1389,
"loc": {
"start": {
"line": 64,
"column": 10
},
"end": {
"line": 64,
"column": 11
}
}
},
{
"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": 1394,
"end": 1396,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 65,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1397,
"end": 1398,
"loc": {
"start": {
"line": 65,
"column": 7
},
"end": {
"line": 65,
"column": 8
}
}
},
{
"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": 1398,
"end": 1402,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1402,
"end": 1403,
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1403,
"end": 1408,
"loc": {
"start": {
"line": 65,
"column": 13
},
"end": {
"line": 65,
"column": 18
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1409,
"end": 1412,
"loc": {
"start": {
"line": 65,
"column": 19
},
"end": {
"line": 65,
"column": 22
}
}
},
{
"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": 1413,
"end": 1417,
"loc": {
"start": {
"line": 65,
"column": 23
},
"end": {
"line": 65,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1417,
"end": 1418,
"loc": {
"start": {
"line": 65,
"column": 27
},
"end": {
"line": 65,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1419,
"end": 1420,
"loc": {
"start": {
"line": 65,
"column": 29
},
"end": {
"line": 65,
"column": 30
}
}
},
{
"type": "CommentLine",
"value": " search the most left node in the right tree",
"start": 1427,
"end": 1473,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"column": 52
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 1480,
"end": 1483,
"loc": {
"start": {
"line": 67,
"column": 6
},
"end": {
"line": 67,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1484,
"end": 1485,
"loc": {
"start": {
"line": 67,
"column": 10
},
"end": {
"line": 67,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1486,
"end": 1487,
"loc": {
"start": {
"line": 67,
"column": 12
},
"end": {
"line": 67,
"column": 13
}
}
},
{
"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": 1488,
"end": 1492,
"loc": {
"start": {
"line": 67,
"column": 14
},
"end": {
"line": 67,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1492,
"end": 1493,
"loc": {
"start": {
"line": 67,
"column": 18
},
"end": {
"line": 67,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1493,
"end": 1498,
"loc": {
"start": {
"line": 67,
"column": 19
},
"end": {
"line": 67,
"column": 24
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 1505,
"end": 1510,
"loc": {
"start": {
"line": 68,
"column": 6
},
"end": {
"line": 68,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1511,
"end": 1512,
"loc": {
"start": {
"line": 68,
"column": 12
},
"end": {
"line": 68,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1512,
"end": 1513,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1513,
"end": 1514,
"loc": {
"start": {
"line": 68,
"column": 14
},
"end": {
"line": 68,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1514,
"end": 1518,
"loc": {
"start": {
"line": 68,
"column": 15
},
"end": {
"line": 68,
"column": 19
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1519,
"end": 1522,
"loc": {
"start": {
"line": 68,
"column": 20
},
"end": {
"line": 68,
"column": 23
}
}
},
{
"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": 1523,
"end": 1527,
"loc": {
"start": {
"line": 68,
"column": 24
},
"end": {
"line": 68,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1527,
"end": 1528,
"loc": {
"start": {
"line": 68,
"column": 28
},
"end": {
"line": 68,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1529,
"end": 1530,
"loc": {
"start": {
"line": 68,
"column": 30
},
"end": {
"line": 68,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1539,
"end": 1540,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1541,
"end": 1542,
"loc": {
"start": {
"line": 69,
"column": 10
},
"end": {
"line": 69,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1543,
"end": 1544,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1544,
"end": 1545,
"loc": {
"start": {
"line": 69,
"column": 13
},
"end": {
"line": 69,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1545,
"end": 1549,
"loc": {
"start": {
"line": 69,
"column": 14
},
"end": {
"line": 69,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1556,
"end": 1557,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 7
}
}
},
{
"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": 1564,
"end": 1570,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1571,
"end": 1572,
"loc": {
"start": {
"line": 71,
"column": 13
},
"end": {
"line": 71,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1577,
"end": 1578,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 72,
"column": 5
}
}
},
{
"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": 1579,
"end": 1583,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1584,
"end": 1585,
"loc": {
"start": {
"line": 72,
"column": 11
},
"end": {
"line": 72,
"column": 12
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 1592,
"end": 1595,
"loc": {
"start": {
"line": 73,
"column": 6
},
"end": {
"line": 73,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1596,
"end": 1597,
"loc": {
"start": {
"line": 73,
"column": 10
},
"end": {
"line": 73,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1598,
"end": 1599,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 13
}
}
},
{
"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": 1600,
"end": 1604,
"loc": {
"start": {
"line": 73,
"column": 14
},
"end": {
"line": 73,
"column": 18
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 1611,
"end": 1616,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1617,
"end": 1618,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1618,
"end": 1619,
"loc": {
"start": {
"line": 74,
"column": 13
},
"end": {
"line": 74,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1619,
"end": 1620,
"loc": {
"start": {
"line": 74,
"column": 14
},
"end": {
"line": 74,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1620,
"end": 1626,
"loc": {
"start": {
"line": 74,
"column": 15
},
"end": {
"line": 74,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1627,
"end": 1630,
"loc": {
"start": {
"line": 74,
"column": 22
},
"end": {
"line": 74,
"column": 25
}
}
},
{
"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": 1631,
"end": 1635,
"loc": {
"start": {
"line": 74,
"column": 26
},
"end": {
"line": 74,
"column": 30
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1636,
"end": 1638,
"loc": {
"start": {
"line": 74,
"column": 31
},
"end": {
"line": 74,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1639,
"end": 1640,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 35
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1641,
"end": 1644,
"loc": {
"start": {
"line": 74,
"column": 36
},
"end": {
"line": 74,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1645,
"end": 1646,
"loc": {
"start": {
"line": 74,
"column": 40
},
"end": {
"line": 74,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1646,
"end": 1647,
"loc": {
"start": {
"line": 74,
"column": 41
},
"end": {
"line": 74,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1647,
"end": 1653,
"loc": {
"start": {
"line": 74,
"column": 42
},
"end": {
"line": 74,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1653,
"end": 1654,
"loc": {
"start": {
"line": 74,
"column": 48
},
"end": {
"line": 74,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1654,
"end": 1658,
"loc": {
"start": {
"line": 74,
"column": 49
},
"end": {
"line": 74,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1658,
"end": 1659,
"loc": {
"start": {
"line": 74,
"column": 53
},
"end": {
"line": 74,
"column": 54
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1660,
"end": 1661,
"loc": {
"start": {
"line": 74,
"column": 55
},
"end": {
"line": 74,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1670,
"end": 1671,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1672,
"end": 1673,
"loc": {
"start": {
"line": 75,
"column": 10
},
"end": {
"line": 75,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1674,
"end": 1675,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1675,
"end": 1676,
"loc": {
"start": {
"line": 75,
"column": 13
},
"end": {
"line": 75,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1676,
"end": 1682,
"loc": {
"start": {
"line": 75,
"column": 14
},
"end": {
"line": 75,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1689,
"end": 1690,
"loc": {
"start": {
"line": 76,
"column": 6
},
"end": {
"line": 76,
"column": 7
}
}
},
{
"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": 1697,
"end": 1703,
"loc": {
"start": {
"line": 77,
"column": 6
},
"end": {
"line": 77,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1704,
"end": 1705,
"loc": {
"start": {
"line": 77,
"column": 13
},
"end": {
"line": 77,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1705,
"end": 1706,
"loc": {
"start": {
"line": 77,
"column": 14
},
"end": {
"line": 77,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1706,
"end": 1712,
"loc": {
"start": {
"line": 77,
"column": 15
},
"end": {
"line": 77,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1717,
"end": 1718,
"loc": {
"start": {
"line": 78,
"column": 4
},
"end": {
"line": 78,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1721,
"end": 1722,
"loc": {
"start": {
"line": 79,
"column": 2
},
"end": {
"line": 79,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prev",
"start": 1725,
"end": 1729,
"loc": {
"start": {
"line": 80,
"column": 2
},
"end": {
"line": 80,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1730,
"end": 1731,
"loc": {
"start": {
"line": 80,
"column": 7
},
"end": {
"line": 80,
"column": 8
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1731,
"end": 1732,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 9
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1733,
"end": 1734,
"loc": {
"start": {
"line": 80,
"column": 10
},
"end": {
"line": 80,
"column": 11
}
}
},
{
"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": 1739,
"end": 1741,
"loc": {
"start": {
"line": 81,
"column": 4
},
"end": {
"line": 81,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1742,
"end": 1743,
"loc": {
"start": {
"line": 81,
"column": 7
},
"end": {
"line": 81,
"column": 8
}
}
},
{
"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": 1743,
"end": 1747,
"loc": {
"start": {
"line": 81,
"column": 8
},
"end": {
"line": 81,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1747,
"end": 1748,
"loc": {
"start": {
"line": 81,
"column": 12
},
"end": {
"line": 81,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1748,
"end": 1752,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 17
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1753,
"end": 1756,
"loc": {
"start": {
"line": 81,
"column": 18
},
"end": {
"line": 81,
"column": 21
}
}
},
{
"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": 1757,
"end": 1761,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 81,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1761,
"end": 1762,
"loc": {
"start": {
"line": 81,
"column": 26
},
"end": {
"line": 81,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1763,
"end": 1764,
"loc": {
"start": {
"line": 81,
"column": 28
},
"end": {
"line": 81,
"column": 29
}
}
},
{
"type": "CommentLine",
"value": " search the most right node in the left tree",
"start": 1771,
"end": 1817,
"loc": {
"start": {
"line": 82,
"column": 6
},
"end": {
"line": 82,
"column": 52
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 1824,
"end": 1827,
"loc": {
"start": {
"line": 83,
"column": 6
},
"end": {
"line": 83,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1828,
"end": 1829,
"loc": {
"start": {
"line": 83,
"column": 10
},
"end": {
"line": 83,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1830,
"end": 1831,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 13
}
}
},
{
"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": 1832,
"end": 1836,
"loc": {
"start": {
"line": 83,
"column": 14
},
"end": {
"line": 83,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1836,
"end": 1837,
"loc": {
"start": {
"line": 83,
"column": 18
},
"end": {
"line": 83,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1837,
"end": 1841,
"loc": {
"start": {
"line": 83,
"column": 19
},
"end": {
"line": 83,
"column": 23
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 1848,
"end": 1853,
"loc": {
"start": {
"line": 84,
"column": 6
},
"end": {
"line": 84,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1854,
"end": 1855,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1855,
"end": 1856,
"loc": {
"start": {
"line": 84,
"column": 13
},
"end": {
"line": 84,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1856,
"end": 1857,
"loc": {
"start": {
"line": 84,
"column": 14
},
"end": {
"line": 84,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1857,
"end": 1862,
"loc": {
"start": {
"line": 84,
"column": 15
},
"end": {
"line": 84,
"column": 20
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1863,
"end": 1866,
"loc": {
"start": {
"line": 84,
"column": 21
},
"end": {
"line": 84,
"column": 24
}
}
},
{
"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": 1867,
"end": 1871,
"loc": {
"start": {
"line": 84,
"column": 25
},
"end": {
"line": 84,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1871,
"end": 1872,
"loc": {
"start": {
"line": 84,
"column": 29
},
"end": {
"line": 84,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1873,
"end": 1874,
"loc": {
"start": {
"line": 84,
"column": 31
},
"end": {
"line": 84,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1883,
"end": 1884,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1885,
"end": 1886,
"loc": {
"start": {
"line": 85,
"column": 10
},
"end": {
"line": 85,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1887,
"end": 1888,
"loc": {
"start": {
"line": 85,
"column": 12
},
"end": {
"line": 85,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1888,
"end": 1889,
"loc": {
"start": {
"line": 85,
"column": 13
},
"end": {
"line": 85,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1889,
"end": 1894,
"loc": {
"start": {
"line": 85,
"column": 14
},
"end": {
"line": 85,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1901,
"end": 1902,
"loc": {
"start": {
"line": 86,
"column": 6
},
"end": {
"line": 86,
"column": 7
}
}
},
{
"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": 1909,
"end": 1915,
"loc": {
"start": {
"line": 87,
"column": 6
},
"end": {
"line": 87,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 1916,
"end": 1917,
"loc": {
"start": {
"line": 87,
"column": 13
},
"end": {
"line": 87,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1922,
"end": 1923,
"loc": {
"start": {
"line": 88,
"column": 4
},
"end": {
"line": 88,
"column": 5
}
}
},
{
"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": 1924,
"end": 1928,
"loc": {
"start": {
"line": 88,
"column": 6
},
"end": {
"line": 88,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1929,
"end": 1930,
"loc": {
"start": {
"line": 88,
"column": 11
},
"end": {
"line": 88,
"column": 12
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 1937,
"end": 1940,
"loc": {
"start": {
"line": 89,
"column": 6
},
"end": {
"line": 89,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1941,
"end": 1942,
"loc": {
"start": {
"line": 89,
"column": 10
},
"end": {
"line": 89,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1943,
"end": 1944,
"loc": {
"start": {
"line": 89,
"column": 12
},
"end": {
"line": 89,
"column": 13
}
}
},
{
"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": 1945,
"end": 1949,
"loc": {
"start": {
"line": 89,
"column": 14
},
"end": {
"line": 89,
"column": 18
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 1956,
"end": 1961,
"loc": {
"start": {
"line": 90,
"column": 6
},
"end": {
"line": 90,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1962,
"end": 1963,
"loc": {
"start": {
"line": 90,
"column": 12
},
"end": {
"line": 90,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1963,
"end": 1964,
"loc": {
"start": {
"line": 90,
"column": 13
},
"end": {
"line": 90,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1964,
"end": 1965,
"loc": {
"start": {
"line": 90,
"column": 14
},
"end": {
"line": 90,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1965,
"end": 1971,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1972,
"end": 1975,
"loc": {
"start": {
"line": 90,
"column": 22
},
"end": {
"line": 90,
"column": 25
}
}
},
{
"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": 1976,
"end": 1980,
"loc": {
"start": {
"line": 90,
"column": 26
},
"end": {
"line": 90,
"column": 30
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1981,
"end": 1983,
"loc": {
"start": {
"line": 90,
"column": 31
},
"end": {
"line": 90,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1984,
"end": 1985,
"loc": {
"start": {
"line": 90,
"column": 34
},
"end": {
"line": 90,
"column": 35
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1986,
"end": 1989,
"loc": {
"start": {
"line": 90,
"column": 36
},
"end": {
"line": 90,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 1990,
"end": 1991,
"loc": {
"start": {
"line": 90,
"column": 40
},
"end": {
"line": 90,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1991,
"end": 1992,
"loc": {
"start": {
"line": 90,
"column": 41
},
"end": {
"line": 90,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 1992,
"end": 1998,
"loc": {
"start": {
"line": 90,
"column": 42
},
"end": {
"line": 90,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1998,
"end": 1999,
"loc": {
"start": {
"line": 90,
"column": 48
},
"end": {
"line": 90,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1999,
"end": 2004,
"loc": {
"start": {
"line": 90,
"column": 49
},
"end": {
"line": 90,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2004,
"end": 2005,
"loc": {
"start": {
"line": 90,
"column": 54
},
"end": {
"line": 90,
"column": 55
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2006,
"end": 2007,
"loc": {
"start": {
"line": 90,
"column": 56
},
"end": {
"line": 90,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 2016,
"end": 2017,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2018,
"end": 2019,
"loc": {
"start": {
"line": 91,
"column": 10
},
"end": {
"line": 91,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 2020,
"end": 2021,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2021,
"end": 2022,
"loc": {
"start": {
"line": 91,
"column": 13
},
"end": {
"line": 91,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2022,
"end": 2028,
"loc": {
"start": {
"line": 91,
"column": 14
},
"end": {
"line": 91,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2035,
"end": 2036,
"loc": {
"start": {
"line": 92,
"column": 6
},
"end": {
"line": 92,
"column": 7
}
}
},
{
"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": 2043,
"end": 2049,
"loc": {
"start": {
"line": 93,
"column": 6
},
"end": {
"line": 93,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 2050,
"end": 2051,
"loc": {
"start": {
"line": 93,
"column": 13
},
"end": {
"line": 93,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2051,
"end": 2052,
"loc": {
"start": {
"line": 93,
"column": 14
},
"end": {
"line": 93,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2052,
"end": 2058,
"loc": {
"start": {
"line": 93,
"column": 15
},
"end": {
"line": 93,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2063,
"end": 2064,
"loc": {
"start": {
"line": 94,
"column": 4
},
"end": {
"line": 94,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2067,
"end": 2068,
"loc": {
"start": {
"line": 95,
"column": 2
},
"end": {
"line": 95,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateRight",
"start": 2071,
"end": 2082,
"loc": {
"start": {
"line": 96,
"column": 2
},
"end": {
"line": 96,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2083,
"end": 2084,
"loc": {
"start": {
"line": 96,
"column": 14
},
"end": {
"line": 96,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tree",
"start": 2084,
"end": 2088,
"loc": {
"start": {
"line": 96,
"column": 15
},
"end": {
"line": 96,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2088,
"end": 2089,
"loc": {
"start": {
"line": 96,
"column": 19
},
"end": {
"line": 96,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2090,
"end": 2091,
"loc": {
"start": {
"line": 96,
"column": 21
},
"end": {
"line": 96,
"column": 22
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2096,
"end": 2101,
"loc": {
"start": {
"line": 97,
"column": 4
},
"end": {
"line": 97,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2102,
"end": 2108,
"loc": {
"start": {
"line": 97,
"column": 10
},
"end": {
"line": 97,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2109,
"end": 2110,
"loc": {
"start": {
"line": 97,
"column": 17
},
"end": {
"line": 97,
"column": 18
}
}
},
{
"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": 2111,
"end": 2115,
"loc": {
"start": {
"line": 97,
"column": 19
},
"end": {
"line": 97,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2115,
"end": 2116,
"loc": {
"start": {
"line": 97,
"column": 23
},
"end": {
"line": 97,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2116,
"end": 2122,
"loc": {
"start": {
"line": 97,
"column": 24
},
"end": {
"line": 97,
"column": 30
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2127,
"end": 2132,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 98,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 2133,
"end": 2142,
"loc": {
"start": {
"line": 98,
"column": 10
},
"end": {
"line": 98,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2143,
"end": 2144,
"loc": {
"start": {
"line": 98,
"column": 20
},
"end": {
"line": 98,
"column": 21
}
}
},
{
"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": 2145,
"end": 2149,
"loc": {
"start": {
"line": 98,
"column": 22
},
"end": {
"line": 98,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2149,
"end": 2150,
"loc": {
"start": {
"line": 98,
"column": 26
},
"end": {
"line": 98,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 2150,
"end": 2154,
"loc": {
"start": {
"line": 98,
"column": 27
},
"end": {
"line": 98,
"column": 31
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2159,
"end": 2164,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newLeft",
"start": 2165,
"end": 2172,
"loc": {
"start": {
"line": 99,
"column": 10
},
"end": {
"line": 99,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2173,
"end": 2174,
"loc": {
"start": {
"line": 99,
"column": 18
},
"end": {
"line": 99,
"column": 19
}
}
},
{
"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": 2175,
"end": 2179,
"loc": {
"start": {
"line": 99,
"column": 20
},
"end": {
"line": 99,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2179,
"end": 2180,
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 99,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 2180,
"end": 2184,
"loc": {
"start": {
"line": 99,
"column": 25
},
"end": {
"line": 99,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2184,
"end": 2185,
"loc": {
"start": {
"line": 99,
"column": 29
},
"end": {
"line": 99,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 2185,
"end": 2190,
"loc": {
"start": {
"line": 99,
"column": 30
},
"end": {
"line": 99,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 2195,
"end": 2204,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2204,
"end": 2205,
"loc": {
"start": {
"line": 100,
"column": 13
},
"end": {
"line": 100,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 2205,
"end": 2210,
"loc": {
"start": {
"line": 100,
"column": 14
},
"end": {
"line": 100,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2211,
"end": 2212,
"loc": {
"start": {
"line": 100,
"column": 20
},
"end": {
"line": 100,
"column": 21
}
}
},
{
"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": 2213,
"end": 2217,
"loc": {
"start": {
"line": 100,
"column": 22
},
"end": {
"line": 100,
"column": 26
}
}
},
{
"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": 2222,
"end": 2226,
"loc": {
"start": {
"line": 101,
"column": 4
},
"end": {
"line": 101,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2226,
"end": 2227,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 2227,
"end": 2231,
"loc": {
"start": {
"line": 101,
"column": 9
},
"end": {
"line": 101,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2232,
"end": 2233,
"loc": {
"start": {
"line": 101,
"column": 14
},
"end": {
"line": 101,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newLeft",
"start": 2234,
"end": 2241,
"loc": {
"start": {
"line": 101,
"column": 16
},
"end": {
"line": 101,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotate",
"start": 2246,
"end": 2252,
"loc": {
"start": {
"line": 102,
"column": 4
},
"end": {
"line": 102,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2252,
"end": 2253,
"loc": {
"start": {
"line": 102,
"column": 10
},
"end": {
"line": 102,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tree",
"start": 2253,
"end": 2257,
"loc": {
"start": {
"line": 102,
"column": 11
},
"end": {
"line": 102,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2257,
"end": 2258,
"loc": {
"start": {
"line": 102,
"column": 15
},
"end": {
"line": 102,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2259,
"end": 2265,
"loc": {
"start": {
"line": 102,
"column": 17
},
"end": {
"line": 102,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2265,
"end": 2266,
"loc": {
"start": {
"line": 102,
"column": 23
},
"end": {
"line": 102,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "newParent",
"start": 2267,
"end": 2276,
"loc": {
"start": {
"line": 102,
"column": 25
},
"end": {
"line": 102,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2276,
"end": 2277,
"loc": {
"start": {
"line": 102,
"column": 34
},
"end": {
"line": 102,
"column": 35
}
}
},
{
"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": 2278,
"end": 2282,
"loc": {
"start": {
"line": 102,
"column": 36
},
"end": {
"line": 102,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2282,
"end": 2283,
"loc": {
"start": {
"line": 102,
"column": 40
},
"end": {
"line": 102,
"column": 41
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2286,
"end": 2287,
"loc": {
"start": {
"line": 103,
"column": 2
},
"end": {
"line": 103,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getUncle",
"start": 2290,
"end": 2298,
"loc": {
"start": {
"line": 104,
"column": 2
},
"end": {
"line": 104,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2299,
"end": 2300,
"loc": {
"start": {
"line": 104,
"column": 11
},
"end": {
"line": 104,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2300,
"end": 2301,
"loc": {
"start": {
"line": 104,
"column": 12
},
"end": {
"line": 104,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2302,
"end": 2303,
"loc": {
"start": {
"line": 104,
"column": 14
},
"end": {
"line": 104,
"column": 15
}
}
},
{
"type": "CommentLine",
"value": " we can assume that grandparent exists when this is called!",
"start": 2308,
"end": 2369,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 65
}
}
},
{
"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": 2374,
"end": 2376,
"loc": {
"start": {
"line": 106,
"column": 4
},
"end": {
"line": 106,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2377,
"end": 2378,
"loc": {
"start": {
"line": 106,
"column": 7
},
"end": {
"line": 106,
"column": 8
}
}
},
{
"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": 2378,
"end": 2382,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2382,
"end": 2383,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2383,
"end": 2389,
"loc": {
"start": {
"line": 106,
"column": 13
},
"end": {
"line": 106,
"column": 19
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 2390,
"end": 2393,
"loc": {
"start": {
"line": 106,
"column": 20
},
"end": {
"line": 106,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2394,
"end": 2398,
"loc": {
"start": {
"line": 106,
"column": 24
},
"end": {
"line": 106,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2398,
"end": 2399,
"loc": {
"start": {
"line": 106,
"column": 28
},
"end": {
"line": 106,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2399,
"end": 2405,
"loc": {
"start": {
"line": 106,
"column": 29
},
"end": {
"line": 106,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2405,
"end": 2406,
"loc": {
"start": {
"line": 106,
"column": 35
},
"end": {
"line": 106,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2406,
"end": 2412,
"loc": {
"start": {
"line": 106,
"column": 36
},
"end": {
"line": 106,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2412,
"end": 2413,
"loc": {
"start": {
"line": 106,
"column": 42
},
"end": {
"line": 106,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 2413,
"end": 2417,
"loc": {
"start": {
"line": 106,
"column": 43
},
"end": {
"line": 106,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2417,
"end": 2418,
"loc": {
"start": {
"line": 106,
"column": 47
},
"end": {
"line": 106,
"column": 48
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2419,
"end": 2420,
"loc": {
"start": {
"line": 106,
"column": 49
},
"end": {
"line": 106,
"column": 50
}
}
},
{
"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": 2427,
"end": 2433,
"loc": {
"start": {
"line": 107,
"column": 6
},
"end": {
"line": 107,
"column": 12
}
}
},
{
"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": 2434,
"end": 2438,
"loc": {
"start": {
"line": 107,
"column": 13
},
"end": {
"line": 107,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2438,
"end": 2439,
"loc": {
"start": {
"line": 107,
"column": 17
},
"end": {
"line": 107,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2439,
"end": 2445,
"loc": {
"start": {
"line": 107,
"column": 18
},
"end": {
"line": 107,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2445,
"end": 2446,
"loc": {
"start": {
"line": 107,
"column": 24
},
"end": {
"line": 107,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2446,
"end": 2452,
"loc": {
"start": {
"line": 107,
"column": 25
},
"end": {
"line": 107,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2452,
"end": 2453,
"loc": {
"start": {
"line": 107,
"column": 31
},
"end": {
"line": 107,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 2453,
"end": 2458,
"loc": {
"start": {
"line": 107,
"column": 32
},
"end": {
"line": 107,
"column": 37
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2463,
"end": 2464,
"loc": {
"start": {
"line": 108,
"column": 4
},
"end": {
"line": 108,
"column": 5
}
}
},
{
"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": 2465,
"end": 2469,
"loc": {
"start": {
"line": 108,
"column": 6
},
"end": {
"line": 108,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2470,
"end": 2471,
"loc": {
"start": {
"line": 108,
"column": 11
},
"end": {
"line": 108,
"column": 12
}
}
},
{
"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": 2478,
"end": 2484,
"loc": {
"start": {
"line": 109,
"column": 6
},
"end": {
"line": 109,
"column": 12
}
}
},
{
"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": 2485,
"end": 2489,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2489,
"end": 2490,
"loc": {
"start": {
"line": 109,
"column": 17
},
"end": {
"line": 109,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2490,
"end": 2496,
"loc": {
"start": {
"line": 109,
"column": 18
},
"end": {
"line": 109,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2496,
"end": 2497,
"loc": {
"start": {
"line": 109,
"column": 24
},
"end": {
"line": 109,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 2497,
"end": 2503,
"loc": {
"start": {
"line": 109,
"column": 25
},
"end": {
"line": 109,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2503,
"end": 2504,
"loc": {
"start": {
"line": 109,
"column": 31
},
"end": {
"line": 109,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 2504,
"end": 2508,
"loc": {
"start": {
"line": 109,
"column": 32
},
"end": {
"line": 109,
"column": 36
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2513,
"end": 2514,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2517,
"end": 2518,
"loc": {
"start": {
"line": 111,
"column": 2
},
"end": {
"line": 111,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2519,
"end": 2520,
"loc": {
"start": {
"line": 112,
"column": 0
},
"end": {
"line": 112,
"column": 1
}
}
},
{
"type": "CommentBlock",
"value": "\n * This is a Red Black Tree implementation\n ",
"start": 2522,
"end": 2571,
"loc": {
"start": {
"line": 114,
"column": 0
},
"end": {
"line": 116,
"column": 3
}
}
},
{
"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": 2572,
"end": 2578,
"loc": {
"start": {
"line": 117,
"column": 0
},
"end": {
"line": 117,
"column": 6
}
}
},
{
"type": {
"label": "default",
"keyword": "default",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "default",
"start": 2579,
"end": 2586,
"loc": {
"start": {
"line": 117,
"column": 7
},
"end": {
"line": 117,
"column": 14
}
}
},
{
"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": 2587,
"end": 2592,
"loc": {
"start": {
"line": 117,
"column": 15
},
"end": {
"line": 117,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Tree",
"start": 2593,
"end": 2597,
"loc": {
"start": {
"line": 117,
"column": 21
},
"end": {
"line": 117,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2598,
"end": 2599,
"loc": {
"start": {
"line": 117,
"column": 26
},
"end": {
"line": 117,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 2602,
"end": 2613,
"loc": {
"start": {
"line": 118,
"column": 2
},
"end": {
"line": 118,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2614,
"end": 2615,
"loc": {
"start": {
"line": 118,
"column": 14
},
"end": {
"line": 118,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2615,
"end": 2616,
"loc": {
"start": {
"line": 118,
"column": 15
},
"end": {
"line": 118,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2617,
"end": 2618,
"loc": {
"start": {
"line": 118,
"column": 17
},
"end": {
"line": 118,
"column": 18
}
}
},
{
"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": 2623,
"end": 2627,
"loc": {
"start": {
"line": 119,
"column": 4
},
"end": {
"line": 119,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2627,
"end": 2628,
"loc": {
"start": {
"line": 119,
"column": 8
},
"end": {
"line": 119,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 2628,
"end": 2632,
"loc": {
"start": {
"line": 119,
"column": 9
},
"end": {
"line": 119,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2633,
"end": 2634,
"loc": {
"start": {
"line": 119,
"column": 14
},
"end": {
"line": 119,
"column": 15
}
}
},
{
"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": 2635,
"end": 2639,
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 20
}
}
},
{
"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": 2644,
"end": 2648,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2648,
"end": 2649,
"loc": {
"start": {
"line": 120,
"column": 8
},
"end": {
"line": 120,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 2649,
"end": 2655,
"loc": {
"start": {
"line": 120,
"column": 9
},
"end": {
"line": 120,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2656,
"end": 2657,
"loc": {
"start": {
"line": 120,
"column": 16
},
"end": {
"line": 120,
"column": 17
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2658,
"end": 2659,
"loc": {
"start": {
"line": 120,
"column": 18
},
"end": {
"line": 120,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2662,
"end": 2663,
"loc": {
"start": {
"line": 121,
"column": 2
},
"end": {
"line": 121,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNext",
"start": 2666,
"end": 2674,
"loc": {
"start": {
"line": 122,
"column": 2
},
"end": {
"line": 122,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2675,
"end": 2676,
"loc": {
"start": {
"line": 122,
"column": 11
},
"end": {
"line": 122,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 2676,
"end": 2678,
"loc": {
"start": {
"line": 122,
"column": 12
},
"end": {
"line": 122,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2678,
"end": 2679,
"loc": {
"start": {
"line": 122,
"column": 14
},
"end": {
"line": 122,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2680,
"end": 2681,
"loc": {
"start": {
"line": 122,
"column": 16
},
"end": {
"line": 122,
"column": 17
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 2686,
"end": 2689,
"loc": {
"start": {
"line": 123,
"column": 4
},
"end": {
"line": 123,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextID",
"start": 2690,
"end": 2696,
"loc": {
"start": {
"line": 123,
"column": 8
},
"end": {
"line": 123,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2697,
"end": 2698,
"loc": {
"start": {
"line": 123,
"column": 15
},
"end": {
"line": 123,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 2699,
"end": 2701,
"loc": {
"start": {
"line": 123,
"column": 17
},
"end": {
"line": 123,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2701,
"end": 2702,
"loc": {
"start": {
"line": 123,
"column": 19
},
"end": {
"line": 123,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clone",
"start": 2702,
"end": 2707,
"loc": {
"start": {
"line": 123,
"column": 20
},
"end": {
"line": 123,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2707,
"end": 2708,
"loc": {
"start": {
"line": 123,
"column": 25
},
"end": {
"line": 123,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2708,
"end": 2709,
"loc": {
"start": {
"line": 123,
"column": 26
},
"end": {
"line": 123,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextID",
"start": 2714,
"end": 2720,
"loc": {
"start": {
"line": 124,
"column": 4
},
"end": {
"line": 124,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2720,
"end": 2721,
"loc": {
"start": {
"line": 124,
"column": 10
},
"end": {
"line": 124,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 2721,
"end": 2726,
"loc": {
"start": {
"line": 124,
"column": 11
},
"end": {
"line": 124,
"column": 16
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 2727,
"end": 2729,
"loc": {
"start": {
"line": 124,
"column": 17
},
"end": {
"line": 124,
"column": 19
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 2730,
"end": 2731,
"loc": {
"start": {
"line": 124,
"column": 20
},
"end": {
"line": 124,
"column": 21
}
}
},
{
"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": 2736,
"end": 2742,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 125,
"column": 10
}
}
},
{
"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": 2743,
"end": 2747,
"loc": {
"start": {
"line": 125,
"column": 11
},
"end": {
"line": 125,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2747,
"end": 2748,
"loc": {
"start": {
"line": 125,
"column": 15
},
"end": {
"line": 125,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findWithLowerBound",
"start": 2748,
"end": 2766,
"loc": {
"start": {
"line": 125,
"column": 16
},
"end": {
"line": 125,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2766,
"end": 2767,
"loc": {
"start": {
"line": 125,
"column": 34
},
"end": {
"line": 125,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nextID",
"start": 2767,
"end": 2773,
"loc": {
"start": {
"line": 125,
"column": 35
},
"end": {
"line": 125,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2773,
"end": 2774,
"loc": {
"start": {
"line": 125,
"column": 41
},
"end": {
"line": 125,
"column": 42
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2777,
"end": 2778,
"loc": {
"start": {
"line": 126,
"column": 2
},
"end": {
"line": 126,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findPrev",
"start": 2781,
"end": 2789,
"loc": {
"start": {
"line": 127,
"column": 2
},
"end": {
"line": 127,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2790,
"end": 2791,
"loc": {
"start": {
"line": 127,
"column": 11
},
"end": {
"line": 127,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 2791,
"end": 2793,
"loc": {
"start": {
"line": 127,
"column": 12
},
"end": {
"line": 127,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2793,
"end": 2794,
"loc": {
"start": {
"line": 127,
"column": 14
},
"end": {
"line": 127,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2795,
"end": 2796,
"loc": {
"start": {
"line": 127,
"column": 16
},
"end": {
"line": 127,
"column": 17
}
}
},
{
"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": 2801,
"end": 2804,
"loc": {
"start": {
"line": 128,
"column": 4
},
"end": {
"line": 128,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevID",
"start": 2805,
"end": 2811,
"loc": {
"start": {
"line": 128,
"column": 8
},
"end": {
"line": 128,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2812,
"end": 2813,
"loc": {
"start": {
"line": 128,
"column": 15
},
"end": {
"line": 128,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 2814,
"end": 2816,
"loc": {
"start": {
"line": 128,
"column": 17
},
"end": {
"line": 128,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2816,
"end": 2817,
"loc": {
"start": {
"line": 128,
"column": 19
},
"end": {
"line": 128,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clone",
"start": 2817,
"end": 2822,
"loc": {
"start": {
"line": 128,
"column": 20
},
"end": {
"line": 128,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2822,
"end": 2823,
"loc": {
"start": {
"line": 128,
"column": 25
},
"end": {
"line": 128,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2823,
"end": 2824,
"loc": {
"start": {
"line": 128,
"column": 26
},
"end": {
"line": 128,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevID",
"start": 2829,
"end": 2835,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2835,
"end": 2836,
"loc": {
"start": {
"line": 129,
"column": 10
},
"end": {
"line": 129,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clock",
"start": 2836,
"end": 2841,
"loc": {
"start": {
"line": 129,
"column": 11
},
"end": {
"line": 129,
"column": 16
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "-=",
"start": 2842,
"end": 2844,
"loc": {
"start": {
"line": 129,
"column": 17
},
"end": {
"line": 129,
"column": 19
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 2845,
"end": 2846,
"loc": {
"start": {
"line": 129,
"column": 20
},
"end": {
"line": 129,
"column": 21
}
}
},
{
"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": 2851,
"end": 2857,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 10
}
}
},
{
"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": 2858,
"end": 2862,
"loc": {
"start": {
"line": 130,
"column": 11
},
"end": {
"line": 130,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2862,
"end": 2863,
"loc": {
"start": {
"line": 130,
"column": 15
},
"end": {
"line": 130,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findWithUpperBound",
"start": 2863,
"end": 2881,
"loc": {
"start": {
"line": 130,
"column": 16
},
"end": {
"line": 130,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2881,
"end": 2882,
"loc": {
"start": {
"line": 130,
"column": 34
},
"end": {
"line": 130,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevID",
"start": 2882,
"end": 2888,
"loc": {
"start": {
"line": 130,
"column": 35
},
"end": {
"line": 130,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2888,
"end": 2889,
"loc": {
"start": {
"line": 130,
"column": 41
},
"end": {
"line": 130,
"column": 42
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2892,
"end": 2893,
"loc": {
"start": {
"line": 131,
"column": 2
},
"end": {
"line": 131,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNodeWithLowerBound",
"start": 2896,
"end": 2918,
"loc": {
"start": {
"line": 132,
"column": 2
},
"end": {
"line": 132,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2919,
"end": 2920,
"loc": {
"start": {
"line": 132,
"column": 25
},
"end": {
"line": 132,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 2920,
"end": 2924,
"loc": {
"start": {
"line": 132,
"column": 26
},
"end": {
"line": 132,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2924,
"end": 2925,
"loc": {
"start": {
"line": 132,
"column": 30
},
"end": {
"line": 132,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2926,
"end": 2927,
"loc": {
"start": {
"line": 132,
"column": 32
},
"end": {
"line": 132,
"column": 33
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 2932,
"end": 2935,
"loc": {
"start": {
"line": 133,
"column": 4
},
"end": {
"line": 133,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 2936,
"end": 2937,
"loc": {
"start": {
"line": 133,
"column": 8
},
"end": {
"line": 133,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2938,
"end": 2939,
"loc": {
"start": {
"line": 133,
"column": 10
},
"end": {
"line": 133,
"column": 11
}
}
},
{
"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": 2940,
"end": 2944,
"loc": {
"start": {
"line": 133,
"column": 12
},
"end": {
"line": 133,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2944,
"end": 2945,
"loc": {
"start": {
"line": 133,
"column": 16
},
"end": {
"line": 133,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 2945,
"end": 2949,
"loc": {
"start": {
"line": 133,
"column": 17
},
"end": {
"line": 133,
"column": 21
}
}
},
{
"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": 2954,
"end": 2956,
"loc": {
"start": {
"line": 134,
"column": 4
},
"end": {
"line": 134,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2957,
"end": 2958,
"loc": {
"start": {
"line": 134,
"column": 7
},
"end": {
"line": 134,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 2958,
"end": 2959,
"loc": {
"start": {
"line": 134,
"column": 8
},
"end": {
"line": 134,
"column": 9
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 2960,
"end": 2963,
"loc": {
"start": {
"line": 134,
"column": 10
},
"end": {
"line": 134,
"column": 13
}
}
},
{
"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": 2964,
"end": 2968,
"loc": {
"start": {
"line": 134,
"column": 14
},
"end": {
"line": 134,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2968,
"end": 2969,
"loc": {
"start": {
"line": 134,
"column": 18
},
"end": {
"line": 134,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2970,
"end": 2971,
"loc": {
"start": {
"line": 134,
"column": 20
},
"end": {
"line": 134,
"column": 21
}
}
},
{
"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": 2978,
"end": 2984,
"loc": {
"start": {
"line": 135,
"column": 6
},
"end": {
"line": 135,
"column": 12
}
}
},
{
"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": 2985,
"end": 2989,
"loc": {
"start": {
"line": 135,
"column": 13
},
"end": {
"line": 135,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2994,
"end": 2995,
"loc": {
"start": {
"line": 136,
"column": 4
},
"end": {
"line": 136,
"column": 5
}
}
},
{
"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": 2996,
"end": 3000,
"loc": {
"start": {
"line": 136,
"column": 6
},
"end": {
"line": 136,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3001,
"end": 3002,
"loc": {
"start": {
"line": 136,
"column": 11
},
"end": {
"line": 136,
"column": 12
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 3009,
"end": 3014,
"loc": {
"start": {
"line": 137,
"column": 6
},
"end": {
"line": 137,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3015,
"end": 3016,
"loc": {
"start": {
"line": 137,
"column": 12
},
"end": {
"line": 137,
"column": 13
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 3016,
"end": 3020,
"loc": {
"start": {
"line": 137,
"column": 13
},
"end": {
"line": 137,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3020,
"end": 3021,
"loc": {
"start": {
"line": 137,
"column": 17
},
"end": {
"line": 137,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3022,
"end": 3023,
"loc": {
"start": {
"line": 137,
"column": 19
},
"end": {
"line": 137,
"column": 20
}
}
},
{
"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": 3032,
"end": 3034,
"loc": {
"start": {
"line": 138,
"column": 8
},
"end": {
"line": 138,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3035,
"end": 3036,
"loc": {
"start": {
"line": 138,
"column": 11
},
"end": {
"line": 138,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 3036,
"end": 3040,
"loc": {
"start": {
"line": 138,
"column": 12
},
"end": {
"line": 138,
"column": 16
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 3041,
"end": 3044,
"loc": {
"start": {
"line": 138,
"column": 17
},
"end": {
"line": 138,
"column": 20
}
}
},
{
"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": 3045,
"end": 3049,
"loc": {
"start": {
"line": 138,
"column": 21
},
"end": {
"line": 138,
"column": 25
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 3050,
"end": 3052,
"loc": {
"start": {
"line": 138,
"column": 26
},
"end": {
"line": 138,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3053,
"end": 3054,
"loc": {
"start": {
"line": 138,
"column": 29
},
"end": {
"line": 138,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 3054,
"end": 3058,
"loc": {
"start": {
"line": 138,
"column": 30
},
"end": {
"line": 138,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3058,
"end": 3059,
"loc": {
"start": {
"line": 138,
"column": 34
},
"end": {
"line": 138,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 3059,
"end": 3067,
"loc": {
"start": {
"line": 138,
"column": 35
},
"end": {
"line": 138,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3067,
"end": 3068,
"loc": {
"start": {
"line": 138,
"column": 43
},
"end": {
"line": 138,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3068,
"end": 3069,
"loc": {
"start": {
"line": 138,
"column": 44
},
"end": {
"line": 138,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3069,
"end": 3070,
"loc": {
"start": {
"line": 138,
"column": 45
},
"end": {
"line": 138,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 3070,
"end": 3073,
"loc": {
"start": {
"line": 138,
"column": 46
},
"end": {
"line": 138,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3073,
"end": 3074,
"loc": {
"start": {
"line": 138,
"column": 49
},
"end": {
"line": 138,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 3074,
"end": 3077,
"loc": {
"start": {
"line": 138,
"column": 50
},
"end": {
"line": 138,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3077,
"end": 3078,
"loc": {
"start": {
"line": 138,
"column": 53
},
"end": {
"line": 138,
"column": 54
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 3079,
"end": 3081,
"loc": {
"start": {
"line": 138,
"column": 55
},
"end": {
"line": 138,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3082,
"end": 3083,
"loc": {
"start": {
"line": 138,
"column": 58
},
"end": {
"line": 138,
"column": 59
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3083,
"end": 3084,
"loc": {
"start": {
"line": 138,
"column": 59
},
"end": {
"line": 138,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 3084,
"end": 3088,
"loc": {
"start": {
"line": 138,
"column": 60
},
"end": {
"line": 138,
"column": 64
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 3089,
"end": 3092,
"loc": {
"start": {
"line": 138,
"column": 65
},
"end": {
"line": 138,
"column": 68
}
}
},
{
"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": 3093,
"end": 3097,
"loc": {
"start": {
"line": 138,
"column": 69
},
"end": {
"line": 138,
"column": 73
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3097,
"end": 3098,
"loc": {
"start": {
"line": 138,
"column": 73
},
"end": {
"line": 138,
"column": 74
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3098,
"end": 3099,
"loc": {
"start": {
"line": 138,
"column": 74
},
"end": {
"line": 138,
"column": 75
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3100,
"end": 3101,
"loc": {
"start": {
"line": 138,
"column": 76
},
"end": {
"line": 138,
"column": 77
}
}
},
{
"type": "CommentLine",
"value": " o is included in the bound",
"start": 3112,
"end": 3141,
"loc": {
"start": {
"line": 139,
"column": 10
},
"end": {
"line": 139,
"column": 39
}
}
},
{
"type": "CommentLine",
"value": " try to find an element that is closer to the bound",
"start": 3152,
"end": 3205,
"loc": {
"start": {
"line": 140,
"column": 10
},
"end": {
"line": 140,
"column": 63
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3216,
"end": 3217,
"loc": {
"start": {
"line": 141,
"column": 10
},
"end": {
"line": 141,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3218,
"end": 3219,
"loc": {
"start": {
"line": 141,
"column": 12
},
"end": {
"line": 141,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3220,
"end": 3221,
"loc": {
"start": {
"line": 141,
"column": 14
},
"end": {
"line": 141,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3221,
"end": 3222,
"loc": {
"start": {
"line": 141,
"column": 15
},
"end": {
"line": 141,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 3222,
"end": 3226,
"loc": {
"start": {
"line": 141,
"column": 16
},
"end": {
"line": 141,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3235,
"end": 3236,
"loc": {
"start": {
"line": 142,
"column": 8
},
"end": {
"line": 142,
"column": 9
}
}
},
{
"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": 3237,
"end": 3241,
"loc": {
"start": {
"line": 142,
"column": 10
},
"end": {
"line": 142,
"column": 14
}
}
},
{
"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": 3242,
"end": 3244,
"loc": {
"start": {
"line": 142,
"column": 15
},
"end": {
"line": 142,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3245,
"end": 3246,
"loc": {
"start": {
"line": 142,
"column": 18
},
"end": {
"line": 142,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 3246,
"end": 3250,
"loc": {
"start": {
"line": 142,
"column": 19
},
"end": {
"line": 142,
"column": 23
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 3251,
"end": 3254,
"loc": {
"start": {
"line": 142,
"column": 24
},
"end": {
"line": 142,
"column": 27
}
}
},
{
"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": 3255,
"end": 3259,
"loc": {
"start": {
"line": 142,
"column": 28
},
"end": {
"line": 142,
"column": 32
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 3260,
"end": 3262,
"loc": {
"start": {
"line": 142,
"column": 33
},
"end": {
"line": 142,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3263,
"end": 3264,
"loc": {
"start": {
"line": 142,
"column": 36
},
"end": {
"line": 142,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3264,
"end": 3265,
"loc": {
"start": {
"line": 142,
"column": 37
},
"end": {
"line": 142,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 3265,
"end": 3268,
"loc": {
"start": {
"line": 142,
"column": 38
},
"end": {
"line": 142,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3268,
"end": 3269,
"loc": {
"start": {
"line": 142,
"column": 41
},
"end": {
"line": 142,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 3269,
"end": 3272,
"loc": {
"start": {
"line": 142,
"column": 42
},
"end": {
"line": 142,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3272,
"end": 3273,
"loc": {
"start": {
"line": 142,
"column": 45
},
"end": {
"line": 142,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 3273,
"end": 3281,
"loc": {
"start": {
"line": 142,
"column": 46
},
"end": {
"line": 142,
"column": 54
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3281,
"end": 3282,
"loc": {
"start": {
"line": 142,
"column": 54
},
"end": {
"line": 142,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 3282,
"end": 3286,
"loc": {
"start": {
"line": 142,
"column": 55
},
"end": {
"line": 142,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3286,
"end": 3287,
"loc": {
"start": {
"line": 142,
"column": 59
},
"end": {
"line": 142,
"column": 60
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3287,
"end": 3288,
"loc": {
"start": {
"line": 142,
"column": 60
},
"end": {
"line": 142,
"column": 61
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3289,
"end": 3290,
"loc": {
"start": {
"line": 142,
"column": 62
},
"end": {
"line": 142,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " o is not within the bound, maybe one of the right elements is..",
"start": 3301,
"end": 3367,
"loc": {
"start": {
"line": 143,
"column": 10
},
"end": {
"line": 143,
"column": 76
}
}
},
{
"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": 3378,
"end": 3380,
"loc": {
"start": {
"line": 144,
"column": 10
},
"end": {
"line": 144,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3381,
"end": 3382,
"loc": {
"start": {
"line": 144,
"column": 13
},
"end": {
"line": 144,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3382,
"end": 3383,
"loc": {
"start": {
"line": 144,
"column": 14
},
"end": {
"line": 144,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3383,
"end": 3384,
"loc": {
"start": {
"line": 144,
"column": 15
},
"end": {
"line": 144,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3384,
"end": 3389,
"loc": {
"start": {
"line": 144,
"column": 16
},
"end": {
"line": 144,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 3390,
"end": 3393,
"loc": {
"start": {
"line": 144,
"column": 22
},
"end": {
"line": 144,
"column": 25
}
}
},
{
"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": 3394,
"end": 3398,
"loc": {
"start": {
"line": 144,
"column": 26
},
"end": {
"line": 144,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3398,
"end": 3399,
"loc": {
"start": {
"line": 144,
"column": 30
},
"end": {
"line": 144,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3400,
"end": 3401,
"loc": {
"start": {
"line": 144,
"column": 32
},
"end": {
"line": 144,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3414,
"end": 3415,
"loc": {
"start": {
"line": 145,
"column": 12
},
"end": {
"line": 145,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3416,
"end": 3417,
"loc": {
"start": {
"line": 145,
"column": 14
},
"end": {
"line": 145,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3418,
"end": 3419,
"loc": {
"start": {
"line": 145,
"column": 16
},
"end": {
"line": 145,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3419,
"end": 3420,
"loc": {
"start": {
"line": 145,
"column": 17
},
"end": {
"line": 145,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3420,
"end": 3425,
"loc": {
"start": {
"line": 145,
"column": 18
},
"end": {
"line": 145,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3436,
"end": 3437,
"loc": {
"start": {
"line": 146,
"column": 10
},
"end": {
"line": 146,
"column": 11
}
}
},
{
"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": 3438,
"end": 3442,
"loc": {
"start": {
"line": 146,
"column": 12
},
"end": {
"line": 146,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3443,
"end": 3444,
"loc": {
"start": {
"line": 146,
"column": 17
},
"end": {
"line": 146,
"column": 18
}
}
},
{
"type": "CommentLine",
"value": " there is no right element. Search for the next bigger element,",
"start": 3457,
"end": 3522,
"loc": {
"start": {
"line": 147,
"column": 12
},
"end": {
"line": 147,
"column": 77
}
}
},
{
"type": "CommentLine",
"value": " this should be within the bounds",
"start": 3535,
"end": 3570,
"loc": {
"start": {
"line": 148,
"column": 12
},
"end": {
"line": 148,
"column": 47
}
}
},
{
"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": 3583,
"end": 3589,
"loc": {
"start": {
"line": 149,
"column": 12
},
"end": {
"line": 149,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3590,
"end": 3591,
"loc": {
"start": {
"line": 149,
"column": 19
},
"end": {
"line": 149,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3591,
"end": 3592,
"loc": {
"start": {
"line": 149,
"column": 20
},
"end": {
"line": 149,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "next",
"start": 3592,
"end": 3596,
"loc": {
"start": {
"line": 149,
"column": 21
},
"end": {
"line": 149,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3596,
"end": 3597,
"loc": {
"start": {
"line": 149,
"column": 25
},
"end": {
"line": 149,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3597,
"end": 3598,
"loc": {
"start": {
"line": 149,
"column": 26
},
"end": {
"line": 149,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3609,
"end": 3610,
"loc": {
"start": {
"line": 150,
"column": 10
},
"end": {
"line": 150,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3619,
"end": 3620,
"loc": {
"start": {
"line": 151,
"column": 8
},
"end": {
"line": 151,
"column": 9
}
}
},
{
"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": 3621,
"end": 3625,
"loc": {
"start": {
"line": 151,
"column": 10
},
"end": {
"line": 151,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3626,
"end": 3627,
"loc": {
"start": {
"line": 151,
"column": 15
},
"end": {
"line": 151,
"column": 16
}
}
},
{
"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": 3638,
"end": 3644,
"loc": {
"start": {
"line": 152,
"column": 10
},
"end": {
"line": 152,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3645,
"end": 3646,
"loc": {
"start": {
"line": 152,
"column": 17
},
"end": {
"line": 152,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3655,
"end": 3656,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3663,
"end": 3664,
"loc": {
"start": {
"line": 154,
"column": 6
},
"end": {
"line": 154,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3669,
"end": 3670,
"loc": {
"start": {
"line": 155,
"column": 4
},
"end": {
"line": 155,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3673,
"end": 3674,
"loc": {
"start": {
"line": 156,
"column": 2
},
"end": {
"line": 156,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNodeWithUpperBound",
"start": 3677,
"end": 3699,
"loc": {
"start": {
"line": 157,
"column": 2
},
"end": {
"line": 157,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3700,
"end": 3701,
"loc": {
"start": {
"line": 157,
"column": 25
},
"end": {
"line": 157,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 3701,
"end": 3703,
"loc": {
"start": {
"line": 157,
"column": 26
},
"end": {
"line": 157,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3703,
"end": 3704,
"loc": {
"start": {
"line": 157,
"column": 28
},
"end": {
"line": 157,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3705,
"end": 3706,
"loc": {
"start": {
"line": 157,
"column": 30
},
"end": {
"line": 157,
"column": 31
}
}
},
{
"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": 3711,
"end": 3713,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 158,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3714,
"end": 3715,
"loc": {
"start": {
"line": 158,
"column": 7
},
"end": {
"line": 158,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 3715,
"end": 3717,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 10
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 3718,
"end": 3721,
"loc": {
"start": {
"line": 158,
"column": 11
},
"end": {
"line": 158,
"column": 14
}
}
},
{
"type": {
"label": "void",
"keyword": "void",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "void",
"start": 3722,
"end": 3726,
"loc": {
"start": {
"line": 158,
"column": 15
},
"end": {
"line": 158,
"column": 19
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3727,
"end": 3728,
"loc": {
"start": {
"line": 158,
"column": 20
},
"end": {
"line": 158,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3728,
"end": 3729,
"loc": {
"start": {
"line": 158,
"column": 21
},
"end": {
"line": 158,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3730,
"end": 3731,
"loc": {
"start": {
"line": 158,
"column": 23
},
"end": {
"line": 158,
"column": 24
}
}
},
{
"type": {
"label": "throw",
"keyword": "throw",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "throw",
"start": 3738,
"end": 3743,
"loc": {
"start": {
"line": 159,
"column": 6
},
"end": {
"line": 159,
"column": 11
}
}
},
{
"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": 3744,
"end": 3747,
"loc": {
"start": {
"line": 159,
"column": 12
},
"end": {
"line": 159,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Error",
"start": 3748,
"end": 3753,
"loc": {
"start": {
"line": 159,
"column": 16
},
"end": {
"line": 159,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3753,
"end": 3754,
"loc": {
"start": {
"line": 159,
"column": 21
},
"end": {
"line": 159,
"column": 22
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "You must define from!",
"start": 3754,
"end": 3777,
"loc": {
"start": {
"line": 159,
"column": 22
},
"end": {
"line": 159,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3777,
"end": 3778,
"loc": {
"start": {
"line": 159,
"column": 45
},
"end": {
"line": 159,
"column": 46
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3783,
"end": 3784,
"loc": {
"start": {
"line": 160,
"column": 4
},
"end": {
"line": 160,
"column": 5
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 3789,
"end": 3792,
"loc": {
"start": {
"line": 161,
"column": 4
},
"end": {
"line": 161,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3793,
"end": 3794,
"loc": {
"start": {
"line": 161,
"column": 8
},
"end": {
"line": 161,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3795,
"end": 3796,
"loc": {
"start": {
"line": 161,
"column": 10
},
"end": {
"line": 161,
"column": 11
}
}
},
{
"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": 3797,
"end": 3801,
"loc": {
"start": {
"line": 161,
"column": 12
},
"end": {
"line": 161,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3801,
"end": 3802,
"loc": {
"start": {
"line": 161,
"column": 16
},
"end": {
"line": 161,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 3802,
"end": 3806,
"loc": {
"start": {
"line": 161,
"column": 17
},
"end": {
"line": 161,
"column": 21
}
}
},
{
"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": 3811,
"end": 3813,
"loc": {
"start": {
"line": 162,
"column": 4
},
"end": {
"line": 162,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3814,
"end": 3815,
"loc": {
"start": {
"line": 162,
"column": 7
},
"end": {
"line": 162,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3815,
"end": 3816,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 9
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 3817,
"end": 3820,
"loc": {
"start": {
"line": 162,
"column": 10
},
"end": {
"line": 162,
"column": 13
}
}
},
{
"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": 3821,
"end": 3825,
"loc": {
"start": {
"line": 162,
"column": 14
},
"end": {
"line": 162,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3825,
"end": 3826,
"loc": {
"start": {
"line": 162,
"column": 18
},
"end": {
"line": 162,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3827,
"end": 3828,
"loc": {
"start": {
"line": 162,
"column": 20
},
"end": {
"line": 162,
"column": 21
}
}
},
{
"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": 3835,
"end": 3841,
"loc": {
"start": {
"line": 163,
"column": 6
},
"end": {
"line": 163,
"column": 12
}
}
},
{
"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": 3842,
"end": 3846,
"loc": {
"start": {
"line": 163,
"column": 13
},
"end": {
"line": 163,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3851,
"end": 3852,
"loc": {
"start": {
"line": 164,
"column": 4
},
"end": {
"line": 164,
"column": 5
}
}
},
{
"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": 3853,
"end": 3857,
"loc": {
"start": {
"line": 164,
"column": 6
},
"end": {
"line": 164,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3858,
"end": 3859,
"loc": {
"start": {
"line": 164,
"column": 11
},
"end": {
"line": 164,
"column": 12
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 3866,
"end": 3871,
"loc": {
"start": {
"line": 165,
"column": 6
},
"end": {
"line": 165,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3872,
"end": 3873,
"loc": {
"start": {
"line": 165,
"column": 12
},
"end": {
"line": 165,
"column": 13
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 3873,
"end": 3877,
"loc": {
"start": {
"line": 165,
"column": 13
},
"end": {
"line": 165,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3877,
"end": 3878,
"loc": {
"start": {
"line": 165,
"column": 17
},
"end": {
"line": 165,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3879,
"end": 3880,
"loc": {
"start": {
"line": 165,
"column": 19
},
"end": {
"line": 165,
"column": 20
}
}
},
{
"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": 3889,
"end": 3891,
"loc": {
"start": {
"line": 166,
"column": 8
},
"end": {
"line": 166,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3892,
"end": 3893,
"loc": {
"start": {
"line": 166,
"column": 11
},
"end": {
"line": 166,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3893,
"end": 3894,
"loc": {
"start": {
"line": 166,
"column": 12
},
"end": {
"line": 166,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 3894,
"end": 3896,
"loc": {
"start": {
"line": 166,
"column": 13
},
"end": {
"line": 166,
"column": 15
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 3897,
"end": 3900,
"loc": {
"start": {
"line": 166,
"column": 16
},
"end": {
"line": 166,
"column": 19
}
}
},
{
"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": 3901,
"end": 3905,
"loc": {
"start": {
"line": 166,
"column": 20
},
"end": {
"line": 166,
"column": 24
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 3906,
"end": 3908,
"loc": {
"start": {
"line": 166,
"column": 25
},
"end": {
"line": 166,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3909,
"end": 3910,
"loc": {
"start": {
"line": 166,
"column": 28
},
"end": {
"line": 166,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3910,
"end": 3911,
"loc": {
"start": {
"line": 166,
"column": 29
},
"end": {
"line": 166,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 3911,
"end": 3914,
"loc": {
"start": {
"line": 166,
"column": 30
},
"end": {
"line": 166,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3914,
"end": 3915,
"loc": {
"start": {
"line": 166,
"column": 33
},
"end": {
"line": 166,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 3915,
"end": 3918,
"loc": {
"start": {
"line": 166,
"column": 34
},
"end": {
"line": 166,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3918,
"end": 3919,
"loc": {
"start": {
"line": 166,
"column": 37
},
"end": {
"line": 166,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 3919,
"end": 3927,
"loc": {
"start": {
"line": 166,
"column": 38
},
"end": {
"line": 166,
"column": 46
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3927,
"end": 3928,
"loc": {
"start": {
"line": 166,
"column": 46
},
"end": {
"line": 166,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 3928,
"end": 3930,
"loc": {
"start": {
"line": 166,
"column": 47
},
"end": {
"line": 166,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3930,
"end": 3931,
"loc": {
"start": {
"line": 166,
"column": 49
},
"end": {
"line": 166,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3931,
"end": 3932,
"loc": {
"start": {
"line": 166,
"column": 50
},
"end": {
"line": 166,
"column": 51
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 3933,
"end": 3935,
"loc": {
"start": {
"line": 166,
"column": 52
},
"end": {
"line": 166,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 3936,
"end": 3937,
"loc": {
"start": {
"line": 166,
"column": 55
},
"end": {
"line": 166,
"column": 56
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3937,
"end": 3938,
"loc": {
"start": {
"line": 166,
"column": 56
},
"end": {
"line": 166,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3938,
"end": 3943,
"loc": {
"start": {
"line": 166,
"column": 57
},
"end": {
"line": 166,
"column": 62
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 3944,
"end": 3947,
"loc": {
"start": {
"line": 166,
"column": 63
},
"end": {
"line": 166,
"column": 66
}
}
},
{
"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": 3948,
"end": 3952,
"loc": {
"start": {
"line": 166,
"column": 67
},
"end": {
"line": 166,
"column": 71
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3952,
"end": 3953,
"loc": {
"start": {
"line": 166,
"column": 71
},
"end": {
"line": 166,
"column": 72
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3954,
"end": 3955,
"loc": {
"start": {
"line": 166,
"column": 73
},
"end": {
"line": 166,
"column": 74
}
}
},
{
"type": "CommentLine",
"value": " o is included in the bound",
"start": 3966,
"end": 3995,
"loc": {
"start": {
"line": 167,
"column": 10
},
"end": {
"line": 167,
"column": 39
}
}
},
{
"type": "CommentLine",
"value": " try to find an element that is closer to the bound",
"start": 4006,
"end": 4059,
"loc": {
"start": {
"line": 168,
"column": 10
},
"end": {
"line": 168,
"column": 63
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4070,
"end": 4071,
"loc": {
"start": {
"line": 169,
"column": 10
},
"end": {
"line": 169,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4072,
"end": 4073,
"loc": {
"start": {
"line": 169,
"column": 12
},
"end": {
"line": 169,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4074,
"end": 4075,
"loc": {
"start": {
"line": 169,
"column": 14
},
"end": {
"line": 169,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4075,
"end": 4076,
"loc": {
"start": {
"line": 169,
"column": 15
},
"end": {
"line": 169,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 4076,
"end": 4081,
"loc": {
"start": {
"line": 169,
"column": 16
},
"end": {
"line": 169,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4090,
"end": 4091,
"loc": {
"start": {
"line": 170,
"column": 8
},
"end": {
"line": 170,
"column": 9
}
}
},
{
"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": 4092,
"end": 4096,
"loc": {
"start": {
"line": 170,
"column": 10
},
"end": {
"line": 170,
"column": 14
}
}
},
{
"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": 4097,
"end": 4099,
"loc": {
"start": {
"line": 170,
"column": 15
},
"end": {
"line": 170,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4100,
"end": 4101,
"loc": {
"start": {
"line": 170,
"column": 18
},
"end": {
"line": 170,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 4101,
"end": 4103,
"loc": {
"start": {
"line": 170,
"column": 19
},
"end": {
"line": 170,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 4104,
"end": 4107,
"loc": {
"start": {
"line": 170,
"column": 22
},
"end": {
"line": 170,
"column": 25
}
}
},
{
"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": 4108,
"end": 4112,
"loc": {
"start": {
"line": 170,
"column": 26
},
"end": {
"line": 170,
"column": 30
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 4113,
"end": 4115,
"loc": {
"start": {
"line": 170,
"column": 31
},
"end": {
"line": 170,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 4116,
"end": 4118,
"loc": {
"start": {
"line": 170,
"column": 34
},
"end": {
"line": 170,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4118,
"end": 4119,
"loc": {
"start": {
"line": 170,
"column": 36
},
"end": {
"line": 170,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 4119,
"end": 4127,
"loc": {
"start": {
"line": 170,
"column": 37
},
"end": {
"line": 170,
"column": 45
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4127,
"end": 4128,
"loc": {
"start": {
"line": 170,
"column": 45
},
"end": {
"line": 170,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4128,
"end": 4129,
"loc": {
"start": {
"line": 170,
"column": 46
},
"end": {
"line": 170,
"column": 47
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4129,
"end": 4130,
"loc": {
"start": {
"line": 170,
"column": 47
},
"end": {
"line": 170,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 4130,
"end": 4133,
"loc": {
"start": {
"line": 170,
"column": 48
},
"end": {
"line": 170,
"column": 51
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4133,
"end": 4134,
"loc": {
"start": {
"line": 170,
"column": 51
},
"end": {
"line": 170,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 4134,
"end": 4137,
"loc": {
"start": {
"line": 170,
"column": 52
},
"end": {
"line": 170,
"column": 55
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4137,
"end": 4138,
"loc": {
"start": {
"line": 170,
"column": 55
},
"end": {
"line": 170,
"column": 56
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4138,
"end": 4139,
"loc": {
"start": {
"line": 170,
"column": 56
},
"end": {
"line": 170,
"column": 57
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4140,
"end": 4141,
"loc": {
"start": {
"line": 170,
"column": 58
},
"end": {
"line": 170,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " o is not within the bound, maybe one of the left elements is..",
"start": 4152,
"end": 4217,
"loc": {
"start": {
"line": 171,
"column": 10
},
"end": {
"line": 171,
"column": 75
}
}
},
{
"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": 4228,
"end": 4230,
"loc": {
"start": {
"line": 172,
"column": 10
},
"end": {
"line": 172,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4231,
"end": 4232,
"loc": {
"start": {
"line": 172,
"column": 13
},
"end": {
"line": 172,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4232,
"end": 4233,
"loc": {
"start": {
"line": 172,
"column": 14
},
"end": {
"line": 172,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4233,
"end": 4234,
"loc": {
"start": {
"line": 172,
"column": 15
},
"end": {
"line": 172,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 4234,
"end": 4238,
"loc": {
"start": {
"line": 172,
"column": 16
},
"end": {
"line": 172,
"column": 20
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 4239,
"end": 4242,
"loc": {
"start": {
"line": 172,
"column": 21
},
"end": {
"line": 172,
"column": 24
}
}
},
{
"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": 4243,
"end": 4247,
"loc": {
"start": {
"line": 172,
"column": 25
},
"end": {
"line": 172,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4247,
"end": 4248,
"loc": {
"start": {
"line": 172,
"column": 29
},
"end": {
"line": 172,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4249,
"end": 4250,
"loc": {
"start": {
"line": 172,
"column": 31
},
"end": {
"line": 172,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4263,
"end": 4264,
"loc": {
"start": {
"line": 173,
"column": 12
},
"end": {
"line": 173,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4265,
"end": 4266,
"loc": {
"start": {
"line": 173,
"column": 14
},
"end": {
"line": 173,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4267,
"end": 4268,
"loc": {
"start": {
"line": 173,
"column": 16
},
"end": {
"line": 173,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4268,
"end": 4269,
"loc": {
"start": {
"line": 173,
"column": 17
},
"end": {
"line": 173,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 4269,
"end": 4273,
"loc": {
"start": {
"line": 173,
"column": 18
},
"end": {
"line": 173,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4284,
"end": 4285,
"loc": {
"start": {
"line": 174,
"column": 10
},
"end": {
"line": 174,
"column": 11
}
}
},
{
"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": 4286,
"end": 4290,
"loc": {
"start": {
"line": 174,
"column": 12
},
"end": {
"line": 174,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4291,
"end": 4292,
"loc": {
"start": {
"line": 174,
"column": 17
},
"end": {
"line": 174,
"column": 18
}
}
},
{
"type": "CommentLine",
"value": " there is no left element. Search for the prev smaller element,",
"start": 4305,
"end": 4370,
"loc": {
"start": {
"line": 175,
"column": 12
},
"end": {
"line": 175,
"column": 77
}
}
},
{
"type": "CommentLine",
"value": " this should be within the bounds",
"start": 4383,
"end": 4418,
"loc": {
"start": {
"line": 176,
"column": 12
},
"end": {
"line": 176,
"column": 47
}
}
},
{
"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": 4431,
"end": 4437,
"loc": {
"start": {
"line": 177,
"column": 12
},
"end": {
"line": 177,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4438,
"end": 4439,
"loc": {
"start": {
"line": 177,
"column": 19
},
"end": {
"line": 177,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4439,
"end": 4440,
"loc": {
"start": {
"line": 177,
"column": 20
},
"end": {
"line": 177,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prev",
"start": 4440,
"end": 4444,
"loc": {
"start": {
"line": 177,
"column": 21
},
"end": {
"line": 177,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4444,
"end": 4445,
"loc": {
"start": {
"line": 177,
"column": 25
},
"end": {
"line": 177,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4445,
"end": 4446,
"loc": {
"start": {
"line": 177,
"column": 26
},
"end": {
"line": 177,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4457,
"end": 4458,
"loc": {
"start": {
"line": 178,
"column": 10
},
"end": {
"line": 178,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4467,
"end": 4468,
"loc": {
"start": {
"line": 179,
"column": 8
},
"end": {
"line": 179,
"column": 9
}
}
},
{
"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": 4469,
"end": 4473,
"loc": {
"start": {
"line": 179,
"column": 10
},
"end": {
"line": 179,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4474,
"end": 4475,
"loc": {
"start": {
"line": 179,
"column": 15
},
"end": {
"line": 179,
"column": 16
}
}
},
{
"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": 4486,
"end": 4492,
"loc": {
"start": {
"line": 180,
"column": 10
},
"end": {
"line": 180,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4493,
"end": 4494,
"loc": {
"start": {
"line": 180,
"column": 17
},
"end": {
"line": 180,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4503,
"end": 4504,
"loc": {
"start": {
"line": 181,
"column": 8
},
"end": {
"line": 181,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4511,
"end": 4512,
"loc": {
"start": {
"line": 182,
"column": 6
},
"end": {
"line": 182,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4517,
"end": 4518,
"loc": {
"start": {
"line": 183,
"column": 4
},
"end": {
"line": 183,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4521,
"end": 4522,
"loc": {
"start": {
"line": 184,
"column": 2
},
"end": {
"line": 184,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findSmallestNode",
"start": 4525,
"end": 4541,
"loc": {
"start": {
"line": 185,
"column": 2
},
"end": {
"line": 185,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4542,
"end": 4543,
"loc": {
"start": {
"line": 185,
"column": 19
},
"end": {
"line": 185,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4543,
"end": 4544,
"loc": {
"start": {
"line": 185,
"column": 20
},
"end": {
"line": 185,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4545,
"end": 4546,
"loc": {
"start": {
"line": 185,
"column": 22
},
"end": {
"line": 185,
"column": 23
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 4551,
"end": 4554,
"loc": {
"start": {
"line": 186,
"column": 4
},
"end": {
"line": 186,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4555,
"end": 4556,
"loc": {
"start": {
"line": 186,
"column": 8
},
"end": {
"line": 186,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4557,
"end": 4558,
"loc": {
"start": {
"line": 186,
"column": 10
},
"end": {
"line": 186,
"column": 11
}
}
},
{
"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": 4559,
"end": 4563,
"loc": {
"start": {
"line": 186,
"column": 12
},
"end": {
"line": 186,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4563,
"end": 4564,
"loc": {
"start": {
"line": 186,
"column": 16
},
"end": {
"line": 186,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 4564,
"end": 4568,
"loc": {
"start": {
"line": 186,
"column": 17
},
"end": {
"line": 186,
"column": 21
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 4573,
"end": 4578,
"loc": {
"start": {
"line": 187,
"column": 4
},
"end": {
"line": 187,
"column": 9
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4579,
"end": 4580,
"loc": {
"start": {
"line": 187,
"column": 10
},
"end": {
"line": 187,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4580,
"end": 4581,
"loc": {
"start": {
"line": 187,
"column": 11
},
"end": {
"line": 187,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!=",
"start": 4582,
"end": 4584,
"loc": {
"start": {
"line": 187,
"column": 13
},
"end": {
"line": 187,
"column": 15
}
}
},
{
"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": 4585,
"end": 4589,
"loc": {
"start": {
"line": 187,
"column": 16
},
"end": {
"line": 187,
"column": 20
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 4590,
"end": 4592,
"loc": {
"start": {
"line": 187,
"column": 21
},
"end": {
"line": 187,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4593,
"end": 4594,
"loc": {
"start": {
"line": 187,
"column": 24
},
"end": {
"line": 187,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4594,
"end": 4595,
"loc": {
"start": {
"line": 187,
"column": 25
},
"end": {
"line": 187,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 4595,
"end": 4599,
"loc": {
"start": {
"line": 187,
"column": 26
},
"end": {
"line": 187,
"column": 30
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!=",
"start": 4600,
"end": 4602,
"loc": {
"start": {
"line": 187,
"column": 31
},
"end": {
"line": 187,
"column": 33
}
}
},
{
"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": 4603,
"end": 4607,
"loc": {
"start": {
"line": 187,
"column": 34
},
"end": {
"line": 187,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4607,
"end": 4608,
"loc": {
"start": {
"line": 187,
"column": 38
},
"end": {
"line": 187,
"column": 39
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4609,
"end": 4610,
"loc": {
"start": {
"line": 187,
"column": 40
},
"end": {
"line": 187,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4617,
"end": 4618,
"loc": {
"start": {
"line": 188,
"column": 6
},
"end": {
"line": 188,
"column": 7
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4619,
"end": 4620,
"loc": {
"start": {
"line": 188,
"column": 8
},
"end": {
"line": 188,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4621,
"end": 4622,
"loc": {
"start": {
"line": 188,
"column": 10
},
"end": {
"line": 188,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4622,
"end": 4623,
"loc": {
"start": {
"line": 188,
"column": 11
},
"end": {
"line": 188,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 4623,
"end": 4627,
"loc": {
"start": {
"line": 188,
"column": 12
},
"end": {
"line": 188,
"column": 16
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4632,
"end": 4633,
"loc": {
"start": {
"line": 189,
"column": 4
},
"end": {
"line": 189,
"column": 5
}
}
},
{
"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": 4638,
"end": 4644,
"loc": {
"start": {
"line": 190,
"column": 4
},
"end": {
"line": 190,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4645,
"end": 4646,
"loc": {
"start": {
"line": 190,
"column": 11
},
"end": {
"line": 190,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4649,
"end": 4650,
"loc": {
"start": {
"line": 191,
"column": 2
},
"end": {
"line": 191,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findWithLowerBound",
"start": 4653,
"end": 4671,
"loc": {
"start": {
"line": 192,
"column": 2
},
"end": {
"line": 192,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4672,
"end": 4673,
"loc": {
"start": {
"line": 192,
"column": 21
},
"end": {
"line": 192,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 4673,
"end": 4677,
"loc": {
"start": {
"line": 192,
"column": 22
},
"end": {
"line": 192,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4677,
"end": 4678,
"loc": {
"start": {
"line": 192,
"column": 26
},
"end": {
"line": 192,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4679,
"end": 4680,
"loc": {
"start": {
"line": 192,
"column": 28
},
"end": {
"line": 192,
"column": 29
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 4685,
"end": 4688,
"loc": {
"start": {
"line": 193,
"column": 4
},
"end": {
"line": 193,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 4689,
"end": 4690,
"loc": {
"start": {
"line": 193,
"column": 8
},
"end": {
"line": 193,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4691,
"end": 4692,
"loc": {
"start": {
"line": 193,
"column": 10
},
"end": {
"line": 193,
"column": 11
}
}
},
{
"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": 4693,
"end": 4697,
"loc": {
"start": {
"line": 193,
"column": 12
},
"end": {
"line": 193,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4697,
"end": 4698,
"loc": {
"start": {
"line": 193,
"column": 16
},
"end": {
"line": 193,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNodeWithLowerBound",
"start": 4698,
"end": 4720,
"loc": {
"start": {
"line": 193,
"column": 17
},
"end": {
"line": 193,
"column": 39
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4720,
"end": 4721,
"loc": {
"start": {
"line": 193,
"column": 39
},
"end": {
"line": 193,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 4721,
"end": 4725,
"loc": {
"start": {
"line": 193,
"column": 40
},
"end": {
"line": 193,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4725,
"end": 4726,
"loc": {
"start": {
"line": 193,
"column": 44
},
"end": {
"line": 193,
"column": 45
}
}
},
{
"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": 4731,
"end": 4737,
"loc": {
"start": {
"line": 194,
"column": 4
},
"end": {
"line": 194,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 4738,
"end": 4739,
"loc": {
"start": {
"line": 194,
"column": 11
},
"end": {
"line": 194,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "==",
"start": 4740,
"end": 4742,
"loc": {
"start": {
"line": 194,
"column": 13
},
"end": {
"line": 194,
"column": 15
}
}
},
{
"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": 4743,
"end": 4747,
"loc": {
"start": {
"line": 194,
"column": 16
},
"end": {
"line": 194,
"column": 20
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4748,
"end": 4749,
"loc": {
"start": {
"line": 194,
"column": 21
},
"end": {
"line": 194,
"column": 22
}
}
},
{
"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": 4750,
"end": 4754,
"loc": {
"start": {
"line": 194,
"column": 23
},
"end": {
"line": 194,
"column": 27
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4755,
"end": 4756,
"loc": {
"start": {
"line": 194,
"column": 28
},
"end": {
"line": 194,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 4757,
"end": 4758,
"loc": {
"start": {
"line": 194,
"column": 30
},
"end": {
"line": 194,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4758,
"end": 4759,
"loc": {
"start": {
"line": 194,
"column": 31
},
"end": {
"line": 194,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 4759,
"end": 4762,
"loc": {
"start": {
"line": 194,
"column": 32
},
"end": {
"line": 194,
"column": 35
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4765,
"end": 4766,
"loc": {
"start": {
"line": 195,
"column": 2
},
"end": {
"line": 195,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findWithUpperBound",
"start": 4769,
"end": 4787,
"loc": {
"start": {
"line": 196,
"column": 2
},
"end": {
"line": 196,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4788,
"end": 4789,
"loc": {
"start": {
"line": 196,
"column": 21
},
"end": {
"line": 196,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 4789,
"end": 4791,
"loc": {
"start": {
"line": 196,
"column": 22
},
"end": {
"line": 196,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4791,
"end": 4792,
"loc": {
"start": {
"line": 196,
"column": 24
},
"end": {
"line": 196,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4793,
"end": 4794,
"loc": {
"start": {
"line": 196,
"column": 26
},
"end": {
"line": 196,
"column": 27
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 4799,
"end": 4802,
"loc": {
"start": {
"line": 197,
"column": 4
},
"end": {
"line": 197,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 4803,
"end": 4804,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4805,
"end": 4806,
"loc": {
"start": {
"line": 197,
"column": 10
},
"end": {
"line": 197,
"column": 11
}
}
},
{
"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": 4807,
"end": 4811,
"loc": {
"start": {
"line": 197,
"column": 12
},
"end": {
"line": 197,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4811,
"end": 4812,
"loc": {
"start": {
"line": 197,
"column": 16
},
"end": {
"line": 197,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNodeWithUpperBound",
"start": 4812,
"end": 4834,
"loc": {
"start": {
"line": 197,
"column": 17
},
"end": {
"line": 197,
"column": 39
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4834,
"end": 4835,
"loc": {
"start": {
"line": 197,
"column": 39
},
"end": {
"line": 197,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 4835,
"end": 4837,
"loc": {
"start": {
"line": 197,
"column": 40
},
"end": {
"line": 197,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4837,
"end": 4838,
"loc": {
"start": {
"line": 197,
"column": 42
},
"end": {
"line": 197,
"column": 43
}
}
},
{
"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": 4843,
"end": 4849,
"loc": {
"start": {
"line": 198,
"column": 4
},
"end": {
"line": 198,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 4850,
"end": 4851,
"loc": {
"start": {
"line": 198,
"column": 11
},
"end": {
"line": 198,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "==",
"start": 4852,
"end": 4854,
"loc": {
"start": {
"line": 198,
"column": 13
},
"end": {
"line": 198,
"column": 15
}
}
},
{
"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": 4855,
"end": 4859,
"loc": {
"start": {
"line": 198,
"column": 16
},
"end": {
"line": 198,
"column": 20
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4860,
"end": 4861,
"loc": {
"start": {
"line": 198,
"column": 21
},
"end": {
"line": 198,
"column": 22
}
}
},
{
"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": 4862,
"end": 4866,
"loc": {
"start": {
"line": 198,
"column": 23
},
"end": {
"line": 198,
"column": 27
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4867,
"end": 4868,
"loc": {
"start": {
"line": 198,
"column": 28
},
"end": {
"line": 198,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 4869,
"end": 4870,
"loc": {
"start": {
"line": 198,
"column": 30
},
"end": {
"line": 198,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4870,
"end": 4871,
"loc": {
"start": {
"line": 198,
"column": 31
},
"end": {
"line": 198,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 4871,
"end": 4874,
"loc": {
"start": {
"line": 198,
"column": 32
},
"end": {
"line": 198,
"column": 35
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4877,
"end": 4878,
"loc": {
"start": {
"line": 199,
"column": 2
},
"end": {
"line": 199,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "iterate",
"start": 4881,
"end": 4888,
"loc": {
"start": {
"line": 200,
"column": 2
},
"end": {
"line": 200,
"column": 9
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4889,
"end": 4890,
"loc": {
"start": {
"line": 200,
"column": 10
},
"end": {
"line": 200,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 4890,
"end": 4894,
"loc": {
"start": {
"line": 200,
"column": 11
},
"end": {
"line": 200,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4894,
"end": 4895,
"loc": {
"start": {
"line": 200,
"column": 15
},
"end": {
"line": 200,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 4896,
"end": 4898,
"loc": {
"start": {
"line": 200,
"column": 17
},
"end": {
"line": 200,
"column": 19
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4898,
"end": 4899,
"loc": {
"start": {
"line": 200,
"column": 19
},
"end": {
"line": 200,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "f",
"start": 4900,
"end": 4901,
"loc": {
"start": {
"line": 200,
"column": 21
},
"end": {
"line": 200,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4901,
"end": 4902,
"loc": {
"start": {
"line": 200,
"column": 22
},
"end": {
"line": 200,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4903,
"end": 4904,
"loc": {
"start": {
"line": 200,
"column": 24
},
"end": {
"line": 200,
"column": 25
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 4909,
"end": 4912,
"loc": {
"start": {
"line": 201,
"column": 4
},
"end": {
"line": 201,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4913,
"end": 4914,
"loc": {
"start": {
"line": 201,
"column": 8
},
"end": {
"line": 201,
"column": 9
}
}
},
{
"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": 4919,
"end": 4921,
"loc": {
"start": {
"line": 202,
"column": 4
},
"end": {
"line": 202,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4922,
"end": 4923,
"loc": {
"start": {
"line": 202,
"column": 7
},
"end": {
"line": 202,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 4923,
"end": 4927,
"loc": {
"start": {
"line": 202,
"column": 8
},
"end": {
"line": 202,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 4928,
"end": 4931,
"loc": {
"start": {
"line": 202,
"column": 13
},
"end": {
"line": 202,
"column": 16
}
}
},
{
"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": 4932,
"end": 4936,
"loc": {
"start": {
"line": 202,
"column": 17
},
"end": {
"line": 202,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4936,
"end": 4937,
"loc": {
"start": {
"line": 202,
"column": 21
},
"end": {
"line": 202,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4938,
"end": 4939,
"loc": {
"start": {
"line": 202,
"column": 23
},
"end": {
"line": 202,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4946,
"end": 4947,
"loc": {
"start": {
"line": 203,
"column": 6
},
"end": {
"line": 203,
"column": 7
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4948,
"end": 4949,
"loc": {
"start": {
"line": 203,
"column": 8
},
"end": {
"line": 203,
"column": 9
}
}
},
{
"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": 4950,
"end": 4954,
"loc": {
"start": {
"line": 203,
"column": 10
},
"end": {
"line": 203,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4954,
"end": 4955,
"loc": {
"start": {
"line": 203,
"column": 14
},
"end": {
"line": 203,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findSmallestNode",
"start": 4955,
"end": 4971,
"loc": {
"start": {
"line": 203,
"column": 15
},
"end": {
"line": 203,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4971,
"end": 4972,
"loc": {
"start": {
"line": 203,
"column": 31
},
"end": {
"line": 203,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4972,
"end": 4973,
"loc": {
"start": {
"line": 203,
"column": 32
},
"end": {
"line": 203,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4978,
"end": 4979,
"loc": {
"start": {
"line": 204,
"column": 4
},
"end": {
"line": 204,
"column": 5
}
}
},
{
"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": 4980,
"end": 4984,
"loc": {
"start": {
"line": 204,
"column": 6
},
"end": {
"line": 204,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4985,
"end": 4986,
"loc": {
"start": {
"line": 204,
"column": 11
},
"end": {
"line": 204,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4993,
"end": 4994,
"loc": {
"start": {
"line": 205,
"column": 6
},
"end": {
"line": 205,
"column": 7
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4995,
"end": 4996,
"loc": {
"start": {
"line": 205,
"column": 8
},
"end": {
"line": 205,
"column": 9
}
}
},
{
"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": 4997,
"end": 5001,
"loc": {
"start": {
"line": 205,
"column": 10
},
"end": {
"line": 205,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5001,
"end": 5002,
"loc": {
"start": {
"line": 205,
"column": 14
},
"end": {
"line": 205,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNodeWithLowerBound",
"start": 5002,
"end": 5024,
"loc": {
"start": {
"line": 205,
"column": 15
},
"end": {
"line": 205,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5024,
"end": 5025,
"loc": {
"start": {
"line": 205,
"column": 37
},
"end": {
"line": 205,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 5025,
"end": 5029,
"loc": {
"start": {
"line": 205,
"column": 38
},
"end": {
"line": 205,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5029,
"end": 5030,
"loc": {
"start": {
"line": 205,
"column": 42
},
"end": {
"line": 205,
"column": 43
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5035,
"end": 5036,
"loc": {
"start": {
"line": 206,
"column": 4
},
"end": {
"line": 206,
"column": 5
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 5041,
"end": 5046,
"loc": {
"start": {
"line": 207,
"column": 4
},
"end": {
"line": 207,
"column": 9
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5047,
"end": 5048,
"loc": {
"start": {
"line": 207,
"column": 10
},
"end": {
"line": 207,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5055,
"end": 5056,
"loc": {
"start": {
"line": 208,
"column": 6
},
"end": {
"line": 208,
"column": 7
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 5057,
"end": 5060,
"loc": {
"start": {
"line": 208,
"column": 8
},
"end": {
"line": 208,
"column": 11
}
}
},
{
"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": 5061,
"end": 5065,
"loc": {
"start": {
"line": 208,
"column": 12
},
"end": {
"line": 208,
"column": 16
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5066,
"end": 5068,
"loc": {
"start": {
"line": 208,
"column": 17
},
"end": {
"line": 208,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5075,
"end": 5076,
"loc": {
"start": {
"line": 209,
"column": 6
},
"end": {
"line": 209,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 5085,
"end": 5087,
"loc": {
"start": {
"line": 210,
"column": 8
},
"end": {
"line": 210,
"column": 10
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 5088,
"end": 5091,
"loc": {
"start": {
"line": 210,
"column": 11
},
"end": {
"line": 210,
"column": 14
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 5092,
"end": 5096,
"loc": {
"start": {
"line": 210,
"column": 15
},
"end": {
"line": 210,
"column": 19
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 5097,
"end": 5099,
"loc": {
"start": {
"line": 210,
"column": 20
},
"end": {
"line": 210,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " eslint-disable-line no-unmodified-loop-condition",
"start": 5100,
"end": 5151,
"loc": {
"start": {
"line": 210,
"column": 23
},
"end": {
"line": 210,
"column": 74
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5160,
"end": 5161,
"loc": {
"start": {
"line": 211,
"column": 8
},
"end": {
"line": 211,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5161,
"end": 5162,
"loc": {
"start": {
"line": 211,
"column": 9
},
"end": {
"line": 211,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 5162,
"end": 5165,
"loc": {
"start": {
"line": 211,
"column": 10
},
"end": {
"line": 211,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5165,
"end": 5166,
"loc": {
"start": {
"line": 211,
"column": 13
},
"end": {
"line": 211,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 5166,
"end": 5169,
"loc": {
"start": {
"line": 211,
"column": 14
},
"end": {
"line": 211,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5169,
"end": 5170,
"loc": {
"start": {
"line": 211,
"column": 17
},
"end": {
"line": 211,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 5170,
"end": 5178,
"loc": {
"start": {
"line": 211,
"column": 18
},
"end": {
"line": 211,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5178,
"end": 5179,
"loc": {
"start": {
"line": 211,
"column": 26
},
"end": {
"line": 211,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 5179,
"end": 5181,
"loc": {
"start": {
"line": 211,
"column": 27
},
"end": {
"line": 211,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5181,
"end": 5182,
"loc": {
"start": {
"line": 211,
"column": 29
},
"end": {
"line": 211,
"column": 30
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 5183,
"end": 5185,
"loc": {
"start": {
"line": 211,
"column": 31
},
"end": {
"line": 211,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5194,
"end": 5195,
"loc": {
"start": {
"line": 212,
"column": 8
},
"end": {
"line": 212,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5195,
"end": 5196,
"loc": {
"start": {
"line": 212,
"column": 9
},
"end": {
"line": 212,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 5196,
"end": 5199,
"loc": {
"start": {
"line": 212,
"column": 10
},
"end": {
"line": 212,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5199,
"end": 5200,
"loc": {
"start": {
"line": 212,
"column": 13
},
"end": {
"line": 212,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 5200,
"end": 5203,
"loc": {
"start": {
"line": 212,
"column": 14
},
"end": {
"line": 212,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5203,
"end": 5204,
"loc": {
"start": {
"line": 212,
"column": 17
},
"end": {
"line": 212,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "equals",
"start": 5204,
"end": 5210,
"loc": {
"start": {
"line": 212,
"column": 18
},
"end": {
"line": 212,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5210,
"end": 5211,
"loc": {
"start": {
"line": 212,
"column": 24
},
"end": {
"line": 212,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "to",
"start": 5211,
"end": 5213,
"loc": {
"start": {
"line": 212,
"column": 25
},
"end": {
"line": 212,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5213,
"end": 5214,
"loc": {
"start": {
"line": 212,
"column": 27
},
"end": {
"line": 212,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5221,
"end": 5222,
"loc": {
"start": {
"line": 213,
"column": 6
},
"end": {
"line": 213,
"column": 7
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5227,
"end": 5228,
"loc": {
"start": {
"line": 214,
"column": 4
},
"end": {
"line": 214,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5229,
"end": 5230,
"loc": {
"start": {
"line": 214,
"column": 6
},
"end": {
"line": 214,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "f",
"start": 5237,
"end": 5238,
"loc": {
"start": {
"line": 215,
"column": 6
},
"end": {
"line": 215,
"column": 7
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5238,
"end": 5239,
"loc": {
"start": {
"line": 215,
"column": 7
},
"end": {
"line": 215,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5239,
"end": 5240,
"loc": {
"start": {
"line": 215,
"column": 8
},
"end": {
"line": 215,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5240,
"end": 5241,
"loc": {
"start": {
"line": 215,
"column": 9
},
"end": {
"line": 215,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 5241,
"end": 5244,
"loc": {
"start": {
"line": 215,
"column": 10
},
"end": {
"line": 215,
"column": 13
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5244,
"end": 5245,
"loc": {
"start": {
"line": 215,
"column": 13
},
"end": {
"line": 215,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5252,
"end": 5253,
"loc": {
"start": {
"line": 216,
"column": 6
},
"end": {
"line": 216,
"column": 7
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5254,
"end": 5255,
"loc": {
"start": {
"line": 216,
"column": 8
},
"end": {
"line": 216,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5256,
"end": 5257,
"loc": {
"start": {
"line": 216,
"column": 10
},
"end": {
"line": 216,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5257,
"end": 5258,
"loc": {
"start": {
"line": 216,
"column": 11
},
"end": {
"line": 216,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "next",
"start": 5258,
"end": 5262,
"loc": {
"start": {
"line": 216,
"column": 12
},
"end": {
"line": 216,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5262,
"end": 5263,
"loc": {
"start": {
"line": 216,
"column": 16
},
"end": {
"line": 216,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5263,
"end": 5264,
"loc": {
"start": {
"line": 216,
"column": 17
},
"end": {
"line": 216,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5269,
"end": 5270,
"loc": {
"start": {
"line": 217,
"column": 4
},
"end": {
"line": 217,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5273,
"end": 5274,
"loc": {
"start": {
"line": 218,
"column": 2
},
"end": {
"line": 218,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "find",
"start": 5277,
"end": 5281,
"loc": {
"start": {
"line": 219,
"column": 2
},
"end": {
"line": 219,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5282,
"end": 5283,
"loc": {
"start": {
"line": 219,
"column": 7
},
"end": {
"line": 219,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 5283,
"end": 5285,
"loc": {
"start": {
"line": 219,
"column": 8
},
"end": {
"line": 219,
"column": 10
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5285,
"end": 5286,
"loc": {
"start": {
"line": 219,
"column": 10
},
"end": {
"line": 219,
"column": 11
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5287,
"end": 5288,
"loc": {
"start": {
"line": 219,
"column": 12
},
"end": {
"line": 219,
"column": 13
}
}
},
{
"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": 5293,
"end": 5296,
"loc": {
"start": {
"line": 220,
"column": 4
},
"end": {
"line": 220,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 5297,
"end": 5298,
"loc": {
"start": {
"line": 220,
"column": 8
},
"end": {
"line": 220,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5299,
"end": 5300,
"loc": {
"start": {
"line": 220,
"column": 10
},
"end": {
"line": 220,
"column": 11
}
}
},
{
"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": 5301,
"end": 5305,
"loc": {
"start": {
"line": 220,
"column": 12
},
"end": {
"line": 220,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5305,
"end": 5306,
"loc": {
"start": {
"line": 220,
"column": 16
},
"end": {
"line": 220,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNode",
"start": 5306,
"end": 5314,
"loc": {
"start": {
"line": 220,
"column": 17
},
"end": {
"line": 220,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5314,
"end": 5315,
"loc": {
"start": {
"line": 220,
"column": 25
},
"end": {
"line": 220,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 5315,
"end": 5317,
"loc": {
"start": {
"line": 220,
"column": 26
},
"end": {
"line": 220,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5317,
"end": 5318,
"loc": {
"start": {
"line": 220,
"column": 28
},
"end": {
"line": 220,
"column": 29
}
}
},
{
"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": 5323,
"end": 5325,
"loc": {
"start": {
"line": 221,
"column": 4
},
"end": {
"line": 221,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5326,
"end": 5327,
"loc": {
"start": {
"line": 221,
"column": 7
},
"end": {
"line": 221,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 5327,
"end": 5328,
"loc": {
"start": {
"line": 221,
"column": 8
},
"end": {
"line": 221,
"column": 9
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 5329,
"end": 5332,
"loc": {
"start": {
"line": 221,
"column": 10
},
"end": {
"line": 221,
"column": 13
}
}
},
{
"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": 5333,
"end": 5337,
"loc": {
"start": {
"line": 221,
"column": 14
},
"end": {
"line": 221,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5337,
"end": 5338,
"loc": {
"start": {
"line": 221,
"column": 18
},
"end": {
"line": 221,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5339,
"end": 5340,
"loc": {
"start": {
"line": 221,
"column": 20
},
"end": {
"line": 221,
"column": 21
}
}
},
{
"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": 5347,
"end": 5353,
"loc": {
"start": {
"line": 222,
"column": 6
},
"end": {
"line": 222,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 5354,
"end": 5355,
"loc": {
"start": {
"line": 222,
"column": 13
},
"end": {
"line": 222,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5355,
"end": 5356,
"loc": {
"start": {
"line": 222,
"column": 14
},
"end": {
"line": 222,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 5356,
"end": 5359,
"loc": {
"start": {
"line": 222,
"column": 15
},
"end": {
"line": 222,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5364,
"end": 5365,
"loc": {
"start": {
"line": 223,
"column": 4
},
"end": {
"line": 223,
"column": 5
}
}
},
{
"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": 5366,
"end": 5370,
"loc": {
"start": {
"line": 223,
"column": 6
},
"end": {
"line": 223,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5371,
"end": 5372,
"loc": {
"start": {
"line": 223,
"column": 11
},
"end": {
"line": 223,
"column": 12
}
}
},
{
"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": 5379,
"end": 5385,
"loc": {
"start": {
"line": 224,
"column": 6
},
"end": {
"line": 224,
"column": 12
}
}
},
{
"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": 5386,
"end": 5390,
"loc": {
"start": {
"line": 224,
"column": 13
},
"end": {
"line": 224,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5395,
"end": 5396,
"loc": {
"start": {
"line": 225,
"column": 4
},
"end": {
"line": 225,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5399,
"end": 5400,
"loc": {
"start": {
"line": 226,
"column": 2
},
"end": {
"line": 226,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNode",
"start": 5403,
"end": 5411,
"loc": {
"start": {
"line": 227,
"column": 2
},
"end": {
"line": 227,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5412,
"end": 5413,
"loc": {
"start": {
"line": 227,
"column": 11
},
"end": {
"line": 227,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 5413,
"end": 5415,
"loc": {
"start": {
"line": 227,
"column": 12
},
"end": {
"line": 227,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5415,
"end": 5416,
"loc": {
"start": {
"line": 227,
"column": 14
},
"end": {
"line": 227,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5417,
"end": 5418,
"loc": {
"start": {
"line": 227,
"column": 16
},
"end": {
"line": 227,
"column": 17
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 5423,
"end": 5426,
"loc": {
"start": {
"line": 228,
"column": 4
},
"end": {
"line": 228,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5427,
"end": 5428,
"loc": {
"start": {
"line": 228,
"column": 8
},
"end": {
"line": 228,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5429,
"end": 5430,
"loc": {
"start": {
"line": 228,
"column": 10
},
"end": {
"line": 228,
"column": 11
}
}
},
{
"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": 5431,
"end": 5435,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5435,
"end": 5436,
"loc": {
"start": {
"line": 228,
"column": 16
},
"end": {
"line": 228,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 5436,
"end": 5440,
"loc": {
"start": {
"line": 228,
"column": 17
},
"end": {
"line": 228,
"column": 21
}
}
},
{
"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": 5445,
"end": 5447,
"loc": {
"start": {
"line": 229,
"column": 4
},
"end": {
"line": 229,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5448,
"end": 5449,
"loc": {
"start": {
"line": 229,
"column": 7
},
"end": {
"line": 229,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5449,
"end": 5450,
"loc": {
"start": {
"line": 229,
"column": 8
},
"end": {
"line": 229,
"column": 9
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 5451,
"end": 5454,
"loc": {
"start": {
"line": 229,
"column": 10
},
"end": {
"line": 229,
"column": 13
}
}
},
{
"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": 5455,
"end": 5459,
"loc": {
"start": {
"line": 229,
"column": 14
},
"end": {
"line": 229,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5459,
"end": 5460,
"loc": {
"start": {
"line": 229,
"column": 18
},
"end": {
"line": 229,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5461,
"end": 5462,
"loc": {
"start": {
"line": 229,
"column": 20
},
"end": {
"line": 229,
"column": 21
}
}
},
{
"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": 5469,
"end": 5475,
"loc": {
"start": {
"line": 230,
"column": 6
},
"end": {
"line": 230,
"column": 12
}
}
},
{
"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": 5476,
"end": 5480,
"loc": {
"start": {
"line": 230,
"column": 13
},
"end": {
"line": 230,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5485,
"end": 5486,
"loc": {
"start": {
"line": 231,
"column": 4
},
"end": {
"line": 231,
"column": 5
}
}
},
{
"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": 5487,
"end": 5491,
"loc": {
"start": {
"line": 231,
"column": 6
},
"end": {
"line": 231,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5492,
"end": 5493,
"loc": {
"start": {
"line": 231,
"column": 11
},
"end": {
"line": 231,
"column": 12
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 5500,
"end": 5505,
"loc": {
"start": {
"line": 232,
"column": 6
},
"end": {
"line": 232,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5506,
"end": 5507,
"loc": {
"start": {
"line": 232,
"column": 12
},
"end": {
"line": 232,
"column": 13
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 5507,
"end": 5511,
"loc": {
"start": {
"line": 232,
"column": 13
},
"end": {
"line": 232,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5511,
"end": 5512,
"loc": {
"start": {
"line": 232,
"column": 17
},
"end": {
"line": 232,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5513,
"end": 5514,
"loc": {
"start": {
"line": 232,
"column": 19
},
"end": {
"line": 232,
"column": 20
}
}
},
{
"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": 5523,
"end": 5525,
"loc": {
"start": {
"line": 233,
"column": 8
},
"end": {
"line": 233,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5526,
"end": 5527,
"loc": {
"start": {
"line": 233,
"column": 11
},
"end": {
"line": 233,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5527,
"end": 5528,
"loc": {
"start": {
"line": 233,
"column": 12
},
"end": {
"line": 233,
"column": 13
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 5529,
"end": 5532,
"loc": {
"start": {
"line": 233,
"column": 14
},
"end": {
"line": 233,
"column": 17
}
}
},
{
"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": 5533,
"end": 5537,
"loc": {
"start": {
"line": 233,
"column": 18
},
"end": {
"line": 233,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5537,
"end": 5538,
"loc": {
"start": {
"line": 233,
"column": 22
},
"end": {
"line": 233,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5539,
"end": 5540,
"loc": {
"start": {
"line": 233,
"column": 24
},
"end": {
"line": 233,
"column": 25
}
}
},
{
"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": 5551,
"end": 5557,
"loc": {
"start": {
"line": 234,
"column": 10
},
"end": {
"line": 234,
"column": 16
}
}
},
{
"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": 5558,
"end": 5562,
"loc": {
"start": {
"line": 234,
"column": 17
},
"end": {
"line": 234,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5571,
"end": 5572,
"loc": {
"start": {
"line": 235,
"column": 8
},
"end": {
"line": 235,
"column": 9
}
}
},
{
"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": 5581,
"end": 5583,
"loc": {
"start": {
"line": 236,
"column": 8
},
"end": {
"line": 236,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5584,
"end": 5585,
"loc": {
"start": {
"line": 236,
"column": 11
},
"end": {
"line": 236,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 5585,
"end": 5587,
"loc": {
"start": {
"line": 236,
"column": 12
},
"end": {
"line": 236,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5587,
"end": 5588,
"loc": {
"start": {
"line": 236,
"column": 14
},
"end": {
"line": 236,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 5588,
"end": 5596,
"loc": {
"start": {
"line": 236,
"column": 15
},
"end": {
"line": 236,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5596,
"end": 5597,
"loc": {
"start": {
"line": 236,
"column": 23
},
"end": {
"line": 236,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5597,
"end": 5598,
"loc": {
"start": {
"line": 236,
"column": 24
},
"end": {
"line": 236,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5598,
"end": 5599,
"loc": {
"start": {
"line": 236,
"column": 25
},
"end": {
"line": 236,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 5599,
"end": 5602,
"loc": {
"start": {
"line": 236,
"column": 26
},
"end": {
"line": 236,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5602,
"end": 5603,
"loc": {
"start": {
"line": 236,
"column": 29
},
"end": {
"line": 236,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 5603,
"end": 5606,
"loc": {
"start": {
"line": 236,
"column": 30
},
"end": {
"line": 236,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5606,
"end": 5607,
"loc": {
"start": {
"line": 236,
"column": 33
},
"end": {
"line": 236,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5607,
"end": 5608,
"loc": {
"start": {
"line": 236,
"column": 34
},
"end": {
"line": 236,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5609,
"end": 5610,
"loc": {
"start": {
"line": 236,
"column": 36
},
"end": {
"line": 236,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5621,
"end": 5622,
"loc": {
"start": {
"line": 237,
"column": 10
},
"end": {
"line": 237,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5623,
"end": 5624,
"loc": {
"start": {
"line": 237,
"column": 12
},
"end": {
"line": 237,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5625,
"end": 5626,
"loc": {
"start": {
"line": 237,
"column": 14
},
"end": {
"line": 237,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5626,
"end": 5627,
"loc": {
"start": {
"line": 237,
"column": 15
},
"end": {
"line": 237,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 5627,
"end": 5631,
"loc": {
"start": {
"line": 237,
"column": 16
},
"end": {
"line": 237,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5640,
"end": 5641,
"loc": {
"start": {
"line": 238,
"column": 8
},
"end": {
"line": 238,
"column": 9
}
}
},
{
"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": 5642,
"end": 5646,
"loc": {
"start": {
"line": 238,
"column": 10
},
"end": {
"line": 238,
"column": 14
}
}
},
{
"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": 5647,
"end": 5649,
"loc": {
"start": {
"line": 238,
"column": 15
},
"end": {
"line": 238,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5650,
"end": 5651,
"loc": {
"start": {
"line": 238,
"column": 18
},
"end": {
"line": 238,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5651,
"end": 5652,
"loc": {
"start": {
"line": 238,
"column": 19
},
"end": {
"line": 238,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5652,
"end": 5653,
"loc": {
"start": {
"line": 238,
"column": 20
},
"end": {
"line": 238,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 5653,
"end": 5656,
"loc": {
"start": {
"line": 238,
"column": 21
},
"end": {
"line": 238,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5656,
"end": 5657,
"loc": {
"start": {
"line": 238,
"column": 24
},
"end": {
"line": 238,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 5657,
"end": 5660,
"loc": {
"start": {
"line": 238,
"column": 25
},
"end": {
"line": 238,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5660,
"end": 5661,
"loc": {
"start": {
"line": 238,
"column": 28
},
"end": {
"line": 238,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 5661,
"end": 5669,
"loc": {
"start": {
"line": 238,
"column": 29
},
"end": {
"line": 238,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5669,
"end": 5670,
"loc": {
"start": {
"line": 238,
"column": 37
},
"end": {
"line": 238,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 5670,
"end": 5672,
"loc": {
"start": {
"line": 238,
"column": 38
},
"end": {
"line": 238,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5672,
"end": 5673,
"loc": {
"start": {
"line": 238,
"column": 40
},
"end": {
"line": 238,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5673,
"end": 5674,
"loc": {
"start": {
"line": 238,
"column": 41
},
"end": {
"line": 238,
"column": 42
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5675,
"end": 5676,
"loc": {
"start": {
"line": 238,
"column": 43
},
"end": {
"line": 238,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5687,
"end": 5688,
"loc": {
"start": {
"line": 239,
"column": 10
},
"end": {
"line": 239,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5689,
"end": 5690,
"loc": {
"start": {
"line": 239,
"column": 12
},
"end": {
"line": 239,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5691,
"end": 5692,
"loc": {
"start": {
"line": 239,
"column": 14
},
"end": {
"line": 239,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5692,
"end": 5693,
"loc": {
"start": {
"line": 239,
"column": 15
},
"end": {
"line": 239,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 5693,
"end": 5698,
"loc": {
"start": {
"line": 239,
"column": 16
},
"end": {
"line": 239,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5707,
"end": 5708,
"loc": {
"start": {
"line": 240,
"column": 8
},
"end": {
"line": 240,
"column": 9
}
}
},
{
"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": 5709,
"end": 5713,
"loc": {
"start": {
"line": 240,
"column": 10
},
"end": {
"line": 240,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5714,
"end": 5715,
"loc": {
"start": {
"line": 240,
"column": 15
},
"end": {
"line": 240,
"column": 16
}
}
},
{
"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": 5726,
"end": 5732,
"loc": {
"start": {
"line": 241,
"column": 10
},
"end": {
"line": 241,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 5733,
"end": 5734,
"loc": {
"start": {
"line": 241,
"column": 17
},
"end": {
"line": 241,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5743,
"end": 5744,
"loc": {
"start": {
"line": 242,
"column": 8
},
"end": {
"line": 242,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5751,
"end": 5752,
"loc": {
"start": {
"line": 243,
"column": 6
},
"end": {
"line": 243,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5757,
"end": 5758,
"loc": {
"start": {
"line": 244,
"column": 4
},
"end": {
"line": 244,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5761,
"end": 5762,
"loc": {
"start": {
"line": 245,
"column": 2
},
"end": {
"line": 245,
"column": 3
}
}
},
{
"type": {
"label": "delete",
"keyword": "delete",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "delete",
"start": 5765,
"end": 5771,
"loc": {
"start": {
"line": 246,
"column": 2
},
"end": {
"line": 246,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5772,
"end": 5773,
"loc": {
"start": {
"line": 246,
"column": 9
},
"end": {
"line": 246,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 5773,
"end": 5775,
"loc": {
"start": {
"line": 246,
"column": 10
},
"end": {
"line": 246,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5775,
"end": 5776,
"loc": {
"start": {
"line": 246,
"column": 12
},
"end": {
"line": 246,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5777,
"end": 5778,
"loc": {
"start": {
"line": 246,
"column": 14
},
"end": {
"line": 246,
"column": 15
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 5783,
"end": 5786,
"loc": {
"start": {
"line": 247,
"column": 4
},
"end": {
"line": 247,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 5787,
"end": 5788,
"loc": {
"start": {
"line": 247,
"column": 8
},
"end": {
"line": 247,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 5789,
"end": 5790,
"loc": {
"start": {
"line": 247,
"column": 10
},
"end": {
"line": 247,
"column": 11
}
}
},
{
"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": 5791,
"end": 5795,
"loc": {
"start": {
"line": 247,
"column": 12
},
"end": {
"line": 247,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5795,
"end": 5796,
"loc": {
"start": {
"line": 247,
"column": 16
},
"end": {
"line": 247,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "findNode",
"start": 5796,
"end": 5804,
"loc": {
"start": {
"line": 247,
"column": 17
},
"end": {
"line": 247,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5804,
"end": 5805,
"loc": {
"start": {
"line": 247,
"column": 25
},
"end": {
"line": 247,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 5805,
"end": 5807,
"loc": {
"start": {
"line": 247,
"column": 26
},
"end": {
"line": 247,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5807,
"end": 5808,
"loc": {
"start": {
"line": 247,
"column": 28
},
"end": {
"line": 247,
"column": 29
}
}
},
{
"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": 5813,
"end": 5815,
"loc": {
"start": {
"line": 248,
"column": 4
},
"end": {
"line": 248,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5816,
"end": 5817,
"loc": {
"start": {
"line": 248,
"column": 7
},
"end": {
"line": 248,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 5817,
"end": 5818,
"loc": {
"start": {
"line": 248,
"column": 8
},
"end": {
"line": 248,
"column": 9
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "==",
"start": 5819,
"end": 5821,
"loc": {
"start": {
"line": 248,
"column": 10
},
"end": {
"line": 248,
"column": 12
}
}
},
{
"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": 5822,
"end": 5826,
"loc": {
"start": {
"line": 248,
"column": 13
},
"end": {
"line": 248,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5826,
"end": 5827,
"loc": {
"start": {
"line": 248,
"column": 17
},
"end": {
"line": 248,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5828,
"end": 5829,
"loc": {
"start": {
"line": 248,
"column": 19
},
"end": {
"line": 248,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " throw new Error('Element does not exist!')",
"start": 5836,
"end": 5881,
"loc": {
"start": {
"line": 249,
"column": 6
},
"end": {
"line": 249,
"column": 51
}
}
},
{
"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": 5888,
"end": 5894,
"loc": {
"start": {
"line": 250,
"column": 6
},
"end": {
"line": 250,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5899,
"end": 5900,
"loc": {
"start": {
"line": 251,
"column": 4
},
"end": {
"line": 251,
"column": 5
}
}
},
{
"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": 5905,
"end": 5909,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 252,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5909,
"end": 5910,
"loc": {
"start": {
"line": 252,
"column": 8
},
"end": {
"line": 252,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 5910,
"end": 5916,
"loc": {
"start": {
"line": 252,
"column": 9
},
"end": {
"line": 252,
"column": 15
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "--",
"start": 5916,
"end": 5918,
"loc": {
"start": {
"line": 252,
"column": 15
},
"end": {
"line": 252,
"column": 17
}
}
},
{
"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": 5923,
"end": 5925,
"loc": {
"start": {
"line": 253,
"column": 4
},
"end": {
"line": 253,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5926,
"end": 5927,
"loc": {
"start": {
"line": 253,
"column": 7
},
"end": {
"line": 253,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 5927,
"end": 5928,
"loc": {
"start": {
"line": 253,
"column": 8
},
"end": {
"line": 253,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5928,
"end": 5929,
"loc": {
"start": {
"line": 253,
"column": 9
},
"end": {
"line": 253,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 5929,
"end": 5933,
"loc": {
"start": {
"line": 253,
"column": 10
},
"end": {
"line": 253,
"column": 14
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 5934,
"end": 5937,
"loc": {
"start": {
"line": 253,
"column": 15
},
"end": {
"line": 253,
"column": 18
}
}
},
{
"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": 5938,
"end": 5942,
"loc": {
"start": {
"line": 253,
"column": 19
},
"end": {
"line": 253,
"column": 23
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5943,
"end": 5945,
"loc": {
"start": {
"line": 253,
"column": 24
},
"end": {
"line": 253,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 5946,
"end": 5947,
"loc": {
"start": {
"line": 253,
"column": 27
},
"end": {
"line": 253,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5947,
"end": 5948,
"loc": {
"start": {
"line": 253,
"column": 28
},
"end": {
"line": 253,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 5948,
"end": 5953,
"loc": {
"start": {
"line": 253,
"column": 29
},
"end": {
"line": 253,
"column": 34
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 5954,
"end": 5957,
"loc": {
"start": {
"line": 253,
"column": 35
},
"end": {
"line": 253,
"column": 38
}
}
},
{
"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": 5958,
"end": 5962,
"loc": {
"start": {
"line": 253,
"column": 39
},
"end": {
"line": 253,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5962,
"end": 5963,
"loc": {
"start": {
"line": 253,
"column": 43
},
"end": {
"line": 253,
"column": 44
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5964,
"end": 5965,
"loc": {
"start": {
"line": 253,
"column": 45
},
"end": {
"line": 253,
"column": 46
}
}
},
{
"type": "CommentLine",
"value": " switch d with the greates element in the left subtree.",
"start": 5972,
"end": 6029,
"loc": {
"start": {
"line": 254,
"column": 6
},
"end": {
"line": 254,
"column": 63
}
}
},
{
"type": "CommentLine",
"value": " o should have at most one child.",
"start": 6036,
"end": 6071,
"loc": {
"start": {
"line": 255,
"column": 6
},
"end": {
"line": 255,
"column": 41
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 6078,
"end": 6081,
"loc": {
"start": {
"line": 256,
"column": 6
},
"end": {
"line": 256,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 6082,
"end": 6083,
"loc": {
"start": {
"line": 256,
"column": 10
},
"end": {
"line": 256,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6084,
"end": 6085,
"loc": {
"start": {
"line": 256,
"column": 12
},
"end": {
"line": 256,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6086,
"end": 6087,
"loc": {
"start": {
"line": 256,
"column": 14
},
"end": {
"line": 256,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6087,
"end": 6088,
"loc": {
"start": {
"line": 256,
"column": 15
},
"end": {
"line": 256,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 6088,
"end": 6092,
"loc": {
"start": {
"line": 256,
"column": 16
},
"end": {
"line": 256,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " find",
"start": 6099,
"end": 6106,
"loc": {
"start": {
"line": 257,
"column": 6
},
"end": {
"line": 257,
"column": 13
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 6113,
"end": 6118,
"loc": {
"start": {
"line": 258,
"column": 6
},
"end": {
"line": 258,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6119,
"end": 6120,
"loc": {
"start": {
"line": 258,
"column": 12
},
"end": {
"line": 258,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 6120,
"end": 6121,
"loc": {
"start": {
"line": 258,
"column": 13
},
"end": {
"line": 258,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6121,
"end": 6122,
"loc": {
"start": {
"line": 258,
"column": 14
},
"end": {
"line": 258,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6122,
"end": 6127,
"loc": {
"start": {
"line": 258,
"column": 15
},
"end": {
"line": 258,
"column": 20
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 6128,
"end": 6131,
"loc": {
"start": {
"line": 258,
"column": 21
},
"end": {
"line": 258,
"column": 24
}
}
},
{
"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": 6132,
"end": 6136,
"loc": {
"start": {
"line": 258,
"column": 25
},
"end": {
"line": 258,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6136,
"end": 6137,
"loc": {
"start": {
"line": 258,
"column": 29
},
"end": {
"line": 258,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6138,
"end": 6139,
"loc": {
"start": {
"line": 258,
"column": 31
},
"end": {
"line": 258,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 6148,
"end": 6149,
"loc": {
"start": {
"line": 259,
"column": 8
},
"end": {
"line": 259,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6150,
"end": 6151,
"loc": {
"start": {
"line": 259,
"column": 10
},
"end": {
"line": 259,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 6152,
"end": 6153,
"loc": {
"start": {
"line": 259,
"column": 12
},
"end": {
"line": 259,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6153,
"end": 6154,
"loc": {
"start": {
"line": 259,
"column": 13
},
"end": {
"line": 259,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6154,
"end": 6159,
"loc": {
"start": {
"line": 259,
"column": 14
},
"end": {
"line": 259,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6166,
"end": 6167,
"loc": {
"start": {
"line": 260,
"column": 6
},
"end": {
"line": 260,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " switch",
"start": 6174,
"end": 6183,
"loc": {
"start": {
"line": 261,
"column": 6
},
"end": {
"line": 261,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6190,
"end": 6191,
"loc": {
"start": {
"line": 262,
"column": 6
},
"end": {
"line": 262,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6191,
"end": 6192,
"loc": {
"start": {
"line": 262,
"column": 7
},
"end": {
"line": 262,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 6192,
"end": 6195,
"loc": {
"start": {
"line": 262,
"column": 8
},
"end": {
"line": 262,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6196,
"end": 6197,
"loc": {
"start": {
"line": 262,
"column": 12
},
"end": {
"line": 262,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 6198,
"end": 6199,
"loc": {
"start": {
"line": 262,
"column": 14
},
"end": {
"line": 262,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6199,
"end": 6200,
"loc": {
"start": {
"line": 262,
"column": 15
},
"end": {
"line": 262,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 6200,
"end": 6203,
"loc": {
"start": {
"line": 262,
"column": 16
},
"end": {
"line": 262,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6210,
"end": 6211,
"loc": {
"start": {
"line": 263,
"column": 6
},
"end": {
"line": 263,
"column": 7
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6212,
"end": 6213,
"loc": {
"start": {
"line": 263,
"column": 8
},
"end": {
"line": 263,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 6214,
"end": 6215,
"loc": {
"start": {
"line": 263,
"column": 10
},
"end": {
"line": 263,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6220,
"end": 6221,
"loc": {
"start": {
"line": 264,
"column": 4
},
"end": {
"line": 264,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " d has at most one child",
"start": 6226,
"end": 6252,
"loc": {
"start": {
"line": 265,
"column": 4
},
"end": {
"line": 265,
"column": 30
}
}
},
{
"type": "CommentLine",
"value": " let n be the node that replaces d",
"start": 6257,
"end": 6293,
"loc": {
"start": {
"line": 266,
"column": 4
},
"end": {
"line": 266,
"column": 40
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 6298,
"end": 6301,
"loc": {
"start": {
"line": 267,
"column": 4
},
"end": {
"line": 267,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isFakeChild",
"start": 6302,
"end": 6313,
"loc": {
"start": {
"line": 267,
"column": 8
},
"end": {
"line": 267,
"column": 19
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 6318,
"end": 6321,
"loc": {
"start": {
"line": 268,
"column": 4
},
"end": {
"line": 268,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6322,
"end": 6327,
"loc": {
"start": {
"line": 268,
"column": 8
},
"end": {
"line": 268,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6328,
"end": 6329,
"loc": {
"start": {
"line": 268,
"column": 14
},
"end": {
"line": 268,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6330,
"end": 6331,
"loc": {
"start": {
"line": 268,
"column": 16
},
"end": {
"line": 268,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6331,
"end": 6332,
"loc": {
"start": {
"line": 268,
"column": 17
},
"end": {
"line": 268,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 6332,
"end": 6336,
"loc": {
"start": {
"line": 268,
"column": 18
},
"end": {
"line": 268,
"column": 22
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 6337,
"end": 6339,
"loc": {
"start": {
"line": 268,
"column": 23
},
"end": {
"line": 268,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6340,
"end": 6341,
"loc": {
"start": {
"line": 268,
"column": 26
},
"end": {
"line": 268,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6341,
"end": 6342,
"loc": {
"start": {
"line": 268,
"column": 27
},
"end": {
"line": 268,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6342,
"end": 6347,
"loc": {
"start": {
"line": 268,
"column": 28
},
"end": {
"line": 268,
"column": 33
}
}
},
{
"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": 6352,
"end": 6354,
"loc": {
"start": {
"line": 269,
"column": 4
},
"end": {
"line": 269,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6355,
"end": 6356,
"loc": {
"start": {
"line": 269,
"column": 7
},
"end": {
"line": 269,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6356,
"end": 6361,
"loc": {
"start": {
"line": 269,
"column": 8
},
"end": {
"line": 269,
"column": 13
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 6362,
"end": 6365,
"loc": {
"start": {
"line": 269,
"column": 14
},
"end": {
"line": 269,
"column": 17
}
}
},
{
"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": 6366,
"end": 6370,
"loc": {
"start": {
"line": 269,
"column": 18
},
"end": {
"line": 269,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6370,
"end": 6371,
"loc": {
"start": {
"line": 269,
"column": 22
},
"end": {
"line": 269,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6372,
"end": 6373,
"loc": {
"start": {
"line": 269,
"column": 24
},
"end": {
"line": 269,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isFakeChild",
"start": 6380,
"end": 6391,
"loc": {
"start": {
"line": 270,
"column": 6
},
"end": {
"line": 270,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6392,
"end": 6393,
"loc": {
"start": {
"line": 270,
"column": 18
},
"end": {
"line": 270,
"column": 19
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 6394,
"end": 6398,
"loc": {
"start": {
"line": 270,
"column": 20
},
"end": {
"line": 270,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6405,
"end": 6410,
"loc": {
"start": {
"line": 271,
"column": 6
},
"end": {
"line": 271,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6411,
"end": 6412,
"loc": {
"start": {
"line": 271,
"column": 12
},
"end": {
"line": 271,
"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": 6413,
"end": 6416,
"loc": {
"start": {
"line": 271,
"column": 14
},
"end": {
"line": 271,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "N",
"start": 6417,
"end": 6418,
"loc": {
"start": {
"line": 271,
"column": 18
},
"end": {
"line": 271,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6418,
"end": 6419,
"loc": {
"start": {
"line": 271,
"column": 19
},
"end": {
"line": 271,
"column": 20
}
}
},
{
"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": 6419,
"end": 6423,
"loc": {
"start": {
"line": 271,
"column": 20
},
"end": {
"line": 271,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6423,
"end": 6424,
"loc": {
"start": {
"line": 271,
"column": 24
},
"end": {
"line": 271,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6431,
"end": 6436,
"loc": {
"start": {
"line": 272,
"column": 6
},
"end": {
"line": 272,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6436,
"end": 6437,
"loc": {
"start": {
"line": 272,
"column": 11
},
"end": {
"line": 272,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 6437,
"end": 6444,
"loc": {
"start": {
"line": 272,
"column": 12
},
"end": {
"line": 272,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6444,
"end": 6445,
"loc": {
"start": {
"line": 272,
"column": 19
},
"end": {
"line": 272,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6445,
"end": 6446,
"loc": {
"start": {
"line": 272,
"column": 20
},
"end": {
"line": 272,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6453,
"end": 6454,
"loc": {
"start": {
"line": 273,
"column": 6
},
"end": {
"line": 273,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6454,
"end": 6455,
"loc": {
"start": {
"line": 273,
"column": 7
},
"end": {
"line": 273,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6455,
"end": 6460,
"loc": {
"start": {
"line": 273,
"column": 8
},
"end": {
"line": 273,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6461,
"end": 6462,
"loc": {
"start": {
"line": 273,
"column": 14
},
"end": {
"line": 273,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6463,
"end": 6468,
"loc": {
"start": {
"line": 273,
"column": 16
},
"end": {
"line": 273,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6473,
"end": 6474,
"loc": {
"start": {
"line": 274,
"column": 4
},
"end": {
"line": 274,
"column": 5
}
}
},
{
"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": 6475,
"end": 6479,
"loc": {
"start": {
"line": 274,
"column": 6
},
"end": {
"line": 274,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6480,
"end": 6481,
"loc": {
"start": {
"line": 274,
"column": 11
},
"end": {
"line": 274,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isFakeChild",
"start": 6488,
"end": 6499,
"loc": {
"start": {
"line": 275,
"column": 6
},
"end": {
"line": 275,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6500,
"end": 6501,
"loc": {
"start": {
"line": 275,
"column": 18
},
"end": {
"line": 275,
"column": 19
}
}
},
{
"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": 6502,
"end": 6507,
"loc": {
"start": {
"line": 275,
"column": 20
},
"end": {
"line": 275,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6512,
"end": 6513,
"loc": {
"start": {
"line": 276,
"column": 4
},
"end": {
"line": 276,
"column": 5
}
}
},
{
"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": 6519,
"end": 6521,
"loc": {
"start": {
"line": 278,
"column": 4
},
"end": {
"line": 278,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6522,
"end": 6523,
"loc": {
"start": {
"line": 278,
"column": 7
},
"end": {
"line": 278,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6523,
"end": 6524,
"loc": {
"start": {
"line": 278,
"column": 8
},
"end": {
"line": 278,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6524,
"end": 6525,
"loc": {
"start": {
"line": 278,
"column": 9
},
"end": {
"line": 278,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 6525,
"end": 6531,
"loc": {
"start": {
"line": 278,
"column": 10
},
"end": {
"line": 278,
"column": 16
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 6532,
"end": 6535,
"loc": {
"start": {
"line": 278,
"column": 17
},
"end": {
"line": 278,
"column": 20
}
}
},
{
"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": 6536,
"end": 6540,
"loc": {
"start": {
"line": 278,
"column": 21
},
"end": {
"line": 278,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6540,
"end": 6541,
"loc": {
"start": {
"line": 278,
"column": 25
},
"end": {
"line": 278,
"column": 26
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6542,
"end": 6543,
"loc": {
"start": {
"line": 278,
"column": 27
},
"end": {
"line": 278,
"column": 28
}
}
},
{
"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": 6550,
"end": 6552,
"loc": {
"start": {
"line": 279,
"column": 6
},
"end": {
"line": 279,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6553,
"end": 6554,
"loc": {
"start": {
"line": 279,
"column": 9
},
"end": {
"line": 279,
"column": 10
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 6554,
"end": 6555,
"loc": {
"start": {
"line": 279,
"column": 10
},
"end": {
"line": 279,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isFakeChild",
"start": 6555,
"end": 6566,
"loc": {
"start": {
"line": 279,
"column": 11
},
"end": {
"line": 279,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6566,
"end": 6567,
"loc": {
"start": {
"line": 279,
"column": 22
},
"end": {
"line": 279,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6568,
"end": 6569,
"loc": {
"start": {
"line": 279,
"column": 24
},
"end": {
"line": 279,
"column": 25
}
}
},
{
"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": 6578,
"end": 6582,
"loc": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 280,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6582,
"end": 6583,
"loc": {
"start": {
"line": 280,
"column": 12
},
"end": {
"line": 280,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 6583,
"end": 6587,
"loc": {
"start": {
"line": 280,
"column": 13
},
"end": {
"line": 280,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6588,
"end": 6589,
"loc": {
"start": {
"line": 280,
"column": 18
},
"end": {
"line": 280,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6590,
"end": 6595,
"loc": {
"start": {
"line": 280,
"column": 20
},
"end": {
"line": 280,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6604,
"end": 6609,
"loc": {
"start": {
"line": 281,
"column": 8
},
"end": {
"line": 281,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6609,
"end": 6610,
"loc": {
"start": {
"line": 281,
"column": 13
},
"end": {
"line": 281,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 6610,
"end": 6617,
"loc": {
"start": {
"line": 281,
"column": 14
},
"end": {
"line": 281,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6617,
"end": 6618,
"loc": {
"start": {
"line": 281,
"column": 21
},
"end": {
"line": 281,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6618,
"end": 6619,
"loc": {
"start": {
"line": 281,
"column": 22
},
"end": {
"line": 281,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6628,
"end": 6633,
"loc": {
"start": {
"line": 282,
"column": 8
},
"end": {
"line": 282,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6633,
"end": 6634,
"loc": {
"start": {
"line": 282,
"column": 13
},
"end": {
"line": 282,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_parent",
"start": 6634,
"end": 6641,
"loc": {
"start": {
"line": 282,
"column": 14
},
"end": {
"line": 282,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6642,
"end": 6643,
"loc": {
"start": {
"line": 282,
"column": 22
},
"end": {
"line": 282,
"column": 23
}
}
},
{
"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": 6644,
"end": 6648,
"loc": {
"start": {
"line": 282,
"column": 24
},
"end": {
"line": 282,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6655,
"end": 6656,
"loc": {
"start": {
"line": 283,
"column": 6
},
"end": {
"line": 283,
"column": 7
}
}
},
{
"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": 6657,
"end": 6661,
"loc": {
"start": {
"line": 283,
"column": 8
},
"end": {
"line": 283,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6662,
"end": 6663,
"loc": {
"start": {
"line": 283,
"column": 13
},
"end": {
"line": 283,
"column": 14
}
}
},
{
"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": 6672,
"end": 6676,
"loc": {
"start": {
"line": 284,
"column": 8
},
"end": {
"line": 284,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6676,
"end": 6677,
"loc": {
"start": {
"line": 284,
"column": 12
},
"end": {
"line": 284,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 6677,
"end": 6681,
"loc": {
"start": {
"line": 284,
"column": 13
},
"end": {
"line": 284,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6682,
"end": 6683,
"loc": {
"start": {
"line": 284,
"column": 18
},
"end": {
"line": 284,
"column": 19
}
}
},
{
"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": 6684,
"end": 6688,
"loc": {
"start": {
"line": 284,
"column": 20
},
"end": {
"line": 284,
"column": 24
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6695,
"end": 6696,
"loc": {
"start": {
"line": 285,
"column": 6
},
"end": {
"line": 285,
"column": 7
}
}
},
{
"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": 6703,
"end": 6709,
"loc": {
"start": {
"line": 286,
"column": 6
},
"end": {
"line": 286,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6714,
"end": 6715,
"loc": {
"start": {
"line": 287,
"column": 4
},
"end": {
"line": 287,
"column": 5
}
}
},
{
"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": 6716,
"end": 6720,
"loc": {
"start": {
"line": 287,
"column": 6
},
"end": {
"line": 287,
"column": 10
}
}
},
{
"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": 6721,
"end": 6723,
"loc": {
"start": {
"line": 287,
"column": 11
},
"end": {
"line": 287,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6724,
"end": 6725,
"loc": {
"start": {
"line": 287,
"column": 14
},
"end": {
"line": 287,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6725,
"end": 6726,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6726,
"end": 6727,
"loc": {
"start": {
"line": 287,
"column": 16
},
"end": {
"line": 287,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 6727,
"end": 6733,
"loc": {
"start": {
"line": 287,
"column": 17
},
"end": {
"line": 287,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6733,
"end": 6734,
"loc": {
"start": {
"line": 287,
"column": 23
},
"end": {
"line": 287,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 6734,
"end": 6738,
"loc": {
"start": {
"line": 287,
"column": 24
},
"end": {
"line": 287,
"column": 28
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 6739,
"end": 6742,
"loc": {
"start": {
"line": 287,
"column": 29
},
"end": {
"line": 287,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6743,
"end": 6744,
"loc": {
"start": {
"line": 287,
"column": 33
},
"end": {
"line": 287,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6744,
"end": 6745,
"loc": {
"start": {
"line": 287,
"column": 34
},
"end": {
"line": 287,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6746,
"end": 6747,
"loc": {
"start": {
"line": 287,
"column": 36
},
"end": {
"line": 287,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6754,
"end": 6755,
"loc": {
"start": {
"line": 288,
"column": 6
},
"end": {
"line": 288,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6755,
"end": 6756,
"loc": {
"start": {
"line": 288,
"column": 7
},
"end": {
"line": 288,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 6756,
"end": 6762,
"loc": {
"start": {
"line": 288,
"column": 8
},
"end": {
"line": 288,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6762,
"end": 6763,
"loc": {
"start": {
"line": 288,
"column": 14
},
"end": {
"line": 288,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 6763,
"end": 6767,
"loc": {
"start": {
"line": 288,
"column": 15
},
"end": {
"line": 288,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6768,
"end": 6769,
"loc": {
"start": {
"line": 288,
"column": 20
},
"end": {
"line": 288,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6770,
"end": 6775,
"loc": {
"start": {
"line": 288,
"column": 22
},
"end": {
"line": 288,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6780,
"end": 6781,
"loc": {
"start": {
"line": 289,
"column": 4
},
"end": {
"line": 289,
"column": 5
}
}
},
{
"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": 6782,
"end": 6786,
"loc": {
"start": {
"line": 289,
"column": 6
},
"end": {
"line": 289,
"column": 10
}
}
},
{
"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": 6787,
"end": 6789,
"loc": {
"start": {
"line": 289,
"column": 11
},
"end": {
"line": 289,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6790,
"end": 6791,
"loc": {
"start": {
"line": 289,
"column": 14
},
"end": {
"line": 289,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6791,
"end": 6792,
"loc": {
"start": {
"line": 289,
"column": 15
},
"end": {
"line": 289,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6792,
"end": 6793,
"loc": {
"start": {
"line": 289,
"column": 16
},
"end": {
"line": 289,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 6793,
"end": 6799,
"loc": {
"start": {
"line": 289,
"column": 17
},
"end": {
"line": 289,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6799,
"end": 6800,
"loc": {
"start": {
"line": 289,
"column": 23
},
"end": {
"line": 289,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6800,
"end": 6805,
"loc": {
"start": {
"line": 289,
"column": 24
},
"end": {
"line": 289,
"column": 29
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 6806,
"end": 6809,
"loc": {
"start": {
"line": 289,
"column": 30
},
"end": {
"line": 289,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6810,
"end": 6811,
"loc": {
"start": {
"line": 289,
"column": 34
},
"end": {
"line": 289,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6811,
"end": 6812,
"loc": {
"start": {
"line": 289,
"column": 35
},
"end": {
"line": 289,
"column": 36
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6813,
"end": 6814,
"loc": {
"start": {
"line": 289,
"column": 37
},
"end": {
"line": 289,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6821,
"end": 6822,
"loc": {
"start": {
"line": 290,
"column": 6
},
"end": {
"line": 290,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6822,
"end": 6823,
"loc": {
"start": {
"line": 290,
"column": 7
},
"end": {
"line": 290,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 6823,
"end": 6829,
"loc": {
"start": {
"line": 290,
"column": 8
},
"end": {
"line": 290,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6829,
"end": 6830,
"loc": {
"start": {
"line": 290,
"column": 14
},
"end": {
"line": 290,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6830,
"end": 6835,
"loc": {
"start": {
"line": 290,
"column": 15
},
"end": {
"line": 290,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6836,
"end": 6837,
"loc": {
"start": {
"line": 290,
"column": 21
},
"end": {
"line": 290,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6838,
"end": 6843,
"loc": {
"start": {
"line": 290,
"column": 23
},
"end": {
"line": 290,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6848,
"end": 6849,
"loc": {
"start": {
"line": 291,
"column": 4
},
"end": {
"line": 291,
"column": 5
}
}
},
{
"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": 6850,
"end": 6854,
"loc": {
"start": {
"line": 291,
"column": 6
},
"end": {
"line": 291,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6855,
"end": 6856,
"loc": {
"start": {
"line": 291,
"column": 11
},
"end": {
"line": 291,
"column": 12
}
}
},
{
"type": {
"label": "throw",
"keyword": "throw",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "throw",
"start": 6863,
"end": 6868,
"loc": {
"start": {
"line": 292,
"column": 6
},
"end": {
"line": 292,
"column": 11
}
}
},
{
"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": 6869,
"end": 6872,
"loc": {
"start": {
"line": 292,
"column": 12
},
"end": {
"line": 292,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Error",
"start": 6873,
"end": 6878,
"loc": {
"start": {
"line": 292,
"column": 16
},
"end": {
"line": 292,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6878,
"end": 6879,
"loc": {
"start": {
"line": 292,
"column": 21
},
"end": {
"line": 292,
"column": 22
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Impossible!",
"start": 6879,
"end": 6892,
"loc": {
"start": {
"line": 292,
"column": 22
},
"end": {
"line": 292,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6892,
"end": 6893,
"loc": {
"start": {
"line": 292,
"column": 35
},
"end": {
"line": 292,
"column": 36
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6898,
"end": 6899,
"loc": {
"start": {
"line": 293,
"column": 4
},
"end": {
"line": 293,
"column": 5
}
}
},
{
"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": 6904,
"end": 6906,
"loc": {
"start": {
"line": 294,
"column": 4
},
"end": {
"line": 294,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6907,
"end": 6908,
"loc": {
"start": {
"line": 294,
"column": 7
},
"end": {
"line": 294,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "d",
"start": 6908,
"end": 6909,
"loc": {
"start": {
"line": 294,
"column": 8
},
"end": {
"line": 294,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6909,
"end": 6910,
"loc": {
"start": {
"line": 294,
"column": 9
},
"end": {
"line": 294,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 6910,
"end": 6917,
"loc": {
"start": {
"line": 294,
"column": 10
},
"end": {
"line": 294,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6917,
"end": 6918,
"loc": {
"start": {
"line": 294,
"column": 17
},
"end": {
"line": 294,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6918,
"end": 6919,
"loc": {
"start": {
"line": 294,
"column": 18
},
"end": {
"line": 294,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6919,
"end": 6920,
"loc": {
"start": {
"line": 294,
"column": 19
},
"end": {
"line": 294,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6921,
"end": 6922,
"loc": {
"start": {
"line": 294,
"column": 21
},
"end": {
"line": 294,
"column": 22
}
}
},
{
"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": 6929,
"end": 6931,
"loc": {
"start": {
"line": 295,
"column": 6
},
"end": {
"line": 295,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6932,
"end": 6933,
"loc": {
"start": {
"line": 295,
"column": 9
},
"end": {
"line": 295,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6933,
"end": 6938,
"loc": {
"start": {
"line": 295,
"column": 10
},
"end": {
"line": 295,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6938,
"end": 6939,
"loc": {
"start": {
"line": 295,
"column": 15
},
"end": {
"line": 295,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 6939,
"end": 6944,
"loc": {
"start": {
"line": 295,
"column": 16
},
"end": {
"line": 295,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6944,
"end": 6945,
"loc": {
"start": {
"line": 295,
"column": 21
},
"end": {
"line": 295,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6945,
"end": 6946,
"loc": {
"start": {
"line": 295,
"column": 22
},
"end": {
"line": 295,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6946,
"end": 6947,
"loc": {
"start": {
"line": 295,
"column": 23
},
"end": {
"line": 295,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6948,
"end": 6949,
"loc": {
"start": {
"line": 295,
"column": 25
},
"end": {
"line": 295,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 6958,
"end": 6963,
"loc": {
"start": {
"line": 296,
"column": 8
},
"end": {
"line": 296,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6963,
"end": 6964,
"loc": {
"start": {
"line": 296,
"column": 13
},
"end": {
"line": 296,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 6964,
"end": 6971,
"loc": {
"start": {
"line": 296,
"column": 14
},
"end": {
"line": 296,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6971,
"end": 6972,
"loc": {
"start": {
"line": 296,
"column": 21
},
"end": {
"line": 296,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6972,
"end": 6973,
"loc": {
"start": {
"line": 296,
"column": 22
},
"end": {
"line": 296,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6980,
"end": 6981,
"loc": {
"start": {
"line": 297,
"column": 6
},
"end": {
"line": 297,
"column": 7
}
}
},
{
"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": 6982,
"end": 6986,
"loc": {
"start": {
"line": 297,
"column": 8
},
"end": {
"line": 297,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6987,
"end": 6988,
"loc": {
"start": {
"line": 297,
"column": 13
},
"end": {
"line": 297,
"column": 14
}
}
},
{
"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": 6997,
"end": 7001,
"loc": {
"start": {
"line": 298,
"column": 8
},
"end": {
"line": 298,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7001,
"end": 7002,
"loc": {
"start": {
"line": 298,
"column": 12
},
"end": {
"line": 298,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_fixDelete",
"start": 7002,
"end": 7012,
"loc": {
"start": {
"line": 298,
"column": 13
},
"end": {
"line": 298,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7012,
"end": 7013,
"loc": {
"start": {
"line": 298,
"column": 23
},
"end": {
"line": 298,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 7013,
"end": 7018,
"loc": {
"start": {
"line": 298,
"column": 24
},
"end": {
"line": 298,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7018,
"end": 7019,
"loc": {
"start": {
"line": 298,
"column": 29
},
"end": {
"line": 298,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7026,
"end": 7027,
"loc": {
"start": {
"line": 299,
"column": 6
},
"end": {
"line": 299,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7032,
"end": 7033,
"loc": {
"start": {
"line": 300,
"column": 4
},
"end": {
"line": 300,
"column": 5
}
}
},
{
"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": 7038,
"end": 7042,
"loc": {
"start": {
"line": 301,
"column": 4
},
"end": {
"line": 301,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7042,
"end": 7043,
"loc": {
"start": {
"line": 301,
"column": 8
},
"end": {
"line": 301,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 7043,
"end": 7047,
"loc": {
"start": {
"line": 301,
"column": 9
},
"end": {
"line": 301,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7047,
"end": 7048,
"loc": {
"start": {
"line": 301,
"column": 13
},
"end": {
"line": 301,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 7048,
"end": 7055,
"loc": {
"start": {
"line": 301,
"column": 14
},
"end": {
"line": 301,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7055,
"end": 7056,
"loc": {
"start": {
"line": 301,
"column": 21
},
"end": {
"line": 301,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7056,
"end": 7057,
"loc": {
"start": {
"line": 301,
"column": 22
},
"end": {
"line": 301,
"column": 23
}
}
},
{
"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": 7062,
"end": 7064,
"loc": {
"start": {
"line": 302,
"column": 4
},
"end": {
"line": 302,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7065,
"end": 7066,
"loc": {
"start": {
"line": 302,
"column": 7
},
"end": {
"line": 302,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isFakeChild",
"start": 7066,
"end": 7077,
"loc": {
"start": {
"line": 302,
"column": 8
},
"end": {
"line": 302,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7077,
"end": 7078,
"loc": {
"start": {
"line": 302,
"column": 19
},
"end": {
"line": 302,
"column": 20
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7079,
"end": 7080,
"loc": {
"start": {
"line": 302,
"column": 21
},
"end": {
"line": 302,
"column": 22
}
}
},
{
"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": 7087,
"end": 7089,
"loc": {
"start": {
"line": 303,
"column": 6
},
"end": {
"line": 303,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7090,
"end": 7091,
"loc": {
"start": {
"line": 303,
"column": 9
},
"end": {
"line": 303,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 7091,
"end": 7096,
"loc": {
"start": {
"line": 303,
"column": 10
},
"end": {
"line": 303,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7096,
"end": 7097,
"loc": {
"start": {
"line": 303,
"column": 15
},
"end": {
"line": 303,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7097,
"end": 7103,
"loc": {
"start": {
"line": 303,
"column": 16
},
"end": {
"line": 303,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7103,
"end": 7104,
"loc": {
"start": {
"line": 303,
"column": 22
},
"end": {
"line": 303,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 7104,
"end": 7108,
"loc": {
"start": {
"line": 303,
"column": 23
},
"end": {
"line": 303,
"column": 27
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 7109,
"end": 7112,
"loc": {
"start": {
"line": 303,
"column": 28
},
"end": {
"line": 303,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 7113,
"end": 7118,
"loc": {
"start": {
"line": 303,
"column": 32
},
"end": {
"line": 303,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7118,
"end": 7119,
"loc": {
"start": {
"line": 303,
"column": 37
},
"end": {
"line": 303,
"column": 38
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7120,
"end": 7121,
"loc": {
"start": {
"line": 303,
"column": 39
},
"end": {
"line": 303,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 7130,
"end": 7135,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7135,
"end": 7136,
"loc": {
"start": {
"line": 304,
"column": 13
},
"end": {
"line": 304,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7136,
"end": 7142,
"loc": {
"start": {
"line": 304,
"column": 14
},
"end": {
"line": 304,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7142,
"end": 7143,
"loc": {
"start": {
"line": 304,
"column": 20
},
"end": {
"line": 304,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 7143,
"end": 7147,
"loc": {
"start": {
"line": 304,
"column": 21
},
"end": {
"line": 304,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7148,
"end": 7149,
"loc": {
"start": {
"line": 304,
"column": 26
},
"end": {
"line": 304,
"column": 27
}
}
},
{
"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": 7150,
"end": 7154,
"loc": {
"start": {
"line": 304,
"column": 28
},
"end": {
"line": 304,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7161,
"end": 7162,
"loc": {
"start": {
"line": 305,
"column": 6
},
"end": {
"line": 305,
"column": 7
}
}
},
{
"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": 7163,
"end": 7167,
"loc": {
"start": {
"line": 305,
"column": 8
},
"end": {
"line": 305,
"column": 12
}
}
},
{
"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": 7168,
"end": 7170,
"loc": {
"start": {
"line": 305,
"column": 13
},
"end": {
"line": 305,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7171,
"end": 7172,
"loc": {
"start": {
"line": 305,
"column": 16
},
"end": {
"line": 305,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 7172,
"end": 7177,
"loc": {
"start": {
"line": 305,
"column": 17
},
"end": {
"line": 305,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7177,
"end": 7178,
"loc": {
"start": {
"line": 305,
"column": 22
},
"end": {
"line": 305,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7178,
"end": 7184,
"loc": {
"start": {
"line": 305,
"column": 23
},
"end": {
"line": 305,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7184,
"end": 7185,
"loc": {
"start": {
"line": 305,
"column": 29
},
"end": {
"line": 305,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7185,
"end": 7190,
"loc": {
"start": {
"line": 305,
"column": 30
},
"end": {
"line": 305,
"column": 35
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 7191,
"end": 7194,
"loc": {
"start": {
"line": 305,
"column": 36
},
"end": {
"line": 305,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 7195,
"end": 7200,
"loc": {
"start": {
"line": 305,
"column": 40
},
"end": {
"line": 305,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7200,
"end": 7201,
"loc": {
"start": {
"line": 305,
"column": 45
},
"end": {
"line": 305,
"column": 46
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7202,
"end": 7203,
"loc": {
"start": {
"line": 305,
"column": 47
},
"end": {
"line": 305,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 7212,
"end": 7217,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7217,
"end": 7218,
"loc": {
"start": {
"line": 306,
"column": 13
},
"end": {
"line": 306,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7218,
"end": 7224,
"loc": {
"start": {
"line": 306,
"column": 14
},
"end": {
"line": 306,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7224,
"end": 7225,
"loc": {
"start": {
"line": 306,
"column": 20
},
"end": {
"line": 306,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7225,
"end": 7230,
"loc": {
"start": {
"line": 306,
"column": 21
},
"end": {
"line": 306,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7231,
"end": 7232,
"loc": {
"start": {
"line": 306,
"column": 27
},
"end": {
"line": 306,
"column": 28
}
}
},
{
"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": 7233,
"end": 7237,
"loc": {
"start": {
"line": 306,
"column": 29
},
"end": {
"line": 306,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7244,
"end": 7245,
"loc": {
"start": {
"line": 307,
"column": 6
},
"end": {
"line": 307,
"column": 7
}
}
},
{
"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": 7246,
"end": 7250,
"loc": {
"start": {
"line": 307,
"column": 8
},
"end": {
"line": 307,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7251,
"end": 7252,
"loc": {
"start": {
"line": 307,
"column": 13
},
"end": {
"line": 307,
"column": 14
}
}
},
{
"type": {
"label": "throw",
"keyword": "throw",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "throw",
"start": 7261,
"end": 7266,
"loc": {
"start": {
"line": 308,
"column": 8
},
"end": {
"line": 308,
"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": 7267,
"end": 7270,
"loc": {
"start": {
"line": 308,
"column": 14
},
"end": {
"line": 308,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Error",
"start": 7271,
"end": 7276,
"loc": {
"start": {
"line": 308,
"column": 18
},
"end": {
"line": 308,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7276,
"end": 7277,
"loc": {
"start": {
"line": 308,
"column": 23
},
"end": {
"line": 308,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Impossible #3",
"start": 7277,
"end": 7292,
"loc": {
"start": {
"line": 308,
"column": 24
},
"end": {
"line": 308,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7292,
"end": 7293,
"loc": {
"start": {
"line": 308,
"column": 39
},
"end": {
"line": 308,
"column": 40
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7300,
"end": 7301,
"loc": {
"start": {
"line": 309,
"column": 6
},
"end": {
"line": 309,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7306,
"end": 7307,
"loc": {
"start": {
"line": 310,
"column": 4
},
"end": {
"line": 310,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7310,
"end": 7311,
"loc": {
"start": {
"line": 311,
"column": 2
},
"end": {
"line": 311,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_fixDelete",
"start": 7314,
"end": 7324,
"loc": {
"start": {
"line": 312,
"column": 2
},
"end": {
"line": 312,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7325,
"end": 7326,
"loc": {
"start": {
"line": 312,
"column": 13
},
"end": {
"line": 312,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7326,
"end": 7327,
"loc": {
"start": {
"line": 312,
"column": 14
},
"end": {
"line": 312,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7327,
"end": 7328,
"loc": {
"start": {
"line": 312,
"column": 15
},
"end": {
"line": 312,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7329,
"end": 7330,
"loc": {
"start": {
"line": 312,
"column": 17
},
"end": {
"line": 312,
"column": 18
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 7335,
"end": 7343,
"loc": {
"start": {
"line": 313,
"column": 4
},
"end": {
"line": 313,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 7344,
"end": 7351,
"loc": {
"start": {
"line": 313,
"column": 13
},
"end": {
"line": 313,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7352,
"end": 7353,
"loc": {
"start": {
"line": 313,
"column": 21
},
"end": {
"line": 313,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 7353,
"end": 7357,
"loc": {
"start": {
"line": 313,
"column": 22
},
"end": {
"line": 313,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7357,
"end": 7358,
"loc": {
"start": {
"line": 313,
"column": 26
},
"end": {
"line": 313,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7359,
"end": 7360,
"loc": {
"start": {
"line": 313,
"column": 28
},
"end": {
"line": 313,
"column": 29
}
}
},
{
"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": 7367,
"end": 7373,
"loc": {
"start": {
"line": 314,
"column": 6
},
"end": {
"line": 314,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 7374,
"end": 7378,
"loc": {
"start": {
"line": 314,
"column": 13
},
"end": {
"line": 314,
"column": 17
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 7379,
"end": 7382,
"loc": {
"start": {
"line": 314,
"column": 18
},
"end": {
"line": 314,
"column": 21
}
}
},
{
"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": 7383,
"end": 7387,
"loc": {
"start": {
"line": 314,
"column": 22
},
"end": {
"line": 314,
"column": 26
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7388,
"end": 7389,
"loc": {
"start": {
"line": 314,
"column": 27
},
"end": {
"line": 314,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 7390,
"end": 7394,
"loc": {
"start": {
"line": 314,
"column": 29
},
"end": {
"line": 314,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7394,
"end": 7395,
"loc": {
"start": {
"line": 314,
"column": 33
},
"end": {
"line": 314,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 7395,
"end": 7402,
"loc": {
"start": {
"line": 314,
"column": 34
},
"end": {
"line": 314,
"column": 41
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7402,
"end": 7403,
"loc": {
"start": {
"line": 314,
"column": 41
},
"end": {
"line": 314,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7403,
"end": 7404,
"loc": {
"start": {
"line": 314,
"column": 42
},
"end": {
"line": 314,
"column": 43
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7405,
"end": 7406,
"loc": {
"start": {
"line": 314,
"column": 44
},
"end": {
"line": 314,
"column": 45
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 7407,
"end": 7411,
"loc": {
"start": {
"line": 314,
"column": 46
},
"end": {
"line": 314,
"column": 50
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7416,
"end": 7417,
"loc": {
"start": {
"line": 315,
"column": 4
},
"end": {
"line": 315,
"column": 5
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 7422,
"end": 7430,
"loc": {
"start": {
"line": 316,
"column": 4
},
"end": {
"line": 316,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 7431,
"end": 7436,
"loc": {
"start": {
"line": 316,
"column": 13
},
"end": {
"line": 316,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7437,
"end": 7438,
"loc": {
"start": {
"line": 316,
"column": 19
},
"end": {
"line": 316,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 7438,
"end": 7442,
"loc": {
"start": {
"line": 316,
"column": 20
},
"end": {
"line": 316,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7442,
"end": 7443,
"loc": {
"start": {
"line": 316,
"column": 24
},
"end": {
"line": 316,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7444,
"end": 7445,
"loc": {
"start": {
"line": 316,
"column": 26
},
"end": {
"line": 316,
"column": 27
}
}
},
{
"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": 7452,
"end": 7458,
"loc": {
"start": {
"line": 317,
"column": 6
},
"end": {
"line": 317,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 7459,
"end": 7463,
"loc": {
"start": {
"line": 317,
"column": 13
},
"end": {
"line": 317,
"column": 17
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 7464,
"end": 7467,
"loc": {
"start": {
"line": 317,
"column": 18
},
"end": {
"line": 317,
"column": 21
}
}
},
{
"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": 7468,
"end": 7472,
"loc": {
"start": {
"line": 317,
"column": 22
},
"end": {
"line": 317,
"column": 26
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7473,
"end": 7474,
"loc": {
"start": {
"line": 317,
"column": 27
},
"end": {
"line": 317,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 7475,
"end": 7479,
"loc": {
"start": {
"line": 317,
"column": 29
},
"end": {
"line": 317,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7479,
"end": 7480,
"loc": {
"start": {
"line": 317,
"column": 33
},
"end": {
"line": 317,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 7480,
"end": 7485,
"loc": {
"start": {
"line": 317,
"column": 34
},
"end": {
"line": 317,
"column": 39
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7485,
"end": 7486,
"loc": {
"start": {
"line": 317,
"column": 39
},
"end": {
"line": 317,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7486,
"end": 7487,
"loc": {
"start": {
"line": 317,
"column": 40
},
"end": {
"line": 317,
"column": 41
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7488,
"end": 7489,
"loc": {
"start": {
"line": 317,
"column": 42
},
"end": {
"line": 317,
"column": 43
}
}
},
{
"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": 7490,
"end": 7495,
"loc": {
"start": {
"line": 317,
"column": 44
},
"end": {
"line": 317,
"column": 49
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7500,
"end": 7501,
"loc": {
"start": {
"line": 318,
"column": 4
},
"end": {
"line": 318,
"column": 5
}
}
},
{
"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": 7506,
"end": 7508,
"loc": {
"start": {
"line": 319,
"column": 4
},
"end": {
"line": 319,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7509,
"end": 7510,
"loc": {
"start": {
"line": 319,
"column": 7
},
"end": {
"line": 319,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7510,
"end": 7511,
"loc": {
"start": {
"line": 319,
"column": 8
},
"end": {
"line": 319,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7511,
"end": 7512,
"loc": {
"start": {
"line": 319,
"column": 9
},
"end": {
"line": 319,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7512,
"end": 7518,
"loc": {
"start": {
"line": 319,
"column": 10
},
"end": {
"line": 319,
"column": 16
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 7519,
"end": 7522,
"loc": {
"start": {
"line": 319,
"column": 17
},
"end": {
"line": 319,
"column": 20
}
}
},
{
"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": 7523,
"end": 7527,
"loc": {
"start": {
"line": 319,
"column": 21
},
"end": {
"line": 319,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7527,
"end": 7528,
"loc": {
"start": {
"line": 319,
"column": 25
},
"end": {
"line": 319,
"column": 26
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7529,
"end": 7530,
"loc": {
"start": {
"line": 319,
"column": 27
},
"end": {
"line": 319,
"column": 28
}
}
},
{
"type": "CommentLine",
"value": " this can only be called after the first iteration of fixDelete.",
"start": 7537,
"end": 7603,
"loc": {
"start": {
"line": 320,
"column": 6
},
"end": {
"line": 320,
"column": 72
}
}
},
{
"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": 7610,
"end": 7616,
"loc": {
"start": {
"line": 321,
"column": 6
},
"end": {
"line": 321,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7621,
"end": 7622,
"loc": {
"start": {
"line": 322,
"column": 4
},
"end": {
"line": 322,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " d was already replaced by the child",
"start": 7627,
"end": 7665,
"loc": {
"start": {
"line": 323,
"column": 4
},
"end": {
"line": 323,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " d is not the root",
"start": 7670,
"end": 7690,
"loc": {
"start": {
"line": 324,
"column": 4
},
"end": {
"line": 324,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " d and child are black",
"start": 7695,
"end": 7719,
"loc": {
"start": {
"line": 325,
"column": 4
},
"end": {
"line": 325,
"column": 28
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 7724,
"end": 7727,
"loc": {
"start": {
"line": 326,
"column": 4
},
"end": {
"line": 326,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 7728,
"end": 7735,
"loc": {
"start": {
"line": 326,
"column": 8
},
"end": {
"line": 326,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7736,
"end": 7737,
"loc": {
"start": {
"line": 326,
"column": 16
},
"end": {
"line": 326,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7738,
"end": 7739,
"loc": {
"start": {
"line": 326,
"column": 18
},
"end": {
"line": 326,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7739,
"end": 7740,
"loc": {
"start": {
"line": 326,
"column": 19
},
"end": {
"line": 326,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 7740,
"end": 7747,
"loc": {
"start": {
"line": 326,
"column": 20
},
"end": {
"line": 326,
"column": 27
}
}
},
{
"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": 7752,
"end": 7754,
"loc": {
"start": {
"line": 327,
"column": 4
},
"end": {
"line": 327,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7755,
"end": 7756,
"loc": {
"start": {
"line": 327,
"column": 7
},
"end": {
"line": 327,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 7756,
"end": 7761,
"loc": {
"start": {
"line": 327,
"column": 8
},
"end": {
"line": 327,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7761,
"end": 7762,
"loc": {
"start": {
"line": 327,
"column": 13
},
"end": {
"line": 327,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 7762,
"end": 7769,
"loc": {
"start": {
"line": 327,
"column": 14
},
"end": {
"line": 327,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7769,
"end": 7770,
"loc": {
"start": {
"line": 327,
"column": 21
},
"end": {
"line": 327,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7770,
"end": 7771,
"loc": {
"start": {
"line": 327,
"column": 22
},
"end": {
"line": 327,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7772,
"end": 7773,
"loc": {
"start": {
"line": 327,
"column": 24
},
"end": {
"line": 327,
"column": 25
}
}
},
{
"type": "CommentLine",
"value": " make sibling the grandfather",
"start": 7780,
"end": 7811,
"loc": {
"start": {
"line": 328,
"column": 6
},
"end": {
"line": 328,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7818,
"end": 7819,
"loc": {
"start": {
"line": 329,
"column": 6
},
"end": {
"line": 329,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7819,
"end": 7820,
"loc": {
"start": {
"line": 329,
"column": 7
},
"end": {
"line": 329,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7820,
"end": 7826,
"loc": {
"start": {
"line": 329,
"column": 8
},
"end": {
"line": 329,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7826,
"end": 7827,
"loc": {
"start": {
"line": 329,
"column": 14
},
"end": {
"line": 329,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 7827,
"end": 7833,
"loc": {
"start": {
"line": 329,
"column": 15
},
"end": {
"line": 329,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7833,
"end": 7834,
"loc": {
"start": {
"line": 329,
"column": 21
},
"end": {
"line": 329,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7834,
"end": 7835,
"loc": {
"start": {
"line": 329,
"column": 22
},
"end": {
"line": 329,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 7842,
"end": 7849,
"loc": {
"start": {
"line": 330,
"column": 6
},
"end": {
"line": 330,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7849,
"end": 7850,
"loc": {
"start": {
"line": 330,
"column": 13
},
"end": {
"line": 330,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 7850,
"end": 7857,
"loc": {
"start": {
"line": 330,
"column": 14
},
"end": {
"line": 330,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7857,
"end": 7858,
"loc": {
"start": {
"line": 330,
"column": 21
},
"end": {
"line": 330,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7858,
"end": 7859,
"loc": {
"start": {
"line": 330,
"column": 22
},
"end": {
"line": 330,
"column": 23
}
}
},
{
"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": 7866,
"end": 7868,
"loc": {
"start": {
"line": 331,
"column": 6
},
"end": {
"line": 331,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7869,
"end": 7870,
"loc": {
"start": {
"line": 331,
"column": 9
},
"end": {
"line": 331,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7870,
"end": 7871,
"loc": {
"start": {
"line": 331,
"column": 10
},
"end": {
"line": 331,
"column": 11
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 7872,
"end": 7875,
"loc": {
"start": {
"line": 331,
"column": 12
},
"end": {
"line": 331,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7876,
"end": 7877,
"loc": {
"start": {
"line": 331,
"column": 16
},
"end": {
"line": 331,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7877,
"end": 7878,
"loc": {
"start": {
"line": 331,
"column": 17
},
"end": {
"line": 331,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7878,
"end": 7884,
"loc": {
"start": {
"line": 331,
"column": 18
},
"end": {
"line": 331,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7884,
"end": 7885,
"loc": {
"start": {
"line": 331,
"column": 24
},
"end": {
"line": 331,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 7885,
"end": 7889,
"loc": {
"start": {
"line": 331,
"column": 25
},
"end": {
"line": 331,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7889,
"end": 7890,
"loc": {
"start": {
"line": 331,
"column": 29
},
"end": {
"line": 331,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7891,
"end": 7892,
"loc": {
"start": {
"line": 331,
"column": 31
},
"end": {
"line": 331,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7901,
"end": 7902,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 332,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7902,
"end": 7903,
"loc": {
"start": {
"line": 332,
"column": 9
},
"end": {
"line": 332,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7903,
"end": 7909,
"loc": {
"start": {
"line": 332,
"column": 10
},
"end": {
"line": 332,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7909,
"end": 7910,
"loc": {
"start": {
"line": 332,
"column": 16
},
"end": {
"line": 332,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateLeft",
"start": 7910,
"end": 7920,
"loc": {
"start": {
"line": 332,
"column": 17
},
"end": {
"line": 332,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7920,
"end": 7921,
"loc": {
"start": {
"line": 332,
"column": 27
},
"end": {
"line": 332,
"column": 28
}
}
},
{
"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": 7921,
"end": 7925,
"loc": {
"start": {
"line": 332,
"column": 28
},
"end": {
"line": 332,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7925,
"end": 7926,
"loc": {
"start": {
"line": 332,
"column": 32
},
"end": {
"line": 332,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7933,
"end": 7934,
"loc": {
"start": {
"line": 333,
"column": 6
},
"end": {
"line": 333,
"column": 7
}
}
},
{
"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": 7935,
"end": 7939,
"loc": {
"start": {
"line": 333,
"column": 8
},
"end": {
"line": 333,
"column": 12
}
}
},
{
"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": 7940,
"end": 7942,
"loc": {
"start": {
"line": 333,
"column": 13
},
"end": {
"line": 333,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7943,
"end": 7944,
"loc": {
"start": {
"line": 333,
"column": 16
},
"end": {
"line": 333,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7944,
"end": 7945,
"loc": {
"start": {
"line": 333,
"column": 17
},
"end": {
"line": 333,
"column": 18
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 7946,
"end": 7949,
"loc": {
"start": {
"line": 333,
"column": 19
},
"end": {
"line": 333,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7950,
"end": 7951,
"loc": {
"start": {
"line": 333,
"column": 23
},
"end": {
"line": 333,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7951,
"end": 7952,
"loc": {
"start": {
"line": 333,
"column": 24
},
"end": {
"line": 333,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7952,
"end": 7958,
"loc": {
"start": {
"line": 333,
"column": 25
},
"end": {
"line": 333,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7958,
"end": 7959,
"loc": {
"start": {
"line": 333,
"column": 31
},
"end": {
"line": 333,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7959,
"end": 7964,
"loc": {
"start": {
"line": 333,
"column": 32
},
"end": {
"line": 333,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7964,
"end": 7965,
"loc": {
"start": {
"line": 333,
"column": 37
},
"end": {
"line": 333,
"column": 38
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7966,
"end": 7967,
"loc": {
"start": {
"line": 333,
"column": 39
},
"end": {
"line": 333,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 7976,
"end": 7977,
"loc": {
"start": {
"line": 334,
"column": 8
},
"end": {
"line": 334,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7977,
"end": 7978,
"loc": {
"start": {
"line": 334,
"column": 9
},
"end": {
"line": 334,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 7978,
"end": 7984,
"loc": {
"start": {
"line": 334,
"column": 10
},
"end": {
"line": 334,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7984,
"end": 7985,
"loc": {
"start": {
"line": 334,
"column": 16
},
"end": {
"line": 334,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateRight",
"start": 7985,
"end": 7996,
"loc": {
"start": {
"line": 334,
"column": 17
},
"end": {
"line": 334,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7996,
"end": 7997,
"loc": {
"start": {
"line": 334,
"column": 28
},
"end": {
"line": 334,
"column": 29
}
}
},
{
"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": 7997,
"end": 8001,
"loc": {
"start": {
"line": 334,
"column": 29
},
"end": {
"line": 334,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8001,
"end": 8002,
"loc": {
"start": {
"line": 334,
"column": 33
},
"end": {
"line": 334,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8009,
"end": 8010,
"loc": {
"start": {
"line": 335,
"column": 6
},
"end": {
"line": 335,
"column": 7
}
}
},
{
"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": 8011,
"end": 8015,
"loc": {
"start": {
"line": 335,
"column": 8
},
"end": {
"line": 335,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8016,
"end": 8017,
"loc": {
"start": {
"line": 335,
"column": 13
},
"end": {
"line": 335,
"column": 14
}
}
},
{
"type": {
"label": "throw",
"keyword": "throw",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "throw",
"start": 8026,
"end": 8031,
"loc": {
"start": {
"line": 336,
"column": 8
},
"end": {
"line": 336,
"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": 8032,
"end": 8035,
"loc": {
"start": {
"line": 336,
"column": 14
},
"end": {
"line": 336,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Error",
"start": 8036,
"end": 8041,
"loc": {
"start": {
"line": 336,
"column": 18
},
"end": {
"line": 336,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8041,
"end": 8042,
"loc": {
"start": {
"line": 336,
"column": 23
},
"end": {
"line": 336,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "Impossible #2",
"start": 8042,
"end": 8057,
"loc": {
"start": {
"line": 336,
"column": 24
},
"end": {
"line": 336,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8057,
"end": 8058,
"loc": {
"start": {
"line": 336,
"column": 39
},
"end": {
"line": 336,
"column": 40
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8065,
"end": 8066,
"loc": {
"start": {
"line": 337,
"column": 6
},
"end": {
"line": 337,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8073,
"end": 8080,
"loc": {
"start": {
"line": 338,
"column": 6
},
"end": {
"line": 338,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 8081,
"end": 8082,
"loc": {
"start": {
"line": 338,
"column": 14
},
"end": {
"line": 338,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8083,
"end": 8084,
"loc": {
"start": {
"line": 338,
"column": 16
},
"end": {
"line": 338,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8084,
"end": 8085,
"loc": {
"start": {
"line": 338,
"column": 17
},
"end": {
"line": 338,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8085,
"end": 8092,
"loc": {
"start": {
"line": 338,
"column": 18
},
"end": {
"line": 338,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8097,
"end": 8098,
"loc": {
"start": {
"line": 339,
"column": 4
},
"end": {
"line": 339,
"column": 5
}
}
},
{
"type": "CommentLine",
"value": " parent, sibling, and children of n are black",
"start": 8103,
"end": 8150,
"loc": {
"start": {
"line": 340,
"column": 4
},
"end": {
"line": 340,
"column": 51
}
}
},
{
"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": 8155,
"end": 8157,
"loc": {
"start": {
"line": 341,
"column": 4
},
"end": {
"line": 341,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8158,
"end": 8159,
"loc": {
"start": {
"line": 341,
"column": 7
},
"end": {
"line": 341,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8159,
"end": 8160,
"loc": {
"start": {
"line": 341,
"column": 8
},
"end": {
"line": 341,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8160,
"end": 8161,
"loc": {
"start": {
"line": 341,
"column": 9
},
"end": {
"line": 341,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 8161,
"end": 8167,
"loc": {
"start": {
"line": 341,
"column": 10
},
"end": {
"line": 341,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8167,
"end": 8168,
"loc": {
"start": {
"line": 341,
"column": 16
},
"end": {
"line": 341,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8168,
"end": 8175,
"loc": {
"start": {
"line": 341,
"column": 17
},
"end": {
"line": 341,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8175,
"end": 8176,
"loc": {
"start": {
"line": 341,
"column": 24
},
"end": {
"line": 341,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8176,
"end": 8177,
"loc": {
"start": {
"line": 341,
"column": 25
},
"end": {
"line": 341,
"column": 26
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8178,
"end": 8180,
"loc": {
"start": {
"line": 341,
"column": 27
},
"end": {
"line": 341,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8187,
"end": 8194,
"loc": {
"start": {
"line": 342,
"column": 6
},
"end": {
"line": 342,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8194,
"end": 8195,
"loc": {
"start": {
"line": 342,
"column": 13
},
"end": {
"line": 342,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8195,
"end": 8202,
"loc": {
"start": {
"line": 342,
"column": 14
},
"end": {
"line": 342,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8202,
"end": 8203,
"loc": {
"start": {
"line": 342,
"column": 21
},
"end": {
"line": 342,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8203,
"end": 8204,
"loc": {
"start": {
"line": 342,
"column": 22
},
"end": {
"line": 342,
"column": 23
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8205,
"end": 8207,
"loc": {
"start": {
"line": 342,
"column": 24
},
"end": {
"line": 342,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8214,
"end": 8221,
"loc": {
"start": {
"line": 343,
"column": 6
},
"end": {
"line": 343,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8221,
"end": 8222,
"loc": {
"start": {
"line": 343,
"column": 13
},
"end": {
"line": 343,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8222,
"end": 8229,
"loc": {
"start": {
"line": 343,
"column": 14
},
"end": {
"line": 343,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8229,
"end": 8230,
"loc": {
"start": {
"line": 343,
"column": 21
},
"end": {
"line": 343,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 8230,
"end": 8234,
"loc": {
"start": {
"line": 343,
"column": 22
},
"end": {
"line": 343,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8234,
"end": 8235,
"loc": {
"start": {
"line": 343,
"column": 26
},
"end": {
"line": 343,
"column": 27
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8236,
"end": 8238,
"loc": {
"start": {
"line": 343,
"column": 28
},
"end": {
"line": 343,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8245,
"end": 8252,
"loc": {
"start": {
"line": 344,
"column": 6
},
"end": {
"line": 344,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8252,
"end": 8253,
"loc": {
"start": {
"line": 344,
"column": 13
},
"end": {
"line": 344,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8253,
"end": 8260,
"loc": {
"start": {
"line": 344,
"column": 14
},
"end": {
"line": 344,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8260,
"end": 8261,
"loc": {
"start": {
"line": 344,
"column": 21
},
"end": {
"line": 344,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 8261,
"end": 8266,
"loc": {
"start": {
"line": 344,
"column": 22
},
"end": {
"line": 344,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8266,
"end": 8267,
"loc": {
"start": {
"line": 344,
"column": 27
},
"end": {
"line": 344,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8272,
"end": 8273,
"loc": {
"start": {
"line": 345,
"column": 4
},
"end": {
"line": 345,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8274,
"end": 8275,
"loc": {
"start": {
"line": 345,
"column": 6
},
"end": {
"line": 345,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8282,
"end": 8289,
"loc": {
"start": {
"line": 346,
"column": 6
},
"end": {
"line": 346,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8289,
"end": 8290,
"loc": {
"start": {
"line": 346,
"column": 13
},
"end": {
"line": 346,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 8290,
"end": 8296,
"loc": {
"start": {
"line": 346,
"column": 14
},
"end": {
"line": 346,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8296,
"end": 8297,
"loc": {
"start": {
"line": 346,
"column": 20
},
"end": {
"line": 346,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8297,
"end": 8298,
"loc": {
"start": {
"line": 346,
"column": 21
},
"end": {
"line": 346,
"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": 8305,
"end": 8309,
"loc": {
"start": {
"line": 347,
"column": 6
},
"end": {
"line": 347,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8309,
"end": 8310,
"loc": {
"start": {
"line": 347,
"column": 10
},
"end": {
"line": 347,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_fixDelete",
"start": 8310,
"end": 8320,
"loc": {
"start": {
"line": 347,
"column": 11
},
"end": {
"line": 347,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8320,
"end": 8321,
"loc": {
"start": {
"line": 347,
"column": 21
},
"end": {
"line": 347,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8321,
"end": 8322,
"loc": {
"start": {
"line": 347,
"column": 22
},
"end": {
"line": 347,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8322,
"end": 8323,
"loc": {
"start": {
"line": 347,
"column": 23
},
"end": {
"line": 347,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 8323,
"end": 8329,
"loc": {
"start": {
"line": 347,
"column": 24
},
"end": {
"line": 347,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8329,
"end": 8330,
"loc": {
"start": {
"line": 347,
"column": 30
},
"end": {
"line": 347,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8335,
"end": 8336,
"loc": {
"start": {
"line": 348,
"column": 4
},
"end": {
"line": 348,
"column": 5
}
}
},
{
"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": 8337,
"end": 8341,
"loc": {
"start": {
"line": 348,
"column": 6
},
"end": {
"line": 348,
"column": 10
}
}
},
{
"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": 8342,
"end": 8344,
"loc": {
"start": {
"line": 348,
"column": 11
},
"end": {
"line": 348,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8345,
"end": 8346,
"loc": {
"start": {
"line": 348,
"column": 14
},
"end": {
"line": 348,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8346,
"end": 8347,
"loc": {
"start": {
"line": 348,
"column": 15
},
"end": {
"line": 348,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8347,
"end": 8348,
"loc": {
"start": {
"line": 348,
"column": 16
},
"end": {
"line": 348,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 8348,
"end": 8354,
"loc": {
"start": {
"line": 348,
"column": 17
},
"end": {
"line": 348,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8354,
"end": 8355,
"loc": {
"start": {
"line": 348,
"column": 23
},
"end": {
"line": 348,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 8355,
"end": 8360,
"loc": {
"start": {
"line": 348,
"column": 24
},
"end": {
"line": 348,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8360,
"end": 8361,
"loc": {
"start": {
"line": 348,
"column": 29
},
"end": {
"line": 348,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8361,
"end": 8362,
"loc": {
"start": {
"line": 348,
"column": 30
},
"end": {
"line": 348,
"column": 31
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8363,
"end": 8365,
"loc": {
"start": {
"line": 348,
"column": 32
},
"end": {
"line": 348,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8372,
"end": 8379,
"loc": {
"start": {
"line": 349,
"column": 6
},
"end": {
"line": 349,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8379,
"end": 8380,
"loc": {
"start": {
"line": 349,
"column": 13
},
"end": {
"line": 349,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8380,
"end": 8387,
"loc": {
"start": {
"line": 349,
"column": 14
},
"end": {
"line": 349,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8387,
"end": 8388,
"loc": {
"start": {
"line": 349,
"column": 21
},
"end": {
"line": 349,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8388,
"end": 8389,
"loc": {
"start": {
"line": 349,
"column": 22
},
"end": {
"line": 349,
"column": 23
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8390,
"end": 8392,
"loc": {
"start": {
"line": 349,
"column": 24
},
"end": {
"line": 349,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8399,
"end": 8406,
"loc": {
"start": {
"line": 350,
"column": 6
},
"end": {
"line": 350,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8406,
"end": 8407,
"loc": {
"start": {
"line": 350,
"column": 13
},
"end": {
"line": 350,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8407,
"end": 8414,
"loc": {
"start": {
"line": 350,
"column": 14
},
"end": {
"line": 350,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8414,
"end": 8415,
"loc": {
"start": {
"line": 350,
"column": 21
},
"end": {
"line": 350,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 8415,
"end": 8419,
"loc": {
"start": {
"line": 350,
"column": 22
},
"end": {
"line": 350,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8419,
"end": 8420,
"loc": {
"start": {
"line": 350,
"column": 26
},
"end": {
"line": 350,
"column": 27
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8421,
"end": 8423,
"loc": {
"start": {
"line": 350,
"column": 28
},
"end": {
"line": 350,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8430,
"end": 8437,
"loc": {
"start": {
"line": 351,
"column": 6
},
"end": {
"line": 351,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8437,
"end": 8438,
"loc": {
"start": {
"line": 351,
"column": 13
},
"end": {
"line": 351,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8438,
"end": 8445,
"loc": {
"start": {
"line": 351,
"column": 14
},
"end": {
"line": 351,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8445,
"end": 8446,
"loc": {
"start": {
"line": 351,
"column": 21
},
"end": {
"line": 351,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 8446,
"end": 8451,
"loc": {
"start": {
"line": 351,
"column": 22
},
"end": {
"line": 351,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8451,
"end": 8452,
"loc": {
"start": {
"line": 351,
"column": 27
},
"end": {
"line": 351,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8457,
"end": 8458,
"loc": {
"start": {
"line": 352,
"column": 4
},
"end": {
"line": 352,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8459,
"end": 8460,
"loc": {
"start": {
"line": 352,
"column": 6
},
"end": {
"line": 352,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8467,
"end": 8474,
"loc": {
"start": {
"line": 353,
"column": 6
},
"end": {
"line": 353,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8474,
"end": 8475,
"loc": {
"start": {
"line": 353,
"column": 13
},
"end": {
"line": 353,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 8475,
"end": 8481,
"loc": {
"start": {
"line": 353,
"column": 14
},
"end": {
"line": 353,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8481,
"end": 8482,
"loc": {
"start": {
"line": 353,
"column": 20
},
"end": {
"line": 353,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8482,
"end": 8483,
"loc": {
"start": {
"line": 353,
"column": 21
},
"end": {
"line": 353,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8490,
"end": 8491,
"loc": {
"start": {
"line": 354,
"column": 6
},
"end": {
"line": 354,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8491,
"end": 8492,
"loc": {
"start": {
"line": 354,
"column": 7
},
"end": {
"line": 354,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 8492,
"end": 8498,
"loc": {
"start": {
"line": 354,
"column": 8
},
"end": {
"line": 354,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8498,
"end": 8499,
"loc": {
"start": {
"line": 354,
"column": 14
},
"end": {
"line": 354,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 8499,
"end": 8506,
"loc": {
"start": {
"line": 354,
"column": 15
},
"end": {
"line": 354,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8506,
"end": 8507,
"loc": {
"start": {
"line": 354,
"column": 22
},
"end": {
"line": 354,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8507,
"end": 8508,
"loc": {
"start": {
"line": 354,
"column": 23
},
"end": {
"line": 354,
"column": 24
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8513,
"end": 8514,
"loc": {
"start": {
"line": 355,
"column": 4
},
"end": {
"line": 355,
"column": 5
}
}
},
{
"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": 8515,
"end": 8519,
"loc": {
"start": {
"line": 355,
"column": 6
},
"end": {
"line": 355,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8520,
"end": 8521,
"loc": {
"start": {
"line": 355,
"column": 11
},
"end": {
"line": 355,
"column": 12
}
}
},
{
"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": 8528,
"end": 8530,
"loc": {
"start": {
"line": 356,
"column": 6
},
"end": {
"line": 356,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8531,
"end": 8532,
"loc": {
"start": {
"line": 356,
"column": 9
},
"end": {
"line": 356,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8532,
"end": 8533,
"loc": {
"start": {
"line": 356,
"column": 10
},
"end": {
"line": 356,
"column": 11
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 8534,
"end": 8537,
"loc": {
"start": {
"line": 356,
"column": 12
},
"end": {
"line": 356,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8538,
"end": 8539,
"loc": {
"start": {
"line": 356,
"column": 16
},
"end": {
"line": 356,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8539,
"end": 8540,
"loc": {
"start": {
"line": 356,
"column": 17
},
"end": {
"line": 356,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 8540,
"end": 8546,
"loc": {
"start": {
"line": 356,
"column": 18
},
"end": {
"line": 356,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8546,
"end": 8547,
"loc": {
"start": {
"line": 356,
"column": 24
},
"end": {
"line": 356,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 8547,
"end": 8551,
"loc": {
"start": {
"line": 356,
"column": 25
},
"end": {
"line": 356,
"column": 29
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8552,
"end": 8554,
"loc": {
"start": {
"line": 356,
"column": 30
},
"end": {
"line": 356,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8563,
"end": 8570,
"loc": {
"start": {
"line": 357,
"column": 8
},
"end": {
"line": 357,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8570,
"end": 8571,
"loc": {
"start": {
"line": 357,
"column": 15
},
"end": {
"line": 357,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8571,
"end": 8578,
"loc": {
"start": {
"line": 357,
"column": 16
},
"end": {
"line": 357,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8578,
"end": 8579,
"loc": {
"start": {
"line": 357,
"column": 23
},
"end": {
"line": 357,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8579,
"end": 8580,
"loc": {
"start": {
"line": 357,
"column": 24
},
"end": {
"line": 357,
"column": 25
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8581,
"end": 8583,
"loc": {
"start": {
"line": 357,
"column": 26
},
"end": {
"line": 357,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 8592,
"end": 8597,
"loc": {
"start": {
"line": 358,
"column": 8
},
"end": {
"line": 358,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8597,
"end": 8598,
"loc": {
"start": {
"line": 358,
"column": 13
},
"end": {
"line": 358,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8598,
"end": 8605,
"loc": {
"start": {
"line": 358,
"column": 14
},
"end": {
"line": 358,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8605,
"end": 8606,
"loc": {
"start": {
"line": 358,
"column": 21
},
"end": {
"line": 358,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 8606,
"end": 8610,
"loc": {
"start": {
"line": 358,
"column": 22
},
"end": {
"line": 358,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8610,
"end": 8611,
"loc": {
"start": {
"line": 358,
"column": 26
},
"end": {
"line": 358,
"column": 27
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8612,
"end": 8614,
"loc": {
"start": {
"line": 358,
"column": 28
},
"end": {
"line": 358,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8623,
"end": 8630,
"loc": {
"start": {
"line": 359,
"column": 8
},
"end": {
"line": 359,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8630,
"end": 8631,
"loc": {
"start": {
"line": 359,
"column": 15
},
"end": {
"line": 359,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8631,
"end": 8638,
"loc": {
"start": {
"line": 359,
"column": 16
},
"end": {
"line": 359,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8638,
"end": 8639,
"loc": {
"start": {
"line": 359,
"column": 23
},
"end": {
"line": 359,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 8639,
"end": 8644,
"loc": {
"start": {
"line": 359,
"column": 24
},
"end": {
"line": 359,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8644,
"end": 8645,
"loc": {
"start": {
"line": 359,
"column": 29
},
"end": {
"line": 359,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8652,
"end": 8653,
"loc": {
"start": {
"line": 360,
"column": 6
},
"end": {
"line": 360,
"column": 7
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8654,
"end": 8655,
"loc": {
"start": {
"line": 360,
"column": 8
},
"end": {
"line": 360,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8664,
"end": 8671,
"loc": {
"start": {
"line": 361,
"column": 8
},
"end": {
"line": 361,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8671,
"end": 8672,
"loc": {
"start": {
"line": 361,
"column": 15
},
"end": {
"line": 361,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 8672,
"end": 8678,
"loc": {
"start": {
"line": 361,
"column": 16
},
"end": {
"line": 361,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8678,
"end": 8679,
"loc": {
"start": {
"line": 361,
"column": 22
},
"end": {
"line": 361,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8679,
"end": 8680,
"loc": {
"start": {
"line": 361,
"column": 23
},
"end": {
"line": 361,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8689,
"end": 8696,
"loc": {
"start": {
"line": 362,
"column": 8
},
"end": {
"line": 362,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8696,
"end": 8697,
"loc": {
"start": {
"line": 362,
"column": 15
},
"end": {
"line": 362,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 8697,
"end": 8701,
"loc": {
"start": {
"line": 362,
"column": 16
},
"end": {
"line": 362,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8701,
"end": 8702,
"loc": {
"start": {
"line": 362,
"column": 20
},
"end": {
"line": 362,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 8702,
"end": 8709,
"loc": {
"start": {
"line": 362,
"column": 21
},
"end": {
"line": 362,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8709,
"end": 8710,
"loc": {
"start": {
"line": 362,
"column": 28
},
"end": {
"line": 362,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8710,
"end": 8711,
"loc": {
"start": {
"line": 362,
"column": 29
},
"end": {
"line": 362,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8720,
"end": 8727,
"loc": {
"start": {
"line": 363,
"column": 8
},
"end": {
"line": 363,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8727,
"end": 8728,
"loc": {
"start": {
"line": 363,
"column": 15
},
"end": {
"line": 363,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateRight",
"start": 8728,
"end": 8739,
"loc": {
"start": {
"line": 363,
"column": 16
},
"end": {
"line": 363,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8739,
"end": 8740,
"loc": {
"start": {
"line": 363,
"column": 27
},
"end": {
"line": 363,
"column": 28
}
}
},
{
"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": 8740,
"end": 8744,
"loc": {
"start": {
"line": 363,
"column": 28
},
"end": {
"line": 363,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8744,
"end": 8745,
"loc": {
"start": {
"line": 363,
"column": 32
},
"end": {
"line": 363,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8754,
"end": 8761,
"loc": {
"start": {
"line": 364,
"column": 8
},
"end": {
"line": 364,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 8762,
"end": 8763,
"loc": {
"start": {
"line": 364,
"column": 16
},
"end": {
"line": 364,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8764,
"end": 8765,
"loc": {
"start": {
"line": 364,
"column": 18
},
"end": {
"line": 364,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8765,
"end": 8766,
"loc": {
"start": {
"line": 364,
"column": 19
},
"end": {
"line": 364,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8766,
"end": 8773,
"loc": {
"start": {
"line": 364,
"column": 20
},
"end": {
"line": 364,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8780,
"end": 8781,
"loc": {
"start": {
"line": 365,
"column": 6
},
"end": {
"line": 365,
"column": 7
}
}
},
{
"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": 8782,
"end": 8786,
"loc": {
"start": {
"line": 365,
"column": 8
},
"end": {
"line": 365,
"column": 12
}
}
},
{
"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": 8787,
"end": 8789,
"loc": {
"start": {
"line": 365,
"column": 13
},
"end": {
"line": 365,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8790,
"end": 8791,
"loc": {
"start": {
"line": 365,
"column": 16
},
"end": {
"line": 365,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8791,
"end": 8792,
"loc": {
"start": {
"line": 365,
"column": 17
},
"end": {
"line": 365,
"column": 18
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 8793,
"end": 8796,
"loc": {
"start": {
"line": 365,
"column": 19
},
"end": {
"line": 365,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 8797,
"end": 8798,
"loc": {
"start": {
"line": 365,
"column": 23
},
"end": {
"line": 365,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8798,
"end": 8799,
"loc": {
"start": {
"line": 365,
"column": 24
},
"end": {
"line": 365,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 8799,
"end": 8805,
"loc": {
"start": {
"line": 365,
"column": 25
},
"end": {
"line": 365,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8805,
"end": 8806,
"loc": {
"start": {
"line": 365,
"column": 31
},
"end": {
"line": 365,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 8806,
"end": 8811,
"loc": {
"start": {
"line": 365,
"column": 32
},
"end": {
"line": 365,
"column": 37
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8812,
"end": 8814,
"loc": {
"start": {
"line": 365,
"column": 38
},
"end": {
"line": 365,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8823,
"end": 8830,
"loc": {
"start": {
"line": 366,
"column": 8
},
"end": {
"line": 366,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8830,
"end": 8831,
"loc": {
"start": {
"line": 366,
"column": 15
},
"end": {
"line": 366,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8831,
"end": 8838,
"loc": {
"start": {
"line": 366,
"column": 16
},
"end": {
"line": 366,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8838,
"end": 8839,
"loc": {
"start": {
"line": 366,
"column": 23
},
"end": {
"line": 366,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8839,
"end": 8840,
"loc": {
"start": {
"line": 366,
"column": 24
},
"end": {
"line": 366,
"column": 25
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8841,
"end": 8843,
"loc": {
"start": {
"line": 366,
"column": 26
},
"end": {
"line": 366,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 8852,
"end": 8857,
"loc": {
"start": {
"line": 367,
"column": 8
},
"end": {
"line": 367,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8857,
"end": 8858,
"loc": {
"start": {
"line": 367,
"column": 13
},
"end": {
"line": 367,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8858,
"end": 8865,
"loc": {
"start": {
"line": 367,
"column": 14
},
"end": {
"line": 367,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8865,
"end": 8866,
"loc": {
"start": {
"line": 367,
"column": 21
},
"end": {
"line": 367,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 8866,
"end": 8871,
"loc": {
"start": {
"line": 367,
"column": 22
},
"end": {
"line": 367,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8871,
"end": 8872,
"loc": {
"start": {
"line": 367,
"column": 27
},
"end": {
"line": 367,
"column": 28
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 8873,
"end": 8875,
"loc": {
"start": {
"line": 367,
"column": 29
},
"end": {
"line": 367,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 8884,
"end": 8891,
"loc": {
"start": {
"line": 368,
"column": 8
},
"end": {
"line": 368,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8891,
"end": 8892,
"loc": {
"start": {
"line": 368,
"column": 15
},
"end": {
"line": 368,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8892,
"end": 8899,
"loc": {
"start": {
"line": 368,
"column": 16
},
"end": {
"line": 368,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8899,
"end": 8900,
"loc": {
"start": {
"line": 368,
"column": 23
},
"end": {
"line": 368,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 8900,
"end": 8904,
"loc": {
"start": {
"line": 368,
"column": 24
},
"end": {
"line": 368,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8904,
"end": 8905,
"loc": {
"start": {
"line": 368,
"column": 28
},
"end": {
"line": 368,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8912,
"end": 8913,
"loc": {
"start": {
"line": 369,
"column": 6
},
"end": {
"line": 369,
"column": 7
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8914,
"end": 8915,
"loc": {
"start": {
"line": 369,
"column": 8
},
"end": {
"line": 369,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8924,
"end": 8931,
"loc": {
"start": {
"line": 370,
"column": 8
},
"end": {
"line": 370,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8931,
"end": 8932,
"loc": {
"start": {
"line": 370,
"column": 15
},
"end": {
"line": 370,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 8932,
"end": 8938,
"loc": {
"start": {
"line": 370,
"column": 16
},
"end": {
"line": 370,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8938,
"end": 8939,
"loc": {
"start": {
"line": 370,
"column": 22
},
"end": {
"line": 370,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8939,
"end": 8940,
"loc": {
"start": {
"line": 370,
"column": 23
},
"end": {
"line": 370,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8949,
"end": 8956,
"loc": {
"start": {
"line": 371,
"column": 8
},
"end": {
"line": 371,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8956,
"end": 8957,
"loc": {
"start": {
"line": 371,
"column": 15
},
"end": {
"line": 371,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 8957,
"end": 8962,
"loc": {
"start": {
"line": 371,
"column": 16
},
"end": {
"line": 371,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8962,
"end": 8963,
"loc": {
"start": {
"line": 371,
"column": 21
},
"end": {
"line": 371,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 8963,
"end": 8970,
"loc": {
"start": {
"line": 371,
"column": 22
},
"end": {
"line": 371,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8970,
"end": 8971,
"loc": {
"start": {
"line": 371,
"column": 29
},
"end": {
"line": 371,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8971,
"end": 8972,
"loc": {
"start": {
"line": 371,
"column": 30
},
"end": {
"line": 371,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 8981,
"end": 8988,
"loc": {
"start": {
"line": 372,
"column": 8
},
"end": {
"line": 372,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8988,
"end": 8989,
"loc": {
"start": {
"line": 372,
"column": 15
},
"end": {
"line": 372,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateLeft",
"start": 8989,
"end": 8999,
"loc": {
"start": {
"line": 372,
"column": 16
},
"end": {
"line": 372,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8999,
"end": 9000,
"loc": {
"start": {
"line": 372,
"column": 26
},
"end": {
"line": 372,
"column": 27
}
}
},
{
"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": 9000,
"end": 9004,
"loc": {
"start": {
"line": 372,
"column": 27
},
"end": {
"line": 372,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9004,
"end": 9005,
"loc": {
"start": {
"line": 372,
"column": 31
},
"end": {
"line": 372,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 9014,
"end": 9021,
"loc": {
"start": {
"line": 373,
"column": 8
},
"end": {
"line": 373,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9022,
"end": 9023,
"loc": {
"start": {
"line": 373,
"column": 16
},
"end": {
"line": 373,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 9024,
"end": 9025,
"loc": {
"start": {
"line": 373,
"column": 18
},
"end": {
"line": 373,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9025,
"end": 9026,
"loc": {
"start": {
"line": 373,
"column": 19
},
"end": {
"line": 373,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 9026,
"end": 9033,
"loc": {
"start": {
"line": 373,
"column": 20
},
"end": {
"line": 373,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9040,
"end": 9041,
"loc": {
"start": {
"line": 374,
"column": 6
},
"end": {
"line": 374,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 9048,
"end": 9055,
"loc": {
"start": {
"line": 375,
"column": 6
},
"end": {
"line": 375,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9055,
"end": 9056,
"loc": {
"start": {
"line": 375,
"column": 13
},
"end": {
"line": 375,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 9056,
"end": 9061,
"loc": {
"start": {
"line": 375,
"column": 14
},
"end": {
"line": 375,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9062,
"end": 9063,
"loc": {
"start": {
"line": 375,
"column": 20
},
"end": {
"line": 375,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 9064,
"end": 9065,
"loc": {
"start": {
"line": 375,
"column": 22
},
"end": {
"line": 375,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9065,
"end": 9066,
"loc": {
"start": {
"line": 375,
"column": 23
},
"end": {
"line": 375,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 9066,
"end": 9072,
"loc": {
"start": {
"line": 375,
"column": 24
},
"end": {
"line": 375,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9072,
"end": 9073,
"loc": {
"start": {
"line": 375,
"column": 30
},
"end": {
"line": 375,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "color",
"start": 9073,
"end": 9078,
"loc": {
"start": {
"line": 375,
"column": 31
},
"end": {
"line": 375,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 9085,
"end": 9086,
"loc": {
"start": {
"line": 376,
"column": 6
},
"end": {
"line": 376,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9086,
"end": 9087,
"loc": {
"start": {
"line": 376,
"column": 7
},
"end": {
"line": 376,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 9087,
"end": 9093,
"loc": {
"start": {
"line": 376,
"column": 8
},
"end": {
"line": 376,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9093,
"end": 9094,
"loc": {
"start": {
"line": 376,
"column": 14
},
"end": {
"line": 376,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 9094,
"end": 9101,
"loc": {
"start": {
"line": 376,
"column": 15
},
"end": {
"line": 376,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9101,
"end": 9102,
"loc": {
"start": {
"line": 376,
"column": 22
},
"end": {
"line": 376,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9102,
"end": 9103,
"loc": {
"start": {
"line": 376,
"column": 23
},
"end": {
"line": 376,
"column": 24
}
}
},
{
"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": 9110,
"end": 9112,
"loc": {
"start": {
"line": 377,
"column": 6
},
"end": {
"line": 377,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9113,
"end": 9114,
"loc": {
"start": {
"line": 377,
"column": 9
},
"end": {
"line": 377,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 9114,
"end": 9115,
"loc": {
"start": {
"line": 377,
"column": 10
},
"end": {
"line": 377,
"column": 11
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 9116,
"end": 9119,
"loc": {
"start": {
"line": 377,
"column": 12
},
"end": {
"line": 377,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 9120,
"end": 9121,
"loc": {
"start": {
"line": 377,
"column": 16
},
"end": {
"line": 377,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9121,
"end": 9122,
"loc": {
"start": {
"line": 377,
"column": 17
},
"end": {
"line": 377,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 9122,
"end": 9128,
"loc": {
"start": {
"line": 377,
"column": 18
},
"end": {
"line": 377,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9128,
"end": 9129,
"loc": {
"start": {
"line": 377,
"column": 24
},
"end": {
"line": 377,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 9129,
"end": 9133,
"loc": {
"start": {
"line": 377,
"column": 25
},
"end": {
"line": 377,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9133,
"end": 9134,
"loc": {
"start": {
"line": 377,
"column": 29
},
"end": {
"line": 377,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9135,
"end": 9136,
"loc": {
"start": {
"line": 377,
"column": 31
},
"end": {
"line": 377,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 9145,
"end": 9152,
"loc": {
"start": {
"line": 378,
"column": 8
},
"end": {
"line": 378,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9152,
"end": 9153,
"loc": {
"start": {
"line": 378,
"column": 15
},
"end": {
"line": 378,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 9153,
"end": 9158,
"loc": {
"start": {
"line": 378,
"column": 16
},
"end": {
"line": 378,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9158,
"end": 9159,
"loc": {
"start": {
"line": 378,
"column": 21
},
"end": {
"line": 378,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 9159,
"end": 9166,
"loc": {
"start": {
"line": 378,
"column": 22
},
"end": {
"line": 378,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9166,
"end": 9167,
"loc": {
"start": {
"line": 378,
"column": 29
},
"end": {
"line": 378,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9167,
"end": 9168,
"loc": {
"start": {
"line": 378,
"column": 30
},
"end": {
"line": 378,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 9177,
"end": 9178,
"loc": {
"start": {
"line": 379,
"column": 8
},
"end": {
"line": 379,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9178,
"end": 9179,
"loc": {
"start": {
"line": 379,
"column": 9
},
"end": {
"line": 379,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 9179,
"end": 9185,
"loc": {
"start": {
"line": 379,
"column": 10
},
"end": {
"line": 379,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9185,
"end": 9186,
"loc": {
"start": {
"line": 379,
"column": 16
},
"end": {
"line": 379,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateLeft",
"start": 9186,
"end": 9196,
"loc": {
"start": {
"line": 379,
"column": 17
},
"end": {
"line": 379,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9196,
"end": 9197,
"loc": {
"start": {
"line": 379,
"column": 27
},
"end": {
"line": 379,
"column": 28
}
}
},
{
"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": 9197,
"end": 9201,
"loc": {
"start": {
"line": 379,
"column": 28
},
"end": {
"line": 379,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9201,
"end": 9202,
"loc": {
"start": {
"line": 379,
"column": 32
},
"end": {
"line": 379,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9209,
"end": 9210,
"loc": {
"start": {
"line": 380,
"column": 6
},
"end": {
"line": 380,
"column": 7
}
}
},
{
"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": 9211,
"end": 9215,
"loc": {
"start": {
"line": 380,
"column": 8
},
"end": {
"line": 380,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9216,
"end": 9217,
"loc": {
"start": {
"line": 380,
"column": 13
},
"end": {
"line": 380,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "sibling",
"start": 9226,
"end": 9233,
"loc": {
"start": {
"line": 381,
"column": 8
},
"end": {
"line": 381,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9233,
"end": 9234,
"loc": {
"start": {
"line": 381,
"column": 15
},
"end": {
"line": 381,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 9234,
"end": 9238,
"loc": {
"start": {
"line": 381,
"column": 16
},
"end": {
"line": 381,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9238,
"end": 9239,
"loc": {
"start": {
"line": 381,
"column": 20
},
"end": {
"line": 381,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 9239,
"end": 9246,
"loc": {
"start": {
"line": 381,
"column": 21
},
"end": {
"line": 381,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9246,
"end": 9247,
"loc": {
"start": {
"line": 381,
"column": 28
},
"end": {
"line": 381,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9247,
"end": 9248,
"loc": {
"start": {
"line": 381,
"column": 29
},
"end": {
"line": 381,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 9257,
"end": 9258,
"loc": {
"start": {
"line": 382,
"column": 8
},
"end": {
"line": 382,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9258,
"end": 9259,
"loc": {
"start": {
"line": 382,
"column": 9
},
"end": {
"line": 382,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 9259,
"end": 9265,
"loc": {
"start": {
"line": 382,
"column": 10
},
"end": {
"line": 382,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9265,
"end": 9266,
"loc": {
"start": {
"line": 382,
"column": 16
},
"end": {
"line": 382,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateRight",
"start": 9266,
"end": 9277,
"loc": {
"start": {
"line": 382,
"column": 17
},
"end": {
"line": 382,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9277,
"end": 9278,
"loc": {
"start": {
"line": 382,
"column": 28
},
"end": {
"line": 382,
"column": 29
}
}
},
{
"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": 9278,
"end": 9282,
"loc": {
"start": {
"line": 382,
"column": 29
},
"end": {
"line": 382,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9282,
"end": 9283,
"loc": {
"start": {
"line": 382,
"column": 33
},
"end": {
"line": 382,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9290,
"end": 9291,
"loc": {
"start": {
"line": 383,
"column": 6
},
"end": {
"line": 383,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9296,
"end": 9297,
"loc": {
"start": {
"line": 384,
"column": 4
},
"end": {
"line": 384,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9300,
"end": 9301,
"loc": {
"start": {
"line": 385,
"column": 2
},
"end": {
"line": 385,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "put",
"start": 9304,
"end": 9307,
"loc": {
"start": {
"line": 386,
"column": 2
},
"end": {
"line": 386,
"column": 5
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9308,
"end": 9309,
"loc": {
"start": {
"line": 386,
"column": 6
},
"end": {
"line": 386,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "v",
"start": 9309,
"end": 9310,
"loc": {
"start": {
"line": 386,
"column": 7
},
"end": {
"line": 386,
"column": 8
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9310,
"end": 9311,
"loc": {
"start": {
"line": 386,
"column": 8
},
"end": {
"line": 386,
"column": 9
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9312,
"end": 9313,
"loc": {
"start": {
"line": 386,
"column": 10
},
"end": {
"line": 386,
"column": 11
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 9318,
"end": 9321,
"loc": {
"start": {
"line": 387,
"column": 4
},
"end": {
"line": 387,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9322,
"end": 9326,
"loc": {
"start": {
"line": 387,
"column": 8
},
"end": {
"line": 387,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9327,
"end": 9328,
"loc": {
"start": {
"line": 387,
"column": 13
},
"end": {
"line": 387,
"column": 14
}
}
},
{
"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": 9329,
"end": 9332,
"loc": {
"start": {
"line": 387,
"column": 15
},
"end": {
"line": 387,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "N",
"start": 9333,
"end": 9334,
"loc": {
"start": {
"line": 387,
"column": 19
},
"end": {
"line": 387,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9334,
"end": 9335,
"loc": {
"start": {
"line": 387,
"column": 20
},
"end": {
"line": 387,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "v",
"start": 9335,
"end": 9336,
"loc": {
"start": {
"line": 387,
"column": 21
},
"end": {
"line": 387,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9336,
"end": 9337,
"loc": {
"start": {
"line": 387,
"column": 22
},
"end": {
"line": 387,
"column": 23
}
}
},
{
"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": 9342,
"end": 9344,
"loc": {
"start": {
"line": 388,
"column": 4
},
"end": {
"line": 388,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9345,
"end": 9346,
"loc": {
"start": {
"line": 388,
"column": 7
},
"end": {
"line": 388,
"column": 8
}
}
},
{
"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": 9346,
"end": 9350,
"loc": {
"start": {
"line": 388,
"column": 8
},
"end": {
"line": 388,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9350,
"end": 9351,
"loc": {
"start": {
"line": 388,
"column": 12
},
"end": {
"line": 388,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 9351,
"end": 9355,
"loc": {
"start": {
"line": 388,
"column": 13
},
"end": {
"line": 388,
"column": 17
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 9356,
"end": 9359,
"loc": {
"start": {
"line": 388,
"column": 18
},
"end": {
"line": 388,
"column": 21
}
}
},
{
"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": 9360,
"end": 9364,
"loc": {
"start": {
"line": 388,
"column": 22
},
"end": {
"line": 388,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9364,
"end": 9365,
"loc": {
"start": {
"line": 388,
"column": 26
},
"end": {
"line": 388,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9366,
"end": 9367,
"loc": {
"start": {
"line": 388,
"column": 28
},
"end": {
"line": 388,
"column": 29
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 9374,
"end": 9377,
"loc": {
"start": {
"line": 389,
"column": 6
},
"end": {
"line": 389,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9378,
"end": 9379,
"loc": {
"start": {
"line": 389,
"column": 10
},
"end": {
"line": 389,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9380,
"end": 9381,
"loc": {
"start": {
"line": 389,
"column": 12
},
"end": {
"line": 389,
"column": 13
}
}
},
{
"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": 9382,
"end": 9386,
"loc": {
"start": {
"line": 389,
"column": 14
},
"end": {
"line": 389,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9386,
"end": 9387,
"loc": {
"start": {
"line": 389,
"column": 18
},
"end": {
"line": 389,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 9387,
"end": 9391,
"loc": {
"start": {
"line": 389,
"column": 19
},
"end": {
"line": 389,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": " p abbrev. parent",
"start": 9392,
"end": 9411,
"loc": {
"start": {
"line": 389,
"column": 24
},
"end": {
"line": 389,
"column": 43
}
}
},
{
"type": {
"label": "while",
"keyword": "while",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "while",
"start": 9418,
"end": 9423,
"loc": {
"start": {
"line": 390,
"column": 6
},
"end": {
"line": 390,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9424,
"end": 9425,
"loc": {
"start": {
"line": 390,
"column": 12
},
"end": {
"line": 390,
"column": 13
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 9425,
"end": 9429,
"loc": {
"start": {
"line": 390,
"column": 13
},
"end": {
"line": 390,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9429,
"end": 9430,
"loc": {
"start": {
"line": 390,
"column": 17
},
"end": {
"line": 390,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9431,
"end": 9432,
"loc": {
"start": {
"line": 390,
"column": 19
},
"end": {
"line": 390,
"column": 20
}
}
},
{
"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": 9441,
"end": 9443,
"loc": {
"start": {
"line": 391,
"column": 8
},
"end": {
"line": 391,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9444,
"end": 9445,
"loc": {
"start": {
"line": 391,
"column": 11
},
"end": {
"line": 391,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9445,
"end": 9449,
"loc": {
"start": {
"line": 391,
"column": 12
},
"end": {
"line": 391,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9449,
"end": 9450,
"loc": {
"start": {
"line": 391,
"column": 16
},
"end": {
"line": 391,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 9450,
"end": 9453,
"loc": {
"start": {
"line": 391,
"column": 17
},
"end": {
"line": 391,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9453,
"end": 9454,
"loc": {
"start": {
"line": 391,
"column": 20
},
"end": {
"line": 391,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 9454,
"end": 9457,
"loc": {
"start": {
"line": 391,
"column": 21
},
"end": {
"line": 391,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9457,
"end": 9458,
"loc": {
"start": {
"line": 391,
"column": 24
},
"end": {
"line": 391,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 9458,
"end": 9466,
"loc": {
"start": {
"line": 391,
"column": 25
},
"end": {
"line": 391,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9466,
"end": 9467,
"loc": {
"start": {
"line": 391,
"column": 33
},
"end": {
"line": 391,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9467,
"end": 9468,
"loc": {
"start": {
"line": 391,
"column": 34
},
"end": {
"line": 391,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9468,
"end": 9469,
"loc": {
"start": {
"line": 391,
"column": 35
},
"end": {
"line": 391,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 9469,
"end": 9472,
"loc": {
"start": {
"line": 391,
"column": 36
},
"end": {
"line": 391,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9472,
"end": 9473,
"loc": {
"start": {
"line": 391,
"column": 39
},
"end": {
"line": 391,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 9473,
"end": 9476,
"loc": {
"start": {
"line": 391,
"column": 40
},
"end": {
"line": 391,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9476,
"end": 9477,
"loc": {
"start": {
"line": 391,
"column": 43
},
"end": {
"line": 391,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9477,
"end": 9478,
"loc": {
"start": {
"line": 391,
"column": 44
},
"end": {
"line": 391,
"column": 45
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9479,
"end": 9480,
"loc": {
"start": {
"line": 391,
"column": 46
},
"end": {
"line": 391,
"column": 47
}
}
},
{
"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": 9491,
"end": 9493,
"loc": {
"start": {
"line": 392,
"column": 10
},
"end": {
"line": 392,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9494,
"end": 9495,
"loc": {
"start": {
"line": 392,
"column": 13
},
"end": {
"line": 392,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9495,
"end": 9496,
"loc": {
"start": {
"line": 392,
"column": 14
},
"end": {
"line": 392,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9496,
"end": 9497,
"loc": {
"start": {
"line": 392,
"column": 15
},
"end": {
"line": 392,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 9497,
"end": 9501,
"loc": {
"start": {
"line": 392,
"column": 16
},
"end": {
"line": 392,
"column": 20
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 9502,
"end": 9505,
"loc": {
"start": {
"line": 392,
"column": 21
},
"end": {
"line": 392,
"column": 24
}
}
},
{
"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": 9506,
"end": 9510,
"loc": {
"start": {
"line": 392,
"column": 25
},
"end": {
"line": 392,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9510,
"end": 9511,
"loc": {
"start": {
"line": 392,
"column": 29
},
"end": {
"line": 392,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9512,
"end": 9513,
"loc": {
"start": {
"line": 392,
"column": 31
},
"end": {
"line": 392,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9526,
"end": 9527,
"loc": {
"start": {
"line": 393,
"column": 12
},
"end": {
"line": 393,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9527,
"end": 9528,
"loc": {
"start": {
"line": 393,
"column": 13
},
"end": {
"line": 393,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 9528,
"end": 9532,
"loc": {
"start": {
"line": 393,
"column": 14
},
"end": {
"line": 393,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9533,
"end": 9534,
"loc": {
"start": {
"line": 393,
"column": 19
},
"end": {
"line": 393,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9535,
"end": 9539,
"loc": {
"start": {
"line": 393,
"column": 21
},
"end": {
"line": 393,
"column": 25
}
}
},
{
"type": {
"label": "break",
"keyword": "break",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "break",
"start": 9552,
"end": 9557,
"loc": {
"start": {
"line": 394,
"column": 12
},
"end": {
"line": 394,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9568,
"end": 9569,
"loc": {
"start": {
"line": 395,
"column": 10
},
"end": {
"line": 395,
"column": 11
}
}
},
{
"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": 9570,
"end": 9574,
"loc": {
"start": {
"line": 395,
"column": 12
},
"end": {
"line": 395,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9575,
"end": 9576,
"loc": {
"start": {
"line": 395,
"column": 17
},
"end": {
"line": 395,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9589,
"end": 9590,
"loc": {
"start": {
"line": 396,
"column": 12
},
"end": {
"line": 396,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9591,
"end": 9592,
"loc": {
"start": {
"line": 396,
"column": 14
},
"end": {
"line": 396,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9593,
"end": 9594,
"loc": {
"start": {
"line": 396,
"column": 16
},
"end": {
"line": 396,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9594,
"end": 9595,
"loc": {
"start": {
"line": 396,
"column": 17
},
"end": {
"line": 396,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 9595,
"end": 9599,
"loc": {
"start": {
"line": 396,
"column": 18
},
"end": {
"line": 396,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9610,
"end": 9611,
"loc": {
"start": {
"line": 397,
"column": 10
},
"end": {
"line": 397,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9620,
"end": 9621,
"loc": {
"start": {
"line": 398,
"column": 8
},
"end": {
"line": 398,
"column": 9
}
}
},
{
"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": 9622,
"end": 9626,
"loc": {
"start": {
"line": 398,
"column": 10
},
"end": {
"line": 398,
"column": 14
}
}
},
{
"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": 9627,
"end": 9629,
"loc": {
"start": {
"line": 398,
"column": 15
},
"end": {
"line": 398,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9630,
"end": 9631,
"loc": {
"start": {
"line": 398,
"column": 18
},
"end": {
"line": 398,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9631,
"end": 9632,
"loc": {
"start": {
"line": 398,
"column": 19
},
"end": {
"line": 398,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9632,
"end": 9633,
"loc": {
"start": {
"line": 398,
"column": 20
},
"end": {
"line": 398,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 9633,
"end": 9636,
"loc": {
"start": {
"line": 398,
"column": 21
},
"end": {
"line": 398,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9636,
"end": 9637,
"loc": {
"start": {
"line": 398,
"column": 24
},
"end": {
"line": 398,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 9637,
"end": 9640,
"loc": {
"start": {
"line": 398,
"column": 25
},
"end": {
"line": 398,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9640,
"end": 9641,
"loc": {
"start": {
"line": 398,
"column": 28
},
"end": {
"line": 398,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "lessThan",
"start": 9641,
"end": 9649,
"loc": {
"start": {
"line": 398,
"column": 29
},
"end": {
"line": 398,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9649,
"end": 9650,
"loc": {
"start": {
"line": 398,
"column": 37
},
"end": {
"line": 398,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9650,
"end": 9654,
"loc": {
"start": {
"line": 398,
"column": 38
},
"end": {
"line": 398,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9654,
"end": 9655,
"loc": {
"start": {
"line": 398,
"column": 42
},
"end": {
"line": 398,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 9655,
"end": 9658,
"loc": {
"start": {
"line": 398,
"column": 43
},
"end": {
"line": 398,
"column": 46
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9658,
"end": 9659,
"loc": {
"start": {
"line": 398,
"column": 46
},
"end": {
"line": 398,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_id",
"start": 9659,
"end": 9662,
"loc": {
"start": {
"line": 398,
"column": 47
},
"end": {
"line": 398,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9662,
"end": 9663,
"loc": {
"start": {
"line": 398,
"column": 50
},
"end": {
"line": 398,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9663,
"end": 9664,
"loc": {
"start": {
"line": 398,
"column": 51
},
"end": {
"line": 398,
"column": 52
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9665,
"end": 9666,
"loc": {
"start": {
"line": 398,
"column": 53
},
"end": {
"line": 398,
"column": 54
}
}
},
{
"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": 9677,
"end": 9679,
"loc": {
"start": {
"line": 399,
"column": 10
},
"end": {
"line": 399,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9680,
"end": 9681,
"loc": {
"start": {
"line": 399,
"column": 13
},
"end": {
"line": 399,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9681,
"end": 9682,
"loc": {
"start": {
"line": 399,
"column": 14
},
"end": {
"line": 399,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9682,
"end": 9683,
"loc": {
"start": {
"line": 399,
"column": 15
},
"end": {
"line": 399,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 9683,
"end": 9688,
"loc": {
"start": {
"line": 399,
"column": 16
},
"end": {
"line": 399,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 9689,
"end": 9692,
"loc": {
"start": {
"line": 399,
"column": 22
},
"end": {
"line": 399,
"column": 25
}
}
},
{
"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": 9693,
"end": 9697,
"loc": {
"start": {
"line": 399,
"column": 26
},
"end": {
"line": 399,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9697,
"end": 9698,
"loc": {
"start": {
"line": 399,
"column": 30
},
"end": {
"line": 399,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9699,
"end": 9700,
"loc": {
"start": {
"line": 399,
"column": 32
},
"end": {
"line": 399,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9713,
"end": 9714,
"loc": {
"start": {
"line": 400,
"column": 12
},
"end": {
"line": 400,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9714,
"end": 9715,
"loc": {
"start": {
"line": 400,
"column": 13
},
"end": {
"line": 400,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 9715,
"end": 9720,
"loc": {
"start": {
"line": 400,
"column": 14
},
"end": {
"line": 400,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9721,
"end": 9722,
"loc": {
"start": {
"line": 400,
"column": 20
},
"end": {
"line": 400,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9723,
"end": 9727,
"loc": {
"start": {
"line": 400,
"column": 22
},
"end": {
"line": 400,
"column": 26
}
}
},
{
"type": {
"label": "break",
"keyword": "break",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "break",
"start": 9740,
"end": 9745,
"loc": {
"start": {
"line": 401,
"column": 12
},
"end": {
"line": 401,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9756,
"end": 9757,
"loc": {
"start": {
"line": 402,
"column": 10
},
"end": {
"line": 402,
"column": 11
}
}
},
{
"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": 9758,
"end": 9762,
"loc": {
"start": {
"line": 402,
"column": 12
},
"end": {
"line": 402,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9763,
"end": 9764,
"loc": {
"start": {
"line": 402,
"column": 17
},
"end": {
"line": 402,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9777,
"end": 9778,
"loc": {
"start": {
"line": 403,
"column": 12
},
"end": {
"line": 403,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9779,
"end": 9780,
"loc": {
"start": {
"line": 403,
"column": 14
},
"end": {
"line": 403,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9781,
"end": 9782,
"loc": {
"start": {
"line": 403,
"column": 16
},
"end": {
"line": 403,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9782,
"end": 9783,
"loc": {
"start": {
"line": 403,
"column": 17
},
"end": {
"line": 403,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 9783,
"end": 9788,
"loc": {
"start": {
"line": 403,
"column": 18
},
"end": {
"line": 403,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9799,
"end": 9800,
"loc": {
"start": {
"line": 404,
"column": 10
},
"end": {
"line": 404,
"column": 11
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9809,
"end": 9810,
"loc": {
"start": {
"line": 405,
"column": 8
},
"end": {
"line": 405,
"column": 9
}
}
},
{
"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": 9811,
"end": 9815,
"loc": {
"start": {
"line": 405,
"column": 10
},
"end": {
"line": 405,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9816,
"end": 9817,
"loc": {
"start": {
"line": 405,
"column": 15
},
"end": {
"line": 405,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9828,
"end": 9829,
"loc": {
"start": {
"line": 406,
"column": 10
},
"end": {
"line": 406,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9829,
"end": 9830,
"loc": {
"start": {
"line": 406,
"column": 11
},
"end": {
"line": 406,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 9830,
"end": 9833,
"loc": {
"start": {
"line": 406,
"column": 12
},
"end": {
"line": 406,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9834,
"end": 9835,
"loc": {
"start": {
"line": 406,
"column": 16
},
"end": {
"line": 406,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9836,
"end": 9840,
"loc": {
"start": {
"line": 406,
"column": 18
},
"end": {
"line": 406,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9840,
"end": 9841,
"loc": {
"start": {
"line": 406,
"column": 22
},
"end": {
"line": 406,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "val",
"start": 9841,
"end": 9844,
"loc": {
"start": {
"line": 406,
"column": 23
},
"end": {
"line": 406,
"column": 26
}
}
},
{
"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": 9855,
"end": 9861,
"loc": {
"start": {
"line": 407,
"column": 10
},
"end": {
"line": 407,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p",
"start": 9862,
"end": 9863,
"loc": {
"start": {
"line": 407,
"column": 17
},
"end": {
"line": 407,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9872,
"end": 9873,
"loc": {
"start": {
"line": 408,
"column": 8
},
"end": {
"line": 408,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9880,
"end": 9881,
"loc": {
"start": {
"line": 409,
"column": 6
},
"end": {
"line": 409,
"column": 7
}
}
},
{
"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": 9888,
"end": 9892,
"loc": {
"start": {
"line": 410,
"column": 6
},
"end": {
"line": 410,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9892,
"end": 9893,
"loc": {
"start": {
"line": 410,
"column": 10
},
"end": {
"line": 410,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_fixInsert",
"start": 9893,
"end": 9903,
"loc": {
"start": {
"line": 410,
"column": 11
},
"end": {
"line": 410,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9903,
"end": 9904,
"loc": {
"start": {
"line": 410,
"column": 21
},
"end": {
"line": 410,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9904,
"end": 9908,
"loc": {
"start": {
"line": 410,
"column": 22
},
"end": {
"line": 410,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9908,
"end": 9909,
"loc": {
"start": {
"line": 410,
"column": 26
},
"end": {
"line": 410,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9914,
"end": 9915,
"loc": {
"start": {
"line": 411,
"column": 4
},
"end": {
"line": 411,
"column": 5
}
}
},
{
"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": 9916,
"end": 9920,
"loc": {
"start": {
"line": 411,
"column": 6
},
"end": {
"line": 411,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9921,
"end": 9922,
"loc": {
"start": {
"line": 411,
"column": 11
},
"end": {
"line": 411,
"column": 12
}
}
},
{
"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": 9929,
"end": 9933,
"loc": {
"start": {
"line": 412,
"column": 6
},
"end": {
"line": 412,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9933,
"end": 9934,
"loc": {
"start": {
"line": 412,
"column": 10
},
"end": {
"line": 412,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 9934,
"end": 9938,
"loc": {
"start": {
"line": 412,
"column": 11
},
"end": {
"line": 412,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 9939,
"end": 9940,
"loc": {
"start": {
"line": 412,
"column": 16
},
"end": {
"line": 412,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 9941,
"end": 9945,
"loc": {
"start": {
"line": 412,
"column": 18
},
"end": {
"line": 412,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9950,
"end": 9951,
"loc": {
"start": {
"line": 413,
"column": 4
},
"end": {
"line": 413,
"column": 5
}
}
},
{
"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": 9956,
"end": 9960,
"loc": {
"start": {
"line": 414,
"column": 4
},
"end": {
"line": 414,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9960,
"end": 9961,
"loc": {
"start": {
"line": 414,
"column": 8
},
"end": {
"line": 414,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 9961,
"end": 9967,
"loc": {
"start": {
"line": 414,
"column": 9
},
"end": {
"line": 414,
"column": 15
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 9967,
"end": 9969,
"loc": {
"start": {
"line": 414,
"column": 15
},
"end": {
"line": 414,
"column": 17
}
}
},
{
"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": 9974,
"end": 9978,
"loc": {
"start": {
"line": 415,
"column": 4
},
"end": {
"line": 415,
"column": 8
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9978,
"end": 9979,
"loc": {
"start": {
"line": 415,
"column": 8
},
"end": {
"line": 415,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 9979,
"end": 9983,
"loc": {
"start": {
"line": 415,
"column": 9
},
"end": {
"line": 415,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9983,
"end": 9984,
"loc": {
"start": {
"line": 415,
"column": 13
},
"end": {
"line": 415,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 9984,
"end": 9991,
"loc": {
"start": {
"line": 415,
"column": 14
},
"end": {
"line": 415,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9991,
"end": 9992,
"loc": {
"start": {
"line": 415,
"column": 21
},
"end": {
"line": 415,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9992,
"end": 9993,
"loc": {
"start": {
"line": 415,
"column": 22
},
"end": {
"line": 415,
"column": 23
}
}
},
{
"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": 9998,
"end": 10004,
"loc": {
"start": {
"line": 416,
"column": 4
},
"end": {
"line": 416,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 10005,
"end": 10009,
"loc": {
"start": {
"line": 416,
"column": 11
},
"end": {
"line": 416,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10012,
"end": 10013,
"loc": {
"start": {
"line": 417,
"column": 2
},
"end": {
"line": 417,
"column": 3
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_fixInsert",
"start": 10016,
"end": 10026,
"loc": {
"start": {
"line": 418,
"column": 2
},
"end": {
"line": 418,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10027,
"end": 10028,
"loc": {
"start": {
"line": 418,
"column": 13
},
"end": {
"line": 418,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10028,
"end": 10029,
"loc": {
"start": {
"line": 418,
"column": 14
},
"end": {
"line": 418,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10029,
"end": 10030,
"loc": {
"start": {
"line": 418,
"column": 15
},
"end": {
"line": 418,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10031,
"end": 10032,
"loc": {
"start": {
"line": 418,
"column": 17
},
"end": {
"line": 418,
"column": 18
}
}
},
{
"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": 10037,
"end": 10039,
"loc": {
"start": {
"line": 419,
"column": 4
},
"end": {
"line": 419,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10040,
"end": 10041,
"loc": {
"start": {
"line": 419,
"column": 7
},
"end": {
"line": 419,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10041,
"end": 10042,
"loc": {
"start": {
"line": 419,
"column": 8
},
"end": {
"line": 419,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10042,
"end": 10043,
"loc": {
"start": {
"line": 419,
"column": 9
},
"end": {
"line": 419,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10043,
"end": 10049,
"loc": {
"start": {
"line": 419,
"column": 10
},
"end": {
"line": 419,
"column": 16
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 10050,
"end": 10053,
"loc": {
"start": {
"line": 419,
"column": 17
},
"end": {
"line": 419,
"column": 20
}
}
},
{
"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": 10054,
"end": 10058,
"loc": {
"start": {
"line": 419,
"column": 21
},
"end": {
"line": 419,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10058,
"end": 10059,
"loc": {
"start": {
"line": 419,
"column": 25
},
"end": {
"line": 419,
"column": 26
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10060,
"end": 10061,
"loc": {
"start": {
"line": 419,
"column": 27
},
"end": {
"line": 419,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10068,
"end": 10069,
"loc": {
"start": {
"line": 420,
"column": 6
},
"end": {
"line": 420,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10069,
"end": 10070,
"loc": {
"start": {
"line": 420,
"column": 7
},
"end": {
"line": 420,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 10070,
"end": 10077,
"loc": {
"start": {
"line": 420,
"column": 8
},
"end": {
"line": 420,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10077,
"end": 10078,
"loc": {
"start": {
"line": 420,
"column": 15
},
"end": {
"line": 420,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10078,
"end": 10079,
"loc": {
"start": {
"line": 420,
"column": 16
},
"end": {
"line": 420,
"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": 10086,
"end": 10092,
"loc": {
"start": {
"line": 421,
"column": 6
},
"end": {
"line": 421,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10097,
"end": 10098,
"loc": {
"start": {
"line": 422,
"column": 4
},
"end": {
"line": 422,
"column": 5
}
}
},
{
"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": 10099,
"end": 10103,
"loc": {
"start": {
"line": 422,
"column": 6
},
"end": {
"line": 422,
"column": 10
}
}
},
{
"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": 10104,
"end": 10106,
"loc": {
"start": {
"line": 422,
"column": 11
},
"end": {
"line": 422,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10107,
"end": 10108,
"loc": {
"start": {
"line": 422,
"column": 14
},
"end": {
"line": 422,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10108,
"end": 10109,
"loc": {
"start": {
"line": 422,
"column": 15
},
"end": {
"line": 422,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10109,
"end": 10110,
"loc": {
"start": {
"line": 422,
"column": 16
},
"end": {
"line": 422,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10110,
"end": 10116,
"loc": {
"start": {
"line": 422,
"column": 17
},
"end": {
"line": 422,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10116,
"end": 10117,
"loc": {
"start": {
"line": 422,
"column": 23
},
"end": {
"line": 422,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isBlack",
"start": 10117,
"end": 10124,
"loc": {
"start": {
"line": 422,
"column": 24
},
"end": {
"line": 422,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10124,
"end": 10125,
"loc": {
"start": {
"line": 422,
"column": 31
},
"end": {
"line": 422,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10125,
"end": 10126,
"loc": {
"start": {
"line": 422,
"column": 32
},
"end": {
"line": 422,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10126,
"end": 10127,
"loc": {
"start": {
"line": 422,
"column": 33
},
"end": {
"line": 422,
"column": 34
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10128,
"end": 10129,
"loc": {
"start": {
"line": 422,
"column": 35
},
"end": {
"line": 422,
"column": 36
}
}
},
{
"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": 10136,
"end": 10142,
"loc": {
"start": {
"line": 423,
"column": 6
},
"end": {
"line": 423,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10147,
"end": 10148,
"loc": {
"start": {
"line": 424,
"column": 4
},
"end": {
"line": 424,
"column": 5
}
}
},
{
"type": {
"label": "var",
"keyword": "var",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "var",
"start": 10153,
"end": 10156,
"loc": {
"start": {
"line": 425,
"column": 4
},
"end": {
"line": 425,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uncle",
"start": 10157,
"end": 10162,
"loc": {
"start": {
"line": 425,
"column": 8
},
"end": {
"line": 425,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 10163,
"end": 10164,
"loc": {
"start": {
"line": 425,
"column": 14
},
"end": {
"line": 425,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10165,
"end": 10166,
"loc": {
"start": {
"line": 425,
"column": 16
},
"end": {
"line": 425,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10166,
"end": 10167,
"loc": {
"start": {
"line": 425,
"column": 17
},
"end": {
"line": 425,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getUncle",
"start": 10167,
"end": 10175,
"loc": {
"start": {
"line": 425,
"column": 18
},
"end": {
"line": 425,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10175,
"end": 10176,
"loc": {
"start": {
"line": 425,
"column": 26
},
"end": {
"line": 425,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10176,
"end": 10177,
"loc": {
"start": {
"line": 425,
"column": 27
},
"end": {
"line": 425,
"column": 28
}
}
},
{
"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": 10182,
"end": 10184,
"loc": {
"start": {
"line": 426,
"column": 4
},
"end": {
"line": 426,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10185,
"end": 10186,
"loc": {
"start": {
"line": 426,
"column": 7
},
"end": {
"line": 426,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uncle",
"start": 10186,
"end": 10191,
"loc": {
"start": {
"line": 426,
"column": 8
},
"end": {
"line": 426,
"column": 13
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 10192,
"end": 10195,
"loc": {
"start": {
"line": 426,
"column": 14
},
"end": {
"line": 426,
"column": 17
}
}
},
{
"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": 10196,
"end": 10200,
"loc": {
"start": {
"line": 426,
"column": 18
},
"end": {
"line": 426,
"column": 22
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 10201,
"end": 10203,
"loc": {
"start": {
"line": 426,
"column": 23
},
"end": {
"line": 426,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uncle",
"start": 10204,
"end": 10209,
"loc": {
"start": {
"line": 426,
"column": 26
},
"end": {
"line": 426,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10209,
"end": 10210,
"loc": {
"start": {
"line": 426,
"column": 31
},
"end": {
"line": 426,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isRed",
"start": 10210,
"end": 10215,
"loc": {
"start": {
"line": 426,
"column": 32
},
"end": {
"line": 426,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10215,
"end": 10216,
"loc": {
"start": {
"line": 426,
"column": 37
},
"end": {
"line": 426,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10216,
"end": 10217,
"loc": {
"start": {
"line": 426,
"column": 38
},
"end": {
"line": 426,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10217,
"end": 10218,
"loc": {
"start": {
"line": 426,
"column": 39
},
"end": {
"line": 426,
"column": 40
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10219,
"end": 10220,
"loc": {
"start": {
"line": 426,
"column": 41
},
"end": {
"line": 426,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " Note: parent: red, uncle: red",
"start": 10227,
"end": 10259,
"loc": {
"start": {
"line": 427,
"column": 6
},
"end": {
"line": 427,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10266,
"end": 10267,
"loc": {
"start": {
"line": 428,
"column": 6
},
"end": {
"line": 428,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10267,
"end": 10268,
"loc": {
"start": {
"line": 428,
"column": 7
},
"end": {
"line": 428,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10268,
"end": 10274,
"loc": {
"start": {
"line": 428,
"column": 8
},
"end": {
"line": 428,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10274,
"end": 10275,
"loc": {
"start": {
"line": 428,
"column": 14
},
"end": {
"line": 428,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 10275,
"end": 10282,
"loc": {
"start": {
"line": 428,
"column": 15
},
"end": {
"line": 428,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10282,
"end": 10283,
"loc": {
"start": {
"line": 428,
"column": 22
},
"end": {
"line": 428,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10283,
"end": 10284,
"loc": {
"start": {
"line": 428,
"column": 23
},
"end": {
"line": 428,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "uncle",
"start": 10291,
"end": 10296,
"loc": {
"start": {
"line": 429,
"column": 6
},
"end": {
"line": 429,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10296,
"end": 10297,
"loc": {
"start": {
"line": 429,
"column": 11
},
"end": {
"line": 429,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 10297,
"end": 10304,
"loc": {
"start": {
"line": 429,
"column": 12
},
"end": {
"line": 429,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10304,
"end": 10305,
"loc": {
"start": {
"line": 429,
"column": 19
},
"end": {
"line": 429,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10305,
"end": 10306,
"loc": {
"start": {
"line": 429,
"column": 20
},
"end": {
"line": 429,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10313,
"end": 10314,
"loc": {
"start": {
"line": 430,
"column": 6
},
"end": {
"line": 430,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10314,
"end": 10315,
"loc": {
"start": {
"line": 430,
"column": 7
},
"end": {
"line": 430,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 10315,
"end": 10326,
"loc": {
"start": {
"line": 430,
"column": 8
},
"end": {
"line": 430,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10326,
"end": 10327,
"loc": {
"start": {
"line": 430,
"column": 19
},
"end": {
"line": 430,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 10327,
"end": 10333,
"loc": {
"start": {
"line": 430,
"column": 20
},
"end": {
"line": 430,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10333,
"end": 10334,
"loc": {
"start": {
"line": 430,
"column": 26
},
"end": {
"line": 430,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10334,
"end": 10335,
"loc": {
"start": {
"line": 430,
"column": 27
},
"end": {
"line": 430,
"column": 28
}
}
},
{
"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": 10342,
"end": 10346,
"loc": {
"start": {
"line": 431,
"column": 6
},
"end": {
"line": 431,
"column": 10
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10346,
"end": 10347,
"loc": {
"start": {
"line": 431,
"column": 10
},
"end": {
"line": 431,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_fixInsert",
"start": 10347,
"end": 10357,
"loc": {
"start": {
"line": 431,
"column": 11
},
"end": {
"line": 431,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10357,
"end": 10358,
"loc": {
"start": {
"line": 431,
"column": 21
},
"end": {
"line": 431,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10358,
"end": 10359,
"loc": {
"start": {
"line": 431,
"column": 22
},
"end": {
"line": 431,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10359,
"end": 10360,
"loc": {
"start": {
"line": 431,
"column": 23
},
"end": {
"line": 431,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 10360,
"end": 10371,
"loc": {
"start": {
"line": 431,
"column": 24
},
"end": {
"line": 431,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10371,
"end": 10372,
"loc": {
"start": {
"line": 431,
"column": 35
},
"end": {
"line": 431,
"column": 36
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10377,
"end": 10378,
"loc": {
"start": {
"line": 432,
"column": 4
},
"end": {
"line": 432,
"column": 5
}
}
},
{
"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": 10379,
"end": 10383,
"loc": {
"start": {
"line": 432,
"column": 6
},
"end": {
"line": 432,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10384,
"end": 10385,
"loc": {
"start": {
"line": 432,
"column": 11
},
"end": {
"line": 432,
"column": 12
}
}
},
{
"type": "CommentLine",
"value": " Note: parent: red, uncle: black or null",
"start": 10392,
"end": 10434,
"loc": {
"start": {
"line": 433,
"column": 6
},
"end": {
"line": 433,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " Now we transform the tree in such a way that",
"start": 10441,
"end": 10488,
"loc": {
"start": {
"line": 434,
"column": 6
},
"end": {
"line": 434,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " either of these holds:",
"start": 10495,
"end": 10520,
"loc": {
"start": {
"line": 435,
"column": 6
},
"end": {
"line": 435,
"column": 31
}
}
},
{
"type": "CommentLine",
"value": " 1) grandparent.left.isRed",
"start": 10527,
"end": 10557,
"loc": {
"start": {
"line": 436,
"column": 6
},
"end": {
"line": 436,
"column": 36
}
}
},
{
"type": "CommentLine",
"value": " and grandparent.left.left.isRed",
"start": 10564,
"end": 10602,
"loc": {
"start": {
"line": 437,
"column": 6
},
"end": {
"line": 437,
"column": 44
}
}
},
{
"type": "CommentLine",
"value": " 2) grandparent.right.isRed",
"start": 10609,
"end": 10640,
"loc": {
"start": {
"line": 438,
"column": 6
},
"end": {
"line": 438,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " and grandparent.right.right.isRed",
"start": 10647,
"end": 10687,
"loc": {
"start": {
"line": 439,
"column": 6
},
"end": {
"line": 439,
"column": 46
}
}
},
{
"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": 10694,
"end": 10696,
"loc": {
"start": {
"line": 440,
"column": 6
},
"end": {
"line": 440,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10697,
"end": 10698,
"loc": {
"start": {
"line": 440,
"column": 9
},
"end": {
"line": 440,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10698,
"end": 10699,
"loc": {
"start": {
"line": 440,
"column": 10
},
"end": {
"line": 440,
"column": 11
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 10700,
"end": 10703,
"loc": {
"start": {
"line": 440,
"column": 12
},
"end": {
"line": 440,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10704,
"end": 10705,
"loc": {
"start": {
"line": 440,
"column": 16
},
"end": {
"line": 440,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10705,
"end": 10706,
"loc": {
"start": {
"line": 440,
"column": 17
},
"end": {
"line": 440,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10706,
"end": 10712,
"loc": {
"start": {
"line": 440,
"column": 18
},
"end": {
"line": 440,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10712,
"end": 10713,
"loc": {
"start": {
"line": 440,
"column": 24
},
"end": {
"line": 440,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 10713,
"end": 10718,
"loc": {
"start": {
"line": 440,
"column": 25
},
"end": {
"line": 440,
"column": 30
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 10719,
"end": 10721,
"loc": {
"start": {
"line": 440,
"column": 31
},
"end": {
"line": 440,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10722,
"end": 10723,
"loc": {
"start": {
"line": 440,
"column": 34
},
"end": {
"line": 440,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10723,
"end": 10724,
"loc": {
"start": {
"line": 440,
"column": 35
},
"end": {
"line": 440,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10724,
"end": 10730,
"loc": {
"start": {
"line": 440,
"column": 36
},
"end": {
"line": 440,
"column": 42
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 10731,
"end": 10734,
"loc": {
"start": {
"line": 440,
"column": 43
},
"end": {
"line": 440,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10735,
"end": 10736,
"loc": {
"start": {
"line": 440,
"column": 47
},
"end": {
"line": 440,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10736,
"end": 10737,
"loc": {
"start": {
"line": 440,
"column": 48
},
"end": {
"line": 440,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 10737,
"end": 10748,
"loc": {
"start": {
"line": 440,
"column": 49
},
"end": {
"line": 440,
"column": 60
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10748,
"end": 10749,
"loc": {
"start": {
"line": 440,
"column": 60
},
"end": {
"line": 440,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 10749,
"end": 10753,
"loc": {
"start": {
"line": 440,
"column": 61
},
"end": {
"line": 440,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10753,
"end": 10754,
"loc": {
"start": {
"line": 440,
"column": 65
},
"end": {
"line": 440,
"column": 66
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10755,
"end": 10756,
"loc": {
"start": {
"line": 440,
"column": 67
},
"end": {
"line": 440,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10765,
"end": 10766,
"loc": {
"start": {
"line": 441,
"column": 8
},
"end": {
"line": 441,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10766,
"end": 10767,
"loc": {
"start": {
"line": 441,
"column": 9
},
"end": {
"line": 441,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10767,
"end": 10773,
"loc": {
"start": {
"line": 441,
"column": 10
},
"end": {
"line": 441,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10773,
"end": 10774,
"loc": {
"start": {
"line": 441,
"column": 16
},
"end": {
"line": 441,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateLeft",
"start": 10774,
"end": 10784,
"loc": {
"start": {
"line": 441,
"column": 17
},
"end": {
"line": 441,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10784,
"end": 10785,
"loc": {
"start": {
"line": 441,
"column": 27
},
"end": {
"line": 441,
"column": 28
}
}
},
{
"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": 10785,
"end": 10789,
"loc": {
"start": {
"line": 441,
"column": 28
},
"end": {
"line": 441,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10789,
"end": 10790,
"loc": {
"start": {
"line": 441,
"column": 32
},
"end": {
"line": 441,
"column": 33
}
}
},
{
"type": "CommentLine",
"value": " Since we rotated and want to use the previous",
"start": 10799,
"end": 10847,
"loc": {
"start": {
"line": 442,
"column": 8
},
"end": {
"line": 442,
"column": 56
}
}
},
{
"type": "CommentLine",
"value": " cases, we need to set n in such a way that",
"start": 10856,
"end": 10901,
"loc": {
"start": {
"line": 443,
"column": 8
},
"end": {
"line": 443,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " n.parent.isRed again",
"start": 10910,
"end": 10933,
"loc": {
"start": {
"line": 444,
"column": 8
},
"end": {
"line": 444,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10942,
"end": 10943,
"loc": {
"start": {
"line": 445,
"column": 8
},
"end": {
"line": 445,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 10944,
"end": 10945,
"loc": {
"start": {
"line": 445,
"column": 10
},
"end": {
"line": 445,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10946,
"end": 10947,
"loc": {
"start": {
"line": 445,
"column": 12
},
"end": {
"line": 445,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10947,
"end": 10948,
"loc": {
"start": {
"line": 445,
"column": 13
},
"end": {
"line": 445,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 10948,
"end": 10952,
"loc": {
"start": {
"line": 445,
"column": 14
},
"end": {
"line": 445,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10959,
"end": 10960,
"loc": {
"start": {
"line": 446,
"column": 6
},
"end": {
"line": 446,
"column": 7
}
}
},
{
"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": 10961,
"end": 10965,
"loc": {
"start": {
"line": 446,
"column": 8
},
"end": {
"line": 446,
"column": 12
}
}
},
{
"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": 10966,
"end": 10968,
"loc": {
"start": {
"line": 446,
"column": 13
},
"end": {
"line": 446,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 10969,
"end": 10970,
"loc": {
"start": {
"line": 446,
"column": 16
},
"end": {
"line": 446,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10970,
"end": 10971,
"loc": {
"start": {
"line": 446,
"column": 17
},
"end": {
"line": 446,
"column": 18
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 10972,
"end": 10975,
"loc": {
"start": {
"line": 446,
"column": 19
},
"end": {
"line": 446,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10976,
"end": 10977,
"loc": {
"start": {
"line": 446,
"column": 23
},
"end": {
"line": 446,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10977,
"end": 10978,
"loc": {
"start": {
"line": 446,
"column": 24
},
"end": {
"line": 446,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10978,
"end": 10984,
"loc": {
"start": {
"line": 446,
"column": 25
},
"end": {
"line": 446,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10984,
"end": 10985,
"loc": {
"start": {
"line": 446,
"column": 31
},
"end": {
"line": 446,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 10985,
"end": 10989,
"loc": {
"start": {
"line": 446,
"column": 32
},
"end": {
"line": 446,
"column": 36
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 10990,
"end": 10992,
"loc": {
"start": {
"line": 446,
"column": 37
},
"end": {
"line": 446,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 10993,
"end": 10994,
"loc": {
"start": {
"line": 446,
"column": 40
},
"end": {
"line": 446,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 10994,
"end": 10995,
"loc": {
"start": {
"line": 446,
"column": 41
},
"end": {
"line": 446,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 10995,
"end": 11001,
"loc": {
"start": {
"line": 446,
"column": 42
},
"end": {
"line": 446,
"column": 48
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 11002,
"end": 11005,
"loc": {
"start": {
"line": 446,
"column": 49
},
"end": {
"line": 446,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11006,
"end": 11007,
"loc": {
"start": {
"line": 446,
"column": 53
},
"end": {
"line": 446,
"column": 54
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11007,
"end": 11008,
"loc": {
"start": {
"line": 446,
"column": 54
},
"end": {
"line": 446,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 11008,
"end": 11019,
"loc": {
"start": {
"line": 446,
"column": 55
},
"end": {
"line": 446,
"column": 66
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11019,
"end": 11020,
"loc": {
"start": {
"line": 446,
"column": 66
},
"end": {
"line": 446,
"column": 67
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 11020,
"end": 11025,
"loc": {
"start": {
"line": 446,
"column": 67
},
"end": {
"line": 446,
"column": 72
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11025,
"end": 11026,
"loc": {
"start": {
"line": 446,
"column": 72
},
"end": {
"line": 446,
"column": 73
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11027,
"end": 11028,
"loc": {
"start": {
"line": 446,
"column": 74
},
"end": {
"line": 446,
"column": 75
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11037,
"end": 11038,
"loc": {
"start": {
"line": 447,
"column": 8
},
"end": {
"line": 447,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11038,
"end": 11039,
"loc": {
"start": {
"line": 447,
"column": 9
},
"end": {
"line": 447,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 11039,
"end": 11045,
"loc": {
"start": {
"line": 447,
"column": 10
},
"end": {
"line": 447,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11045,
"end": 11046,
"loc": {
"start": {
"line": 447,
"column": 16
},
"end": {
"line": 447,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateRight",
"start": 11046,
"end": 11057,
"loc": {
"start": {
"line": 447,
"column": 17
},
"end": {
"line": 447,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11057,
"end": 11058,
"loc": {
"start": {
"line": 447,
"column": 28
},
"end": {
"line": 447,
"column": 29
}
}
},
{
"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": 11058,
"end": 11062,
"loc": {
"start": {
"line": 447,
"column": 29
},
"end": {
"line": 447,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11062,
"end": 11063,
"loc": {
"start": {
"line": 447,
"column": 33
},
"end": {
"line": 447,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " see above",
"start": 11072,
"end": 11084,
"loc": {
"start": {
"line": 448,
"column": 8
},
"end": {
"line": 448,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11093,
"end": 11094,
"loc": {
"start": {
"line": 449,
"column": 8
},
"end": {
"line": 449,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 11095,
"end": 11096,
"loc": {
"start": {
"line": 449,
"column": 10
},
"end": {
"line": 449,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11097,
"end": 11098,
"loc": {
"start": {
"line": 449,
"column": 12
},
"end": {
"line": 449,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11098,
"end": 11099,
"loc": {
"start": {
"line": 449,
"column": 13
},
"end": {
"line": 449,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 11099,
"end": 11104,
"loc": {
"start": {
"line": 449,
"column": 14
},
"end": {
"line": 449,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11111,
"end": 11112,
"loc": {
"start": {
"line": 450,
"column": 6
},
"end": {
"line": 450,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Case 1) or 2) hold from here on.",
"start": 11119,
"end": 11154,
"loc": {
"start": {
"line": 451,
"column": 6
},
"end": {
"line": 451,
"column": 41
}
}
},
{
"type": "CommentLine",
"value": " Now traverse grandparent, make parent a black node",
"start": 11161,
"end": 11214,
"loc": {
"start": {
"line": 452,
"column": 6
},
"end": {
"line": 452,
"column": 59
}
}
},
{
"type": "CommentLine",
"value": " on the highest level which holds two red nodes.",
"start": 11221,
"end": 11271,
"loc": {
"start": {
"line": 453,
"column": 6
},
"end": {
"line": 453,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11278,
"end": 11279,
"loc": {
"start": {
"line": 454,
"column": 6
},
"end": {
"line": 454,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11279,
"end": 11280,
"loc": {
"start": {
"line": 454,
"column": 7
},
"end": {
"line": 454,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 11280,
"end": 11286,
"loc": {
"start": {
"line": 454,
"column": 8
},
"end": {
"line": 454,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11286,
"end": 11287,
"loc": {
"start": {
"line": 454,
"column": 14
},
"end": {
"line": 454,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "blacken",
"start": 11287,
"end": 11294,
"loc": {
"start": {
"line": 454,
"column": 15
},
"end": {
"line": 454,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11294,
"end": 11295,
"loc": {
"start": {
"line": 454,
"column": 22
},
"end": {
"line": 454,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11295,
"end": 11296,
"loc": {
"start": {
"line": 454,
"column": 23
},
"end": {
"line": 454,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11303,
"end": 11304,
"loc": {
"start": {
"line": 455,
"column": 6
},
"end": {
"line": 455,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11304,
"end": 11305,
"loc": {
"start": {
"line": 455,
"column": 7
},
"end": {
"line": 455,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 11305,
"end": 11316,
"loc": {
"start": {
"line": 455,
"column": 8
},
"end": {
"line": 455,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11316,
"end": 11317,
"loc": {
"start": {
"line": 455,
"column": 19
},
"end": {
"line": 455,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "redden",
"start": 11317,
"end": 11323,
"loc": {
"start": {
"line": 455,
"column": 20
},
"end": {
"line": 455,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11323,
"end": 11324,
"loc": {
"start": {
"line": 455,
"column": 26
},
"end": {
"line": 455,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11324,
"end": 11325,
"loc": {
"start": {
"line": 455,
"column": 27
},
"end": {
"line": 455,
"column": 28
}
}
},
{
"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": 11332,
"end": 11334,
"loc": {
"start": {
"line": 456,
"column": 6
},
"end": {
"line": 456,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11335,
"end": 11336,
"loc": {
"start": {
"line": 456,
"column": 9
},
"end": {
"line": 456,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11336,
"end": 11337,
"loc": {
"start": {
"line": 456,
"column": 10
},
"end": {
"line": 456,
"column": 11
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 11338,
"end": 11341,
"loc": {
"start": {
"line": 456,
"column": 12
},
"end": {
"line": 456,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11342,
"end": 11343,
"loc": {
"start": {
"line": 456,
"column": 16
},
"end": {
"line": 456,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11343,
"end": 11344,
"loc": {
"start": {
"line": 456,
"column": 17
},
"end": {
"line": 456,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 11344,
"end": 11350,
"loc": {
"start": {
"line": 456,
"column": 18
},
"end": {
"line": 456,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11350,
"end": 11351,
"loc": {
"start": {
"line": 456,
"column": 24
},
"end": {
"line": 456,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 11351,
"end": 11355,
"loc": {
"start": {
"line": 456,
"column": 25
},
"end": {
"line": 456,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11355,
"end": 11356,
"loc": {
"start": {
"line": 456,
"column": 29
},
"end": {
"line": 456,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11357,
"end": 11358,
"loc": {
"start": {
"line": 456,
"column": 31
},
"end": {
"line": 456,
"column": 32
}
}
},
{
"type": "CommentLine",
"value": " Case 1",
"start": 11367,
"end": 11376,
"loc": {
"start": {
"line": 457,
"column": 8
},
"end": {
"line": 457,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11385,
"end": 11386,
"loc": {
"start": {
"line": 458,
"column": 8
},
"end": {
"line": 458,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11386,
"end": 11387,
"loc": {
"start": {
"line": 458,
"column": 9
},
"end": {
"line": 458,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 11387,
"end": 11398,
"loc": {
"start": {
"line": 458,
"column": 10
},
"end": {
"line": 458,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11398,
"end": 11399,
"loc": {
"start": {
"line": 458,
"column": 21
},
"end": {
"line": 458,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateRight",
"start": 11399,
"end": 11410,
"loc": {
"start": {
"line": 458,
"column": 22
},
"end": {
"line": 458,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11410,
"end": 11411,
"loc": {
"start": {
"line": 458,
"column": 33
},
"end": {
"line": 458,
"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": 11411,
"end": 11415,
"loc": {
"start": {
"line": 458,
"column": 34
},
"end": {
"line": 458,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11415,
"end": 11416,
"loc": {
"start": {
"line": 458,
"column": 38
},
"end": {
"line": 458,
"column": 39
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11423,
"end": 11424,
"loc": {
"start": {
"line": 459,
"column": 6
},
"end": {
"line": 459,
"column": 7
}
}
},
{
"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": 11425,
"end": 11429,
"loc": {
"start": {
"line": 459,
"column": 8
},
"end": {
"line": 459,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11430,
"end": 11431,
"loc": {
"start": {
"line": 459,
"column": 13
},
"end": {
"line": 459,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": " Case 2",
"start": 11440,
"end": 11449,
"loc": {
"start": {
"line": 460,
"column": 8
},
"end": {
"line": 460,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 11458,
"end": 11459,
"loc": {
"start": {
"line": 461,
"column": 8
},
"end": {
"line": 461,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11459,
"end": 11460,
"loc": {
"start": {
"line": 461,
"column": 9
},
"end": {
"line": 461,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "grandparent",
"start": 11460,
"end": 11471,
"loc": {
"start": {
"line": 461,
"column": 10
},
"end": {
"line": 461,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11471,
"end": 11472,
"loc": {
"start": {
"line": 461,
"column": 21
},
"end": {
"line": 461,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rotateLeft",
"start": 11472,
"end": 11482,
"loc": {
"start": {
"line": 461,
"column": 22
},
"end": {
"line": 461,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11482,
"end": 11483,
"loc": {
"start": {
"line": 461,
"column": 32
},
"end": {
"line": 461,
"column": 33
}
}
},
{
"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": 11483,
"end": 11487,
"loc": {
"start": {
"line": 461,
"column": 33
},
"end": {
"line": 461,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11487,
"end": 11488,
"loc": {
"start": {
"line": 461,
"column": 37
},
"end": {
"line": 461,
"column": 38
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11495,
"end": 11496,
"loc": {
"start": {
"line": 462,
"column": 6
},
"end": {
"line": 462,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11501,
"end": 11502,
"loc": {
"start": {
"line": 463,
"column": 4
},
"end": {
"line": 463,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11505,
"end": 11506,
"loc": {
"start": {
"line": 464,
"column": 2
},
"end": {
"line": 464,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 11507,
"end": 11508,
"loc": {
"start": {
"line": 465,
"column": 0
},
"end": {
"line": 465,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 11509,
"end": 11509,
"loc": {
"start": {
"line": 466,
"column": 0
},
"end": {
"line": 466,
"column": 0
}
}
}
]
}