yjs/docs/ast/source/Bindings/DomBinding/applyChangesFromDom.js.json
2018-04-27 18:45:01 +02:00

12464 lines
333 KiB
JSON

{
"type": "File",
"start": 0,
"end": 2610,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 76,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2610,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 76,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 45
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
},
"identifierName": "YXmlHook"
},
"name": "YXmlHook"
}
}
],
"source": {
"type": "StringLiteral",
"start": 21,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 45
}
},
"extra": {
"rawValue": "../../YXml/YXmlHook.js",
"raw": "'../../YXml/YXmlHook.js'"
},
"value": "../../YXml/YXmlHook.js"
}
},
{
"type": "ImportDeclaration",
"start": 46,
"end": 138,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 5,
"column": 37
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 57,
"end": 78,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 23
}
},
"imported": {
"type": "Identifier",
"start": 57,
"end": 78,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 23
},
"identifierName": "iterateUntilUndeleted"
},
"name": "iterateUntilUndeleted"
},
"local": {
"type": "Identifier",
"start": 57,
"end": 78,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 23
},
"identifierName": "iterateUntilUndeleted"
},
"name": "iterateUntilUndeleted"
}
},
{
"type": "ImportSpecifier",
"start": 82,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 19
}
},
"imported": {
"type": "Identifier",
"start": 82,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 19
},
"identifierName": "removeAssociation"
},
"name": "removeAssociation"
},
"local": {
"type": "Identifier",
"start": 82,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 19
},
"identifierName": "removeAssociation"
},
"name": "removeAssociation"
}
},
{
"type": "ImportSpecifier",
"start": 103,
"end": 119,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 103,
"end": 119,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 18
},
"identifierName": "insertNodeHelper"
},
"name": "insertNodeHelper"
},
"local": {
"type": "Identifier",
"start": 103,
"end": 119,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 18
},
"identifierName": "insertNodeHelper"
},
"name": "insertNodeHelper"
}
}
],
"source": {
"type": "StringLiteral",
"start": 127,
"end": 138,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 37
}
},
"extra": {
"rawValue": "./util.js",
"raw": "'./util.js'"
},
"value": "./util.js",
"leadingComments": null,
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "\n * 1. Check if any of the nodes was deleted\n * 2. Iterate over the children.\n * 2.1 If a node exists without _yxml property, insert a new node\n * 2.2 If _contents.length < dom.childNodes.length, fill the\n * rest of _content with childNodes\n * 2.3 If a node was moved, delete it and\n * recreate a new yxml element that is bound to that node.\n * You can detect that a node was moved because expectedId\n * !== actualId in the list\n ",
"start": 140,
"end": 608,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 609,
"end": 2609,
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 75,
"column": 1
}
},
"declaration": {
"type": "FunctionDeclaration",
"start": 624,
"end": 2609,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 75,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 633,
"end": 652,
"loc": {
"start": {
"line": 18,
"column": 24
},
"end": {
"line": 18,
"column": 43
},
"identifierName": "applyChangesFromDom"
},
"name": "applyChangesFromDom",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 654,
"end": 657,
"loc": {
"start": {
"line": 18,
"column": 45
},
"end": {
"line": 18,
"column": 48
},
"identifierName": "dom"
},
"name": "dom"
},
{
"type": "Identifier",
"start": 659,
"end": 663,
"loc": {
"start": {
"line": 18,
"column": 50
},
"end": {
"line": 18,
"column": 54
},
"identifierName": "yxml"
},
"name": "yxml"
}
],
"body": {
"type": "BlockStatement",
"start": 665,
"end": 2609,
"loc": {
"start": {
"line": 18,
"column": 56
},
"end": {
"line": 75,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 669,
"end": 754,
"loc": {
"start": {
"line": 19,
"column": 2
},
"end": {
"line": 21,
"column": 3
}
},
"test": {
"type": "LogicalExpression",
"start": 673,
"end": 736,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 69
}
},
"left": {
"type": "LogicalExpression",
"start": 673,
"end": 703,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 36
}
},
"left": {
"type": "BinaryExpression",
"start": 673,
"end": 685,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 18
}
},
"left": {
"type": "Identifier",
"start": 673,
"end": 677,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 10
},
"identifierName": "yxml"
},
"name": "yxml"
},
"operator": "==",
"right": {
"type": "NullLiteral",
"start": 681,
"end": 685,
"loc": {
"start": {
"line": 19,
"column": 14
},
"end": {
"line": 19,
"column": 18
}
}
}
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 689,
"end": 703,
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 36
}
},
"left": {
"type": "Identifier",
"start": 689,
"end": 693,
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 26
},
"identifierName": "yxml"
},
"name": "yxml"
},
"operator": "===",
"right": {
"type": "BooleanLiteral",
"start": 698,
"end": 703,
"loc": {
"start": {
"line": 19,
"column": 31
},
"end": {
"line": 19,
"column": 36
}
},
"value": false
}
}
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 707,
"end": 736,
"loc": {
"start": {
"line": 19,
"column": 40
},
"end": {
"line": 19,
"column": 69
}
},
"left": {
"type": "MemberExpression",
"start": 707,
"end": 723,
"loc": {
"start": {
"line": 19,
"column": 40
},
"end": {
"line": 19,
"column": 56
}
},
"object": {
"type": "Identifier",
"start": 707,
"end": 711,
"loc": {
"start": {
"line": 19,
"column": 40
},
"end": {
"line": 19,
"column": 44
},
"identifierName": "yxml"
},
"name": "yxml"
},
"property": {
"type": "Identifier",
"start": 712,
"end": 723,
"loc": {
"start": {
"line": 19,
"column": 45
},
"end": {
"line": 19,
"column": 56
},
"identifierName": "constructor"
},
"name": "constructor"
},
"computed": false
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 728,
"end": 736,
"loc": {
"start": {
"line": 19,
"column": 61
},
"end": {
"line": 19,
"column": 69
},
"identifierName": "YXmlHook"
},
"name": "YXmlHook"
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 738,
"end": 754,
"loc": {
"start": {
"line": 19,
"column": 71
},
"end": {
"line": 21,
"column": 3
}
},
"body": [
{
"type": "ReturnStatement",
"start": 744,
"end": 750,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 10
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 757,
"end": 774,
"loc": {
"start": {
"line": 22,
"column": 2
},
"end": {
"line": 22,
"column": 19
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 763,
"end": 774,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 19
}
},
"id": {
"type": "Identifier",
"start": 763,
"end": 764,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 9
},
"identifierName": "y"
},
"name": "y"
},
"init": {
"type": "MemberExpression",
"start": 767,
"end": 774,
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 767,
"end": 771,
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 16
},
"identifierName": "yxml"
},
"name": "yxml"
},
"property": {
"type": "Identifier",
"start": 772,
"end": 774,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 19
},
"identifierName": "_y"
},
"name": "_y"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 777,
"end": 808,
"loc": {
"start": {
"line": 23,
"column": 2
},
"end": {
"line": 23,
"column": 33
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 783,
"end": 808,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 33
}
},
"id": {
"type": "Identifier",
"start": 783,
"end": 796,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 21
},
"identifierName": "knownChildren"
},
"name": "knownChildren"
},
"init": {
"type": "NewExpression",
"start": 799,
"end": 808,
"loc": {
"start": {
"line": 23,
"column": 24
},
"end": {
"line": 23,
"column": 33
}
},
"callee": {
"type": "Identifier",
"start": 803,
"end": 806,
"loc": {
"start": {
"line": 23,
"column": 28
},
"end": {
"line": 23,
"column": 31
},
"identifierName": "Set"
},
"name": "Set"
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "ForInStatement",
"start": 811,
"end": 976,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 29,
"column": 3
}
},
"left": {
"type": "VariableDeclaration",
"start": 816,
"end": 825,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 16
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 820,
"end": 825,
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 24,
"column": 16
}
},
"id": {
"type": "Identifier",
"start": 820,
"end": 825,
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 24,
"column": 16
},
"identifierName": "child"
},
"name": "child"
},
"init": null
}
],
"kind": "let"
},
"right": {
"type": "MemberExpression",
"start": 829,
"end": 843,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 829,
"end": 832,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 23
},
"identifierName": "dom"
},
"name": "dom"
},
"property": {
"type": "Identifier",
"start": 833,
"end": 843,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 34
},
"identifierName": "childNodes"
},
"name": "childNodes"
},
"computed": false
},
"body": {
"type": "BlockStatement",
"start": 845,
"end": 976,
"loc": {
"start": {
"line": 24,
"column": 36
},
"end": {
"line": 29,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 851,
"end": 888,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 41
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 857,
"end": 888,
"loc": {
"start": {
"line": 25,
"column": 10
},
"end": {
"line": 25,
"column": 41
}
},
"id": {
"type": "Identifier",
"start": 857,
"end": 861,
"loc": {
"start": {
"line": 25,
"column": 10
},
"end": {
"line": 25,
"column": 14
},
"identifierName": "type"
},
"name": "type"
},
"init": {
"type": "CallExpression",
"start": 864,
"end": 888,
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 864,
"end": 881,
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 864,
"end": 877,
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 30
},
"identifierName": "knownChildren"
},
"name": "knownChildren"
},
"property": {
"type": "Identifier",
"start": 878,
"end": 881,
"loc": {
"start": {
"line": 25,
"column": 31
},
"end": {
"line": 25,
"column": 34
},
"identifierName": "get"
},
"name": "get"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 882,
"end": 887,
"loc": {
"start": {
"line": 25,
"column": 35
},
"end": {
"line": 25,
"column": 40
},
"identifierName": "child"
},
"name": "child"
}
]
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 893,
"end": 972,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 28,
"column": 5
}
},
"test": {
"type": "LogicalExpression",
"start": 897,
"end": 933,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 44
}
},
"left": {
"type": "BinaryExpression",
"start": 897,
"end": 915,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 26
}
},
"left": {
"type": "Identifier",
"start": 897,
"end": 901,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 12
},
"identifierName": "type"
},
"name": "type"
},
"operator": "!==",
"right": {
"type": "Identifier",
"start": 906,
"end": 915,
"loc": {
"start": {
"line": 26,
"column": 17
},
"end": {
"line": 26,
"column": 26
},
"identifierName": "undefined"
},
"name": "undefined"
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 919,
"end": 933,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 44
}
},
"left": {
"type": "Identifier",
"start": 919,
"end": 923,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 34
},
"identifierName": "type"
},
"name": "type"
},
"operator": "!==",
"right": {
"type": "BooleanLiteral",
"start": 928,
"end": 933,
"loc": {
"start": {
"line": 26,
"column": 39
},
"end": {
"line": 26,
"column": 44
}
},
"value": false
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 935,
"end": 972,
"loc": {
"start": {
"line": 26,
"column": 46
},
"end": {
"line": 28,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 943,
"end": 966,
"loc": {
"start": {
"line": 27,
"column": 6
},
"end": {
"line": 27,
"column": 29
}
},
"expression": {
"type": "CallExpression",
"start": 943,
"end": 966,
"loc": {
"start": {
"line": 27,
"column": 6
},
"end": {
"line": 27,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
"start": 943,
"end": 960,
"loc": {
"start": {
"line": 27,
"column": 6
},
"end": {
"line": 27,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 943,
"end": 956,
"loc": {
"start": {
"line": 27,
"column": 6
},
"end": {
"line": 27,
"column": 19
},
"identifierName": "knownChildren"
},
"name": "knownChildren"
},
"property": {
"type": "Identifier",
"start": 957,
"end": 960,
"loc": {
"start": {
"line": 27,
"column": 20
},
"end": {
"line": 27,
"column": 23
},
"identifierName": "add"
},
"name": "add"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 961,
"end": 965,
"loc": {
"start": {
"line": 27,
"column": 24
},
"end": {
"line": 27,
"column": 28
},
"identifierName": "type"
},
"name": "type"
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": " 1. Check if any of the nodes was deleted",
"start": 979,
"end": 1022,
"loc": {
"start": {
"line": 30,
"column": 2
},
"end": {
"line": 30,
"column": 45
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1025,
"end": 1148,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 35,
"column": 4
}
},
"expression": {
"type": "CallExpression",
"start": 1025,
"end": 1148,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 35,
"column": 4
}
},
"callee": {
"type": "MemberExpression",
"start": 1025,
"end": 1037,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 31,
"column": 14
}
},
"object": {
"type": "Identifier",
"start": 1025,
"end": 1029,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 31,
"column": 6
},
"identifierName": "yxml"
},
"name": "yxml",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1030,
"end": 1037,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 31,
"column": 14
},
"identifierName": "forEach"
},
"name": "forEach"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "FunctionExpression",
"start": 1038,
"end": 1147,
"loc": {
"start": {
"line": 31,
"column": 15
},
"end": {
"line": 35,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1048,
"end": 1057,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 34
},
"identifierName": "childType"
},
"name": "childType"
}
],
"body": {
"type": "BlockStatement",
"start": 1059,
"end": 1147,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 35,
"column": 3
}
},
"body": [
{
"type": "IfStatement",
"start": 1065,
"end": 1143,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 34,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 1069,
"end": 1107,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 46
}
},
"left": {
"type": "CallExpression",
"start": 1069,
"end": 1097,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 1069,
"end": 1086,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 1069,
"end": 1082,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 21
},
"identifierName": "knownChildren"
},
"name": "knownChildren"
},
"property": {
"type": "Identifier",
"start": 1083,
"end": 1086,
"loc": {
"start": {
"line": 32,
"column": 22
},
"end": {
"line": 32,
"column": 25
},
"identifierName": "has"
},
"name": "has"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1087,
"end": 1096,
"loc": {
"start": {
"line": 32,
"column": 26
},
"end": {
"line": 32,
"column": 35
},
"identifierName": "childType"
},
"name": "childType"
}
]
},
"operator": "===",
"right": {
"type": "BooleanLiteral",
"start": 1102,
"end": 1107,
"loc": {
"start": {
"line": 32,
"column": 41
},
"end": {
"line": 32,
"column": 46
}
},
"value": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 1109,
"end": 1143,
"loc": {
"start": {
"line": 32,
"column": 48
},
"end": {
"line": 34,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1117,
"end": 1137,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 26
}
},
"expression": {
"type": "CallExpression",
"start": 1117,
"end": 1137,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 1117,
"end": 1134,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 1117,
"end": 1126,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 15
},
"identifierName": "childType"
},
"name": "childType"
},
"property": {
"type": "Identifier",
"start": 1127,
"end": 1134,
"loc": {
"start": {
"line": 33,
"column": 16
},
"end": {
"line": 33,
"column": 23
},
"identifierName": "_delete"
},
"name": "_delete"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1135,
"end": 1136,
"loc": {
"start": {
"line": 33,
"column": 24
},
"end": {
"line": 33,
"column": 25
},
"identifierName": "y"
},
"name": "y"
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"leadingComments": null,
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " 1. Check if any of the nodes was deleted",
"start": 979,
"end": 1022,
"loc": {
"start": {
"line": 30,
"column": 2
},
"end": {
"line": 30,
"column": 45
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " 2. iterate",
"start": 1151,
"end": 1164,
"loc": {
"start": {
"line": 36,
"column": 2
},
"end": {
"line": 36,
"column": 15
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 1167,
"end": 1200,
"loc": {
"start": {
"line": 37,
"column": 2
},
"end": {
"line": 37,
"column": 35
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1173,
"end": 1200,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 1173,
"end": 1183,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 18
},
"identifierName": "childNodes"
},
"name": "childNodes",
"leadingComments": null
},
"init": {
"type": "MemberExpression",
"start": 1186,
"end": 1200,
"loc": {
"start": {
"line": 37,
"column": 21
},
"end": {
"line": 37,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 1186,
"end": 1189,
"loc": {
"start": {
"line": 37,
"column": 21
},
"end": {
"line": 37,
"column": 24
},
"identifierName": "dom"
},
"name": "dom"
},
"property": {
"type": "Identifier",
"start": 1190,
"end": 1200,
"loc": {
"start": {
"line": 37,
"column": 25
},
"end": {
"line": 37,
"column": 35
},
"identifierName": "childNodes"
},
"name": "childNodes"
},
"computed": false
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentLine",
"value": " 2. iterate",
"start": 1151,
"end": 1164,
"loc": {
"start": {
"line": 36,
"column": 2
},
"end": {
"line": 36,
"column": 15
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 1203,
"end": 1232,
"loc": {
"start": {
"line": 38,
"column": 2
},
"end": {
"line": 38,
"column": 31
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1209,
"end": 1232,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 1209,
"end": 1212,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 11
},
"identifierName": "len"
},
"name": "len"
},
"init": {
"type": "MemberExpression",
"start": 1215,
"end": 1232,
"loc": {
"start": {
"line": 38,
"column": 14
},
"end": {
"line": 38,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 1215,
"end": 1225,
"loc": {
"start": {
"line": 38,
"column": 14
},
"end": {
"line": 38,
"column": 24
},
"identifierName": "childNodes"
},
"name": "childNodes"
},
"property": {
"type": "Identifier",
"start": 1226,
"end": 1232,
"loc": {
"start": {
"line": 38,
"column": 25
},
"end": {
"line": 38,
"column": 31
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 1235,
"end": 1262,
"loc": {
"start": {
"line": 39,
"column": 2
},
"end": {
"line": 39,
"column": 29
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1239,
"end": 1262,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 39,
"column": 29
}
},
"id": {
"type": "Identifier",
"start": 1239,
"end": 1255,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 39,
"column": 22
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType"
},
"init": {
"type": "NullLiteral",
"start": 1258,
"end": 1262,
"loc": {
"start": {
"line": 39,
"column": 25
},
"end": {
"line": 39,
"column": 29
}
}
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 1265,
"end": 1318,
"loc": {
"start": {
"line": 40,
"column": 2
},
"end": {
"line": 40,
"column": 55
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1269,
"end": 1318,
"loc": {
"start": {
"line": 40,
"column": 6
},
"end": {
"line": 40,
"column": 55
}
},
"id": {
"type": "Identifier",
"start": 1269,
"end": 1281,
"loc": {
"start": {
"line": 40,
"column": 6
},
"end": {
"line": 40,
"column": 18
},
"identifierName": "expectedType"
},
"name": "expectedType"
},
"init": {
"type": "CallExpression",
"start": 1284,
"end": 1318,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 55
}
},
"callee": {
"type": "Identifier",
"start": 1284,
"end": 1305,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 42
},
"identifierName": "iterateUntilUndeleted"
},
"name": "iterateUntilUndeleted"
},
"arguments": [
{
"type": "MemberExpression",
"start": 1306,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 43
},
"end": {
"line": 40,
"column": 54
}
},
"object": {
"type": "Identifier",
"start": 1306,
"end": 1310,
"loc": {
"start": {
"line": 40,
"column": 43
},
"end": {
"line": 40,
"column": 47
},
"identifierName": "yxml"
},
"name": "yxml"
},
"property": {
"type": "Identifier",
"start": 1311,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 48
},
"end": {
"line": 40,
"column": 54
},
"identifierName": "_start"
},
"name": "_start"
},
"computed": false
}
]
}
}
],
"kind": "let"
},
{
"type": "ForStatement",
"start": 1321,
"end": 2607,
"loc": {
"start": {
"line": 41,
"column": 2
},
"end": {
"line": 74,
"column": 3
}
},
"init": {
"type": "VariableDeclaration",
"start": 1326,
"end": 1340,
"loc": {
"start": {
"line": 41,
"column": 7
},
"end": {
"line": 41,
"column": 21
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1330,
"end": 1340,
"loc": {
"start": {
"line": 41,
"column": 11
},
"end": {
"line": 41,
"column": 21
}
},
"id": {
"type": "Identifier",
"start": 1330,
"end": 1336,
"loc": {
"start": {
"line": 41,
"column": 11
},
"end": {
"line": 41,
"column": 17
},
"identifierName": "domCnt"
},
"name": "domCnt"
},
"init": {
"type": "NumericLiteral",
"start": 1339,
"end": 1340,
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 21
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 1342,
"end": 1354,
"loc": {
"start": {
"line": 41,
"column": 23
},
"end": {
"line": 41,
"column": 35
}
},
"left": {
"type": "Identifier",
"start": 1342,
"end": 1348,
"loc": {
"start": {
"line": 41,
"column": 23
},
"end": {
"line": 41,
"column": 29
},
"identifierName": "domCnt"
},
"name": "domCnt"
},
"operator": "<",
"right": {
"type": "Identifier",
"start": 1351,
"end": 1354,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 35
},
"identifierName": "len"
},
"name": "len"
}
},
"update": {
"type": "UpdateExpression",
"start": 1356,
"end": 1364,
"loc": {
"start": {
"line": 41,
"column": 37
},
"end": {
"line": 41,
"column": 45
}
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"start": 1356,
"end": 1362,
"loc": {
"start": {
"line": 41,
"column": 37
},
"end": {
"line": 41,
"column": 43
},
"identifierName": "domCnt"
},
"name": "domCnt"
}
},
"body": {
"type": "BlockStatement",
"start": 1366,
"end": 2607,
"loc": {
"start": {
"line": 41,
"column": 47
},
"end": {
"line": 74,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1372,
"end": 1408,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 40
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1378,
"end": 1408,
"loc": {
"start": {
"line": 42,
"column": 10
},
"end": {
"line": 42,
"column": 40
}
},
"id": {
"type": "Identifier",
"start": 1378,
"end": 1387,
"loc": {
"start": {
"line": 42,
"column": 10
},
"end": {
"line": 42,
"column": 19
},
"identifierName": "childNode"
},
"name": "childNode"
},
"init": {
"type": "MemberExpression",
"start": 1390,
"end": 1408,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 1390,
"end": 1400,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 32
},
"identifierName": "childNodes"
},
"name": "childNodes"
},
"property": {
"type": "Identifier",
"start": 1401,
"end": 1407,
"loc": {
"start": {
"line": 42,
"column": 33
},
"end": {
"line": 42,
"column": 39
},
"identifierName": "domCnt"
},
"name": "domCnt"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 1413,
"end": 1460,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 43,
"column": 51
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1419,
"end": 1460,
"loc": {
"start": {
"line": 43,
"column": 10
},
"end": {
"line": 43,
"column": 51
}
},
"id": {
"type": "Identifier",
"start": 1419,
"end": 1428,
"loc": {
"start": {
"line": 43,
"column": 10
},
"end": {
"line": 43,
"column": 19
},
"identifierName": "childType"
},
"name": "childType"
},
"init": {
"type": "CallExpression",
"start": 1431,
"end": 1460,
"loc": {
"start": {
"line": 43,
"column": 22
},
"end": {
"line": 43,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 1431,
"end": 1449,
"loc": {
"start": {
"line": 43,
"column": 22
},
"end": {
"line": 43,
"column": 40
}
},
"object": {
"type": "MemberExpression",
"start": 1431,
"end": 1445,
"loc": {
"start": {
"line": 43,
"column": 22
},
"end": {
"line": 43,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1431,
"end": 1435,
"loc": {
"start": {
"line": 43,
"column": 22
},
"end": {
"line": 43,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 1436,
"end": 1445,
"loc": {
"start": {
"line": 43,
"column": 27
},
"end": {
"line": 43,
"column": 36
},
"identifierName": "domToYXml"
},
"name": "domToYXml"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1446,
"end": 1449,
"loc": {
"start": {
"line": 43,
"column": 37
},
"end": {
"line": 43,
"column": 40
},
"identifierName": "get"
},
"name": "get"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1450,
"end": 1459,
"loc": {
"start": {
"line": 43,
"column": 41
},
"end": {
"line": 43,
"column": 50
},
"identifierName": "childNode"
},
"name": "childNode"
}
]
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 1465,
"end": 2603,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 73,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 1469,
"end": 1486,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 25
}
},
"left": {
"type": "Identifier",
"start": 1469,
"end": 1478,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 17
},
"identifierName": "childType"
},
"name": "childType"
},
"operator": "!=",
"right": {
"type": "NullLiteral",
"start": 1482,
"end": 1486,
"loc": {
"start": {
"line": 44,
"column": 21
},
"end": {
"line": 44,
"column": 25
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1488,
"end": 2479,
"loc": {
"start": {
"line": 44,
"column": 27
},
"end": {
"line": 70,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1496,
"end": 1602,
"loc": {
"start": {
"line": 45,
"column": 6
},
"end": {
"line": 48,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 1500,
"end": 1519,
"loc": {
"start": {
"line": 45,
"column": 10
},
"end": {
"line": 45,
"column": 29
}
},
"left": {
"type": "Identifier",
"start": 1500,
"end": 1509,
"loc": {
"start": {
"line": 45,
"column": 10
},
"end": {
"line": 45,
"column": 19
},
"identifierName": "childType"
},
"name": "childType"
},
"operator": "===",
"right": {
"type": "BooleanLiteral",
"start": 1514,
"end": 1519,
"loc": {
"start": {
"line": 45,
"column": 24
},
"end": {
"line": 45,
"column": 29
}
},
"value": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 1521,
"end": 1602,
"loc": {
"start": {
"line": 45,
"column": 31
},
"end": {
"line": 48,
"column": 7
}
},
"body": [
{
"type": "ContinueStatement",
"start": 1586,
"end": 1594,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 16
}
},
"label": null,
"leadingComments": [
{
"type": "CommentLine",
"value": " should be ignored or is going to be deleted",
"start": 1531,
"end": 1577,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 54
}
}
}
]
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 1609,
"end": 2473,
"loc": {
"start": {
"line": 49,
"column": 6
},
"end": {
"line": 69,
"column": 7
}
},
"test": {
"type": "BinaryExpression",
"start": 1613,
"end": 1634,
"loc": {
"start": {
"line": 49,
"column": 10
},
"end": {
"line": 49,
"column": 31
}
},
"left": {
"type": "Identifier",
"start": 1613,
"end": 1625,
"loc": {
"start": {
"line": 49,
"column": 10
},
"end": {
"line": 49,
"column": 22
},
"identifierName": "expectedType"
},
"name": "expectedType"
},
"operator": "!==",
"right": {
"type": "NullLiteral",
"start": 1630,
"end": 1634,
"loc": {
"start": {
"line": 49,
"column": 27
},
"end": {
"line": 49,
"column": 31
}
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1636,
"end": 2333,
"loc": {
"start": {
"line": 49,
"column": 33
},
"end": {
"line": 66,
"column": 7
}
},
"body": [
{
"type": "IfStatement",
"start": 1646,
"end": 2325,
"loc": {
"start": {
"line": 50,
"column": 8
},
"end": {
"line": 65,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 1650,
"end": 1676,
"loc": {
"start": {
"line": 50,
"column": 12
},
"end": {
"line": 50,
"column": 38
}
},
"left": {
"type": "Identifier",
"start": 1650,
"end": 1662,
"loc": {
"start": {
"line": 50,
"column": 12
},
"end": {
"line": 50,
"column": 24
},
"identifierName": "expectedType"
},
"name": "expectedType"
},
"operator": "!==",
"right": {
"type": "Identifier",
"start": 1667,
"end": 1676,
"loc": {
"start": {
"line": 50,
"column": 29
},
"end": {
"line": 50,
"column": 38
},
"identifierName": "childType"
},
"name": "childType"
}
},
"consequent": {
"type": "BlockStatement",
"start": 1678,
"end": 2165,
"loc": {
"start": {
"line": 50,
"column": 40
},
"end": {
"line": 61,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 1725,
"end": 2074,
"loc": {
"start": {
"line": 52,
"column": 10
},
"end": {
"line": 59,
"column": 11
}
},
"test": {
"type": "BinaryExpression",
"start": 1729,
"end": 1755,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 40
}
},
"left": {
"type": "MemberExpression",
"start": 1729,
"end": 1746,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 1729,
"end": 1738,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 23
},
"identifierName": "childType"
},
"name": "childType",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1739,
"end": 1746,
"loc": {
"start": {
"line": 52,
"column": 24
},
"end": {
"line": 52,
"column": 31
},
"identifierName": "_parent"
},
"name": "_parent"
},
"computed": false,
"leadingComments": null
},
"operator": "!==",
"right": {
"type": "Identifier",
"start": 1751,
"end": 1755,
"loc": {
"start": {
"line": 52,
"column": 36
},
"end": {
"line": 52,
"column": 40
},
"identifierName": "yxml"
},
"name": "yxml"
},
"leadingComments": null
},
"consequent": {
"type": "BlockStatement",
"start": 1757,
"end": 1966,
"loc": {
"start": {
"line": 52,
"column": 42
},
"end": {
"line": 56,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1893,
"end": 1954,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 73
}
},
"expression": {
"type": "CallExpression",
"start": 1893,
"end": 1954,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 73
}
},
"callee": {
"type": "Identifier",
"start": 1893,
"end": 1910,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 29
},
"identifierName": "removeAssociation"
},
"name": "removeAssociation",
"leadingComments": null
},
"arguments": [
{
"type": "ThisExpression",
"start": 1911,
"end": 1915,
"loc": {
"start": {
"line": 55,
"column": 30
},
"end": {
"line": 55,
"column": 34
}
}
},
{
"type": "Identifier",
"start": 1917,
"end": 1926,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 45
},
"identifierName": "childNode"
},
"name": "childNode"
},
{
"type": "CallExpression",
"start": 1928,
"end": 1953,
"loc": {
"start": {
"line": 55,
"column": 47
},
"end": {
"line": 55,
"column": 72
}
},
"callee": {
"type": "MemberExpression",
"start": 1928,
"end": 1942,
"loc": {
"start": {
"line": 55,
"column": 47
},
"end": {
"line": 55,
"column": 61
}
},
"object": {
"type": "ThisExpression",
"start": 1928,
"end": 1932,
"loc": {
"start": {
"line": 55,
"column": 47
},
"end": {
"line": 55,
"column": 51
}
}
},
"property": {
"type": "Identifier",
"start": 1933,
"end": 1942,
"loc": {
"start": {
"line": 55,
"column": 52
},
"end": {
"line": 55,
"column": 61
},
"identifierName": "domToYXml"
},
"name": "domToYXml"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1943,
"end": 1952,
"loc": {
"start": {
"line": 55,
"column": 62
},
"end": {
"line": 55,
"column": 71
},
"identifierName": "childNode"
},
"name": "childNode"
}
]
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " child was moved from another parent",
"start": 1771,
"end": 1809,
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 50
}
}
},
{
"type": "CommentLine",
"value": " childType is going to be deleted by its previous parent",
"start": 1822,
"end": 1880,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 70
}
}
}
]
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1972,
"end": 2074,
"loc": {
"start": {
"line": 56,
"column": 17
},
"end": {
"line": 59,
"column": 11
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2042,
"end": 2062,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 32
}
},
"expression": {
"type": "CallExpression",
"start": 2042,
"end": 2062,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 2042,
"end": 2059,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 2042,
"end": 2051,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 21
},
"identifierName": "childType"
},
"name": "childType",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 2052,
"end": 2059,
"loc": {
"start": {
"line": 58,
"column": 22
},
"end": {
"line": 58,
"column": 29
},
"identifierName": "_delete"
},
"name": "_delete"
},
"computed": false,
"leadingComments": null
},
"arguments": [
{
"type": "Identifier",
"start": 2060,
"end": 2061,
"loc": {
"start": {
"line": 58,
"column": 30
},
"end": {
"line": 58,
"column": 31
},
"identifierName": "y"
},
"name": "y"
}
],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " child was moved to a different position.",
"start": 1986,
"end": 2029,
"loc": {
"start": {
"line": 57,
"column": 12
},
"end": {
"line": 57,
"column": 55
}
}
}
]
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " 2.3 Not expected node",
"start": 1690,
"end": 1714,
"loc": {
"start": {
"line": 51,
"column": 10
},
"end": {
"line": 51,
"column": 34
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2085,
"end": 2155,
"loc": {
"start": {
"line": 60,
"column": 10
},
"end": {
"line": 60,
"column": 80
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2085,
"end": 2155,
"loc": {
"start": {
"line": 60,
"column": 10
},
"end": {
"line": 60,
"column": 80
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2085,
"end": 2101,
"loc": {
"start": {
"line": 60,
"column": 10
},
"end": {
"line": 60,
"column": 26
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType"
},
"right": {
"type": "CallExpression",
"start": 2104,
"end": 2155,
"loc": {
"start": {
"line": 60,
"column": 29
},
"end": {
"line": 60,
"column": 80
}
},
"callee": {
"type": "Identifier",
"start": 2104,
"end": 2120,
"loc": {
"start": {
"line": 60,
"column": 29
},
"end": {
"line": 60,
"column": 45
},
"identifierName": "insertNodeHelper"
},
"name": "insertNodeHelper"
},
"arguments": [
{
"type": "Identifier",
"start": 2121,
"end": 2125,
"loc": {
"start": {
"line": 60,
"column": 46
},
"end": {
"line": 60,
"column": 50
},
"identifierName": "yxml"
},
"name": "yxml"
},
{
"type": "Identifier",
"start": 2127,
"end": 2143,
"loc": {
"start": {
"line": 60,
"column": 52
},
"end": {
"line": 60,
"column": 68
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType"
},
{
"type": "Identifier",
"start": 2145,
"end": 2154,
"loc": {
"start": {
"line": 60,
"column": 70
},
"end": {
"line": 60,
"column": 79
},
"identifierName": "childNode"
},
"name": "childNode"
}
]
}
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2171,
"end": 2325,
"loc": {
"start": {
"line": 61,
"column": 15
},
"end": {
"line": 65,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2216,
"end": 2247,
"loc": {
"start": {
"line": 63,
"column": 10
},
"end": {
"line": 63,
"column": 41
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2216,
"end": 2247,
"loc": {
"start": {
"line": 63,
"column": 10
},
"end": {
"line": 63,
"column": 41
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2216,
"end": 2232,
"loc": {
"start": {
"line": 63,
"column": 10
},
"end": {
"line": 63,
"column": 26
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType",
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 2235,
"end": 2247,
"loc": {
"start": {
"line": 63,
"column": 29
},
"end": {
"line": 63,
"column": 41
},
"identifierName": "expectedType"
},
"name": "expectedType"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Found expected node",
"start": 2183,
"end": 2205,
"loc": {
"start": {
"line": 62,
"column": 10
},
"end": {
"line": 62,
"column": 32
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 2258,
"end": 2315,
"loc": {
"start": {
"line": 64,
"column": 10
},
"end": {
"line": 64,
"column": 67
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2258,
"end": 2315,
"loc": {
"start": {
"line": 64,
"column": 10
},
"end": {
"line": 64,
"column": 67
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2258,
"end": 2270,
"loc": {
"start": {
"line": 64,
"column": 10
},
"end": {
"line": 64,
"column": 22
},
"identifierName": "expectedType"
},
"name": "expectedType"
},
"right": {
"type": "CallExpression",
"start": 2273,
"end": 2315,
"loc": {
"start": {
"line": 64,
"column": 25
},
"end": {
"line": 64,
"column": 67
}
},
"callee": {
"type": "Identifier",
"start": 2273,
"end": 2294,
"loc": {
"start": {
"line": 64,
"column": 25
},
"end": {
"line": 64,
"column": 46
},
"identifierName": "iterateUntilUndeleted"
},
"name": "iterateUntilUndeleted"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2295,
"end": 2314,
"loc": {
"start": {
"line": 64,
"column": 47
},
"end": {
"line": 64,
"column": 66
}
},
"object": {
"type": "Identifier",
"start": 2295,
"end": 2307,
"loc": {
"start": {
"line": 64,
"column": 47
},
"end": {
"line": 64,
"column": 59
},
"identifierName": "expectedType"
},
"name": "expectedType"
},
"property": {
"type": "Identifier",
"start": 2308,
"end": 2314,
"loc": {
"start": {
"line": 64,
"column": 60
},
"end": {
"line": 64,
"column": 66
},
"identifierName": "_right"
},
"name": "_right"
},
"computed": false
}
]
}
}
}
],
"directives": []
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2339,
"end": 2473,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 69,
"column": 7
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2395,
"end": 2465,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 78
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2395,
"end": 2465,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 78
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2395,
"end": 2411,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 24
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType",
"leadingComments": null
},
"right": {
"type": "CallExpression",
"start": 2414,
"end": 2465,
"loc": {
"start": {
"line": 68,
"column": 27
},
"end": {
"line": 68,
"column": 78
}
},
"callee": {
"type": "Identifier",
"start": 2414,
"end": 2430,
"loc": {
"start": {
"line": 68,
"column": 27
},
"end": {
"line": 68,
"column": 43
},
"identifierName": "insertNodeHelper"
},
"name": "insertNodeHelper"
},
"arguments": [
{
"type": "Identifier",
"start": 2431,
"end": 2435,
"loc": {
"start": {
"line": 68,
"column": 44
},
"end": {
"line": 68,
"column": 48
},
"identifierName": "yxml"
},
"name": "yxml"
},
{
"type": "Identifier",
"start": 2437,
"end": 2453,
"loc": {
"start": {
"line": 68,
"column": 50
},
"end": {
"line": 68,
"column": 66
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType"
},
{
"type": "Identifier",
"start": 2455,
"end": 2464,
"loc": {
"start": {
"line": 68,
"column": 68
},
"end": {
"line": 68,
"column": 77
},
"identifierName": "childNode"
},
"name": "childNode"
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " 2.2 Fill _content with child nodes",
"start": 2349,
"end": 2386,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 45
}
}
}
]
}
],
"directives": []
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 2485,
"end": 2603,
"loc": {
"start": {
"line": 70,
"column": 11
},
"end": {
"line": 73,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2527,
"end": 2597,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 76
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2527,
"end": 2597,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 76
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2527,
"end": 2543,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 22
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType",
"leadingComments": null
},
"right": {
"type": "CallExpression",
"start": 2546,
"end": 2597,
"loc": {
"start": {
"line": 72,
"column": 25
},
"end": {
"line": 72,
"column": 76
}
},
"callee": {
"type": "Identifier",
"start": 2546,
"end": 2562,
"loc": {
"start": {
"line": 72,
"column": 25
},
"end": {
"line": 72,
"column": 41
},
"identifierName": "insertNodeHelper"
},
"name": "insertNodeHelper"
},
"arguments": [
{
"type": "Identifier",
"start": 2563,
"end": 2567,
"loc": {
"start": {
"line": 72,
"column": 42
},
"end": {
"line": 72,
"column": 46
},
"identifierName": "yxml"
},
"name": "yxml"
},
{
"type": "Identifier",
"start": 2569,
"end": 2585,
"loc": {
"start": {
"line": 72,
"column": 48
},
"end": {
"line": 72,
"column": 64
},
"identifierName": "prevExpectedType"
},
"name": "prevExpectedType"
},
{
"type": "Identifier",
"start": 2587,
"end": 2596,
"loc": {
"start": {
"line": 72,
"column": 66
},
"end": {
"line": 72,
"column": 75
},
"identifierName": "childNode"
},
"name": "childNode"
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " 2.1 A new node was found",
"start": 2493,
"end": 2520,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 33
}
}
}
]
}
],
"directives": []
}
}
],
"directives": []
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "\n * 1. Check if any of the nodes was deleted\n * 2. Iterate over the children.\n * 2.1 If a node exists without _yxml property, insert a new node\n * 2.2 If _contents.length < dom.childNodes.length, fill the\n * rest of _content with childNodes\n * 2.3 If a node was moved, delete it and\n * recreate a new yxml element that is bound to that node.\n * You can detect that a node was moved because expectedId\n * !== actualId in the list\n ",
"start": 140,
"end": 608,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "\n * 1. Check if any of the nodes was deleted\n * 2. Iterate over the children.\n * 2.1 If a node exists without _yxml property, insert a new node\n * 2.2 If _contents.length < dom.childNodes.length, fill the\n * rest of _content with childNodes\n * 2.3 If a node was moved, delete it and\n * recreate a new yxml element that is bound to that node.\n * You can detect that a node was moved because expectedId\n * !== actualId in the list\n ",
"start": 140,
"end": 608,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "\n * 1. Check if any of the nodes was deleted\n * 2. Iterate over the children.\n * 2.1 If a node exists without _yxml property, insert a new node\n * 2.2 If _contents.length < dom.childNodes.length, fill the\n * rest of _content with childNodes\n * 2.3 If a node was moved, delete it and\n * recreate a new yxml element that is bound to that node.\n * You can detect that a node was moved because expectedId\n * !== actualId in the list\n ",
"start": 140,
"end": 608,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 17,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": " 1. Check if any of the nodes was deleted",
"start": 979,
"end": 1022,
"loc": {
"start": {
"line": 30,
"column": 2
},
"end": {
"line": 30,
"column": 45
}
}
},
{
"type": "CommentLine",
"value": " 2. iterate",
"start": 1151,
"end": 1164,
"loc": {
"start": {
"line": 36,
"column": 2
},
"end": {
"line": 36,
"column": 15
}
}
},
{
"type": "CommentLine",
"value": " should be ignored or is going to be deleted",
"start": 1531,
"end": 1577,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 54
}
}
},
{
"type": "CommentLine",
"value": " 2.3 Not expected node",
"start": 1690,
"end": 1714,
"loc": {
"start": {
"line": 51,
"column": 10
},
"end": {
"line": 51,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " child was moved from another parent",
"start": 1771,
"end": 1809,
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 50
}
}
},
{
"type": "CommentLine",
"value": " childType is going to be deleted by its previous parent",
"start": 1822,
"end": 1880,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 70
}
}
},
{
"type": "CommentLine",
"value": " child was moved to a different position.",
"start": 1986,
"end": 2029,
"loc": {
"start": {
"line": 57,
"column": 12
},
"end": {
"line": 57,
"column": 55
}
}
},
{
"type": "CommentLine",
"value": " Found expected node",
"start": 2183,
"end": 2205,
"loc": {
"start": {
"line": 62,
"column": 10
},
"end": {
"line": 62,
"column": 32
}
}
},
{
"type": "CommentLine",
"value": " 2.2 Fill _content with child nodes",
"start": 2349,
"end": 2386,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 45
}
}
},
{
"type": "CommentLine",
"value": " 2.1 A new node was found",
"start": 2493,
"end": 2520,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 33
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "YXmlHook",
"start": 7,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 16,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 20
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../../YXml/YXmlHook.js",
"start": 21,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 45
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 46,
"end": 52,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 53,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "iterateUntilUndeleted",
"start": 57,
"end": 78,
"loc": {
"start": {
"line": 3,
"column": 2
},
"end": {
"line": 3,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 78,
"end": 79,
"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": "removeAssociation",
"start": 82,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 2
},
"end": {
"line": 4,
"column": 19
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 99,
"end": 100,
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "insertNodeHelper",
"start": 103,
"end": 119,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 120,
"end": 121,
"loc": {
"start": {
"line": 5,
"column": 19
},
"end": {
"line": 5,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 122,
"end": 126,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./util.js",
"start": 127,
"end": 138,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 37
}
}
},
{
"type": "CommentBlock",
"value": "\n * 1. Check if any of the nodes was deleted\n * 2. Iterate over the children.\n * 2.1 If a node exists without _yxml property, insert a new node\n * 2.2 If _contents.length < dom.childNodes.length, fill the\n * rest of _content with childNodes\n * 2.3 If a node was moved, delete it and\n * recreate a new yxml element that is bound to that node.\n * You can detect that a node was moved because expectedId\n * !== actualId in the list\n ",
"start": 140,
"end": 608,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 17,
"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": 609,
"end": 615,
"loc": {
"start": {
"line": 18,
"column": 0
},
"end": {
"line": 18,
"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": 616,
"end": 623,
"loc": {
"start": {
"line": 18,
"column": 7
},
"end": {
"line": 18,
"column": 14
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 624,
"end": 632,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "applyChangesFromDom",
"start": 633,
"end": 652,
"loc": {
"start": {
"line": 18,
"column": 24
},
"end": {
"line": 18,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 653,
"end": 654,
"loc": {
"start": {
"line": 18,
"column": 44
},
"end": {
"line": 18,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dom",
"start": 654,
"end": 657,
"loc": {
"start": {
"line": 18,
"column": 45
},
"end": {
"line": 18,
"column": 48
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 657,
"end": 658,
"loc": {
"start": {
"line": 18,
"column": 48
},
"end": {
"line": 18,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 659,
"end": 663,
"loc": {
"start": {
"line": 18,
"column": 50
},
"end": {
"line": 18,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 663,
"end": 664,
"loc": {
"start": {
"line": 18,
"column": 54
},
"end": {
"line": 18,
"column": 55
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 665,
"end": 666,
"loc": {
"start": {
"line": 18,
"column": 56
},
"end": {
"line": 18,
"column": 57
}
}
},
{
"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": 669,
"end": 671,
"loc": {
"start": {
"line": 19,
"column": 2
},
"end": {
"line": 19,
"column": 4
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 672,
"end": 673,
"loc": {
"start": {
"line": 19,
"column": 5
},
"end": {
"line": 19,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 673,
"end": 677,
"loc": {
"start": {
"line": 19,
"column": 6
},
"end": {
"line": 19,
"column": 10
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "==",
"start": 678,
"end": 680,
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"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": 681,
"end": 685,
"loc": {
"start": {
"line": 19,
"column": 14
},
"end": {
"line": 19,
"column": 18
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 686,
"end": 688,
"loc": {
"start": {
"line": 19,
"column": 19
},
"end": {
"line": 19,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 689,
"end": 693,
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 26
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 694,
"end": 697,
"loc": {
"start": {
"line": 19,
"column": 27
},
"end": {
"line": 19,
"column": 30
}
}
},
{
"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": 698,
"end": 703,
"loc": {
"start": {
"line": 19,
"column": 31
},
"end": {
"line": 19,
"column": 36
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 704,
"end": 706,
"loc": {
"start": {
"line": 19,
"column": 37
},
"end": {
"line": 19,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 707,
"end": 711,
"loc": {
"start": {
"line": 19,
"column": 40
},
"end": {
"line": 19,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 711,
"end": 712,
"loc": {
"start": {
"line": 19,
"column": 44
},
"end": {
"line": 19,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 712,
"end": 723,
"loc": {
"start": {
"line": 19,
"column": 45
},
"end": {
"line": 19,
"column": 56
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 724,
"end": 727,
"loc": {
"start": {
"line": 19,
"column": 57
},
"end": {
"line": 19,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "YXmlHook",
"start": 728,
"end": 736,
"loc": {
"start": {
"line": 19,
"column": 61
},
"end": {
"line": 19,
"column": 69
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 736,
"end": 737,
"loc": {
"start": {
"line": 19,
"column": 69
},
"end": {
"line": 19,
"column": 70
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 738,
"end": 739,
"loc": {
"start": {
"line": 19,
"column": 71
},
"end": {
"line": 19,
"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": 744,
"end": 750,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 753,
"end": 754,
"loc": {
"start": {
"line": 21,
"column": 2
},
"end": {
"line": 21,
"column": 3
}
}
},
{
"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": 757,
"end": 762,
"loc": {
"start": {
"line": 22,
"column": 2
},
"end": {
"line": 22,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 763,
"end": 764,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 765,
"end": 766,
"loc": {
"start": {
"line": 22,
"column": 10
},
"end": {
"line": 22,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 767,
"end": 771,
"loc": {
"start": {
"line": 22,
"column": 12
},
"end": {
"line": 22,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 771,
"end": 772,
"loc": {
"start": {
"line": 22,
"column": 16
},
"end": {
"line": 22,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_y",
"start": 772,
"end": 774,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 19
}
}
},
{
"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": 777,
"end": 782,
"loc": {
"start": {
"line": 23,
"column": 2
},
"end": {
"line": 23,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "knownChildren",
"start": 783,
"end": 796,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 797,
"end": 798,
"loc": {
"start": {
"line": 23,
"column": 22
},
"end": {
"line": 23,
"column": 23
}
}
},
{
"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": 799,
"end": 802,
"loc": {
"start": {
"line": 23,
"column": 24
},
"end": {
"line": 23,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Set",
"start": 803,
"end": 806,
"loc": {
"start": {
"line": 23,
"column": 28
},
"end": {
"line": 23,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 806,
"end": 807,
"loc": {
"start": {
"line": 23,
"column": 31
},
"end": {
"line": 23,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 807,
"end": 808,
"loc": {
"start": {
"line": 23,
"column": 32
},
"end": {
"line": 23,
"column": 33
}
}
},
{
"type": {
"label": "for",
"keyword": "for",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "for",
"start": 811,
"end": 814,
"loc": {
"start": {
"line": 24,
"column": 2
},
"end": {
"line": 24,
"column": 5
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 815,
"end": 816,
"loc": {
"start": {
"line": 24,
"column": 6
},
"end": {
"line": 24,
"column": 7
}
}
},
{
"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": 816,
"end": 819,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "child",
"start": 820,
"end": 825,
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 24,
"column": 16
}
}
},
{
"type": {
"label": "in",
"keyword": "in",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "in",
"start": 826,
"end": 828,
"loc": {
"start": {
"line": 24,
"column": 17
},
"end": {
"line": 24,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dom",
"start": 829,
"end": 832,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 832,
"end": 833,
"loc": {
"start": {
"line": 24,
"column": 23
},
"end": {
"line": 24,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNodes",
"start": 833,
"end": 843,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 843,
"end": 844,
"loc": {
"start": {
"line": 24,
"column": 34
},
"end": {
"line": 24,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 845,
"end": 846,
"loc": {
"start": {
"line": 24,
"column": 36
},
"end": {
"line": 24,
"column": 37
}
}
},
{
"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": 851,
"end": 856,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 857,
"end": 861,
"loc": {
"start": {
"line": 25,
"column": 10
},
"end": {
"line": 25,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 862,
"end": 863,
"loc": {
"start": {
"line": 25,
"column": 15
},
"end": {
"line": 25,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "knownChildren",
"start": 864,
"end": 877,
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 30
}
}
},
{
"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": 25,
"column": 30
},
"end": {
"line": 25,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "get",
"start": 878,
"end": 881,
"loc": {
"start": {
"line": 25,
"column": 31
},
"end": {
"line": 25,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 881,
"end": 882,
"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": "child",
"start": 882,
"end": 887,
"loc": {
"start": {
"line": 25,
"column": 35
},
"end": {
"line": 25,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 887,
"end": 888,
"loc": {
"start": {
"line": 25,
"column": 40
},
"end": {
"line": 25,
"column": 41
}
}
},
{
"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": 893,
"end": 895,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 896,
"end": 897,
"loc": {
"start": {
"line": 26,
"column": 7
},
"end": {
"line": 26,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 897,
"end": 901,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 12
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 902,
"end": 905,
"loc": {
"start": {
"line": 26,
"column": 13
},
"end": {
"line": 26,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "undefined",
"start": 906,
"end": 915,
"loc": {
"start": {
"line": 26,
"column": 17
},
"end": {
"line": 26,
"column": 26
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 916,
"end": 918,
"loc": {
"start": {
"line": 26,
"column": 27
},
"end": {
"line": 26,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 919,
"end": 923,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 34
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 924,
"end": 927,
"loc": {
"start": {
"line": 26,
"column": 35
},
"end": {
"line": 26,
"column": 38
}
}
},
{
"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": 928,
"end": 933,
"loc": {
"start": {
"line": 26,
"column": 39
},
"end": {
"line": 26,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 933,
"end": 934,
"loc": {
"start": {
"line": 26,
"column": 44
},
"end": {
"line": 26,
"column": 45
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 935,
"end": 936,
"loc": {
"start": {
"line": 26,
"column": 46
},
"end": {
"line": 26,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "knownChildren",
"start": 943,
"end": 956,
"loc": {
"start": {
"line": 27,
"column": 6
},
"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": 956,
"end": 957,
"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": "add",
"start": 957,
"end": 960,
"loc": {
"start": {
"line": 27,
"column": 20
},
"end": {
"line": 27,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 960,
"end": 961,
"loc": {
"start": {
"line": 27,
"column": 23
},
"end": {
"line": 27,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 961,
"end": 965,
"loc": {
"start": {
"line": 27,
"column": 24
},
"end": {
"line": 27,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 965,
"end": 966,
"loc": {
"start": {
"line": 27,
"column": 28
},
"end": {
"line": 27,
"column": 29
}
}
},
{
"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": 28,
"column": 4
},
"end": {
"line": 28,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 975,
"end": 976,
"loc": {
"start": {
"line": 29,
"column": 2
},
"end": {
"line": 29,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": " 1. Check if any of the nodes was deleted",
"start": 979,
"end": 1022,
"loc": {
"start": {
"line": 30,
"column": 2
},
"end": {
"line": 30,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 1025,
"end": 1029,
"loc": {
"start": {
"line": 31,
"column": 2
},
"end": {
"line": 31,
"column": 6
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1029,
"end": 1030,
"loc": {
"start": {
"line": 31,
"column": 6
},
"end": {
"line": 31,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "forEach",
"start": 1030,
"end": 1037,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 31,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1037,
"end": 1038,
"loc": {
"start": {
"line": 31,
"column": 14
},
"end": {
"line": 31,
"column": 15
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 1038,
"end": 1046,
"loc": {
"start": {
"line": 31,
"column": 15
},
"end": {
"line": 31,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1047,
"end": 1048,
"loc": {
"start": {
"line": 31,
"column": 24
},
"end": {
"line": 31,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1048,
"end": 1057,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1057,
"end": 1058,
"loc": {
"start": {
"line": 31,
"column": 34
},
"end": {
"line": 31,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1059,
"end": 1060,
"loc": {
"start": {
"line": 31,
"column": 36
},
"end": {
"line": 31,
"column": 37
}
}
},
{
"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": 1065,
"end": 1067,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1068,
"end": 1069,
"loc": {
"start": {
"line": 32,
"column": 7
},
"end": {
"line": 32,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "knownChildren",
"start": 1069,
"end": 1082,
"loc": {
"start": {
"line": 32,
"column": 8
},
"end": {
"line": 32,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1082,
"end": 1083,
"loc": {
"start": {
"line": 32,
"column": 21
},
"end": {
"line": 32,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "has",
"start": 1083,
"end": 1086,
"loc": {
"start": {
"line": 32,
"column": 22
},
"end": {
"line": 32,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1086,
"end": 1087,
"loc": {
"start": {
"line": 32,
"column": 25
},
"end": {
"line": 32,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1087,
"end": 1096,
"loc": {
"start": {
"line": 32,
"column": 26
},
"end": {
"line": 32,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1096,
"end": 1097,
"loc": {
"start": {
"line": 32,
"column": 35
},
"end": {
"line": 32,
"column": 36
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 1098,
"end": 1101,
"loc": {
"start": {
"line": 32,
"column": 37
},
"end": {
"line": 32,
"column": 40
}
}
},
{
"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": 1102,
"end": 1107,
"loc": {
"start": {
"line": 32,
"column": 41
},
"end": {
"line": 32,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1107,
"end": 1108,
"loc": {
"start": {
"line": 32,
"column": 46
},
"end": {
"line": 32,
"column": 47
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1109,
"end": 1110,
"loc": {
"start": {
"line": 32,
"column": 48
},
"end": {
"line": 32,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1117,
"end": 1126,
"loc": {
"start": {
"line": 33,
"column": 6
},
"end": {
"line": 33,
"column": 15
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1126,
"end": 1127,
"loc": {
"start": {
"line": 33,
"column": 15
},
"end": {
"line": 33,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_delete",
"start": 1127,
"end": 1134,
"loc": {
"start": {
"line": 33,
"column": 16
},
"end": {
"line": 33,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1134,
"end": 1135,
"loc": {
"start": {
"line": 33,
"column": 23
},
"end": {
"line": 33,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1135,
"end": 1136,
"loc": {
"start": {
"line": 33,
"column": 24
},
"end": {
"line": 33,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1136,
"end": 1137,
"loc": {
"start": {
"line": 33,
"column": 25
},
"end": {
"line": 33,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1142,
"end": 1143,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 34,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1146,
"end": 1147,
"loc": {
"start": {
"line": 35,
"column": 2
},
"end": {
"line": 35,
"column": 3
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1147,
"end": 1148,
"loc": {
"start": {
"line": 35,
"column": 3
},
"end": {
"line": 35,
"column": 4
}
}
},
{
"type": "CommentLine",
"value": " 2. iterate",
"start": 1151,
"end": 1164,
"loc": {
"start": {
"line": 36,
"column": 2
},
"end": {
"line": 36,
"column": 15
}
}
},
{
"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": 1167,
"end": 1172,
"loc": {
"start": {
"line": 37,
"column": 2
},
"end": {
"line": 37,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNodes",
"start": 1173,
"end": 1183,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1184,
"end": 1185,
"loc": {
"start": {
"line": 37,
"column": 19
},
"end": {
"line": 37,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dom",
"start": 1186,
"end": 1189,
"loc": {
"start": {
"line": 37,
"column": 21
},
"end": {
"line": 37,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1189,
"end": 1190,
"loc": {
"start": {
"line": 37,
"column": 24
},
"end": {
"line": 37,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNodes",
"start": 1190,
"end": 1200,
"loc": {
"start": {
"line": 37,
"column": 25
},
"end": {
"line": 37,
"column": 35
}
}
},
{
"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": 1203,
"end": 1208,
"loc": {
"start": {
"line": 38,
"column": 2
},
"end": {
"line": 38,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "len",
"start": 1209,
"end": 1212,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1213,
"end": 1214,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNodes",
"start": 1215,
"end": 1225,
"loc": {
"start": {
"line": 38,
"column": 14
},
"end": {
"line": 38,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1225,
"end": 1226,
"loc": {
"start": {
"line": 38,
"column": 24
},
"end": {
"line": 38,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 1226,
"end": 1232,
"loc": {
"start": {
"line": 38,
"column": 25
},
"end": {
"line": 38,
"column": 31
}
}
},
{
"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": 1235,
"end": 1238,
"loc": {
"start": {
"line": 39,
"column": 2
},
"end": {
"line": 39,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 1239,
"end": 1255,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 39,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1256,
"end": 1257,
"loc": {
"start": {
"line": 39,
"column": 23
},
"end": {
"line": 39,
"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": 1258,
"end": 1262,
"loc": {
"start": {
"line": 39,
"column": 25
},
"end": {
"line": 39,
"column": 29
}
}
},
{
"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": 1265,
"end": 1268,
"loc": {
"start": {
"line": 40,
"column": 2
},
"end": {
"line": 40,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "expectedType",
"start": 1269,
"end": 1281,
"loc": {
"start": {
"line": 40,
"column": 6
},
"end": {
"line": 40,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1282,
"end": 1283,
"loc": {
"start": {
"line": 40,
"column": 19
},
"end": {
"line": 40,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "iterateUntilUndeleted",
"start": 1284,
"end": 1305,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 42
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1305,
"end": 1306,
"loc": {
"start": {
"line": 40,
"column": 42
},
"end": {
"line": 40,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 1306,
"end": 1310,
"loc": {
"start": {
"line": 40,
"column": 43
},
"end": {
"line": 40,
"column": 47
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1310,
"end": 1311,
"loc": {
"start": {
"line": 40,
"column": 47
},
"end": {
"line": 40,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_start",
"start": 1311,
"end": 1317,
"loc": {
"start": {
"line": 40,
"column": 48
},
"end": {
"line": 40,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1317,
"end": 1318,
"loc": {
"start": {
"line": 40,
"column": 54
},
"end": {
"line": 40,
"column": 55
}
}
},
{
"type": {
"label": "for",
"keyword": "for",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": true,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "for",
"start": 1321,
"end": 1324,
"loc": {
"start": {
"line": 41,
"column": 2
},
"end": {
"line": 41,
"column": 5
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1325,
"end": 1326,
"loc": {
"start": {
"line": 41,
"column": 6
},
"end": {
"line": 41,
"column": 7
}
}
},
{
"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": 1326,
"end": 1329,
"loc": {
"start": {
"line": 41,
"column": 7
},
"end": {
"line": 41,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "domCnt",
"start": 1330,
"end": 1336,
"loc": {
"start": {
"line": 41,
"column": 11
},
"end": {
"line": 41,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1337,
"end": 1338,
"loc": {
"start": {
"line": 41,
"column": 18
},
"end": {
"line": 41,
"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": 1339,
"end": 1340,
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1340,
"end": 1341,
"loc": {
"start": {
"line": 41,
"column": 21
},
"end": {
"line": 41,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "domCnt",
"start": 1342,
"end": 1348,
"loc": {
"start": {
"line": 41,
"column": 23
},
"end": {
"line": 41,
"column": 29
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 1349,
"end": 1350,
"loc": {
"start": {
"line": 41,
"column": 30
},
"end": {
"line": 41,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "len",
"start": 1351,
"end": 1354,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1354,
"end": 1355,
"loc": {
"start": {
"line": 41,
"column": 35
},
"end": {
"line": 41,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "domCnt",
"start": 1356,
"end": 1362,
"loc": {
"start": {
"line": 41,
"column": 37
},
"end": {
"line": 41,
"column": 43
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 1362,
"end": 1364,
"loc": {
"start": {
"line": 41,
"column": 43
},
"end": {
"line": 41,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1364,
"end": 1365,
"loc": {
"start": {
"line": 41,
"column": 45
},
"end": {
"line": 41,
"column": 46
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1366,
"end": 1367,
"loc": {
"start": {
"line": 41,
"column": 47
},
"end": {
"line": 41,
"column": 48
}
}
},
{
"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": 1372,
"end": 1377,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNode",
"start": 1378,
"end": 1387,
"loc": {
"start": {
"line": 42,
"column": 10
},
"end": {
"line": 42,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1388,
"end": 1389,
"loc": {
"start": {
"line": 42,
"column": 20
},
"end": {
"line": 42,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNodes",
"start": 1390,
"end": 1400,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 32
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1400,
"end": 1401,
"loc": {
"start": {
"line": 42,
"column": 32
},
"end": {
"line": 42,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "domCnt",
"start": 1401,
"end": 1407,
"loc": {
"start": {
"line": 42,
"column": 33
},
"end": {
"line": 42,
"column": 39
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1407,
"end": 1408,
"loc": {
"start": {
"line": 42,
"column": 39
},
"end": {
"line": 42,
"column": 40
}
}
},
{
"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": 1413,
"end": 1418,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 43,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1419,
"end": 1428,
"loc": {
"start": {
"line": 43,
"column": 10
},
"end": {
"line": 43,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1429,
"end": 1430,
"loc": {
"start": {
"line": 43,
"column": 20
},
"end": {
"line": 43,
"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": 1431,
"end": 1435,
"loc": {
"start": {
"line": 43,
"column": 22
},
"end": {
"line": 43,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1435,
"end": 1436,
"loc": {
"start": {
"line": 43,
"column": 26
},
"end": {
"line": 43,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "domToYXml",
"start": 1436,
"end": 1445,
"loc": {
"start": {
"line": 43,
"column": 27
},
"end": {
"line": 43,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1445,
"end": 1446,
"loc": {
"start": {
"line": 43,
"column": 36
},
"end": {
"line": 43,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "get",
"start": 1446,
"end": 1449,
"loc": {
"start": {
"line": 43,
"column": 37
},
"end": {
"line": 43,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1449,
"end": 1450,
"loc": {
"start": {
"line": 43,
"column": 40
},
"end": {
"line": 43,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNode",
"start": 1450,
"end": 1459,
"loc": {
"start": {
"line": 43,
"column": 41
},
"end": {
"line": 43,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1459,
"end": 1460,
"loc": {
"start": {
"line": 43,
"column": 50
},
"end": {
"line": 43,
"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": 1465,
"end": 1467,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1468,
"end": 1469,
"loc": {
"start": {
"line": 44,
"column": 7
},
"end": {
"line": 44,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1469,
"end": 1478,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 17
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!=",
"start": 1479,
"end": 1481,
"loc": {
"start": {
"line": 44,
"column": 18
},
"end": {
"line": 44,
"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": 1482,
"end": 1486,
"loc": {
"start": {
"line": 44,
"column": 21
},
"end": {
"line": 44,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1486,
"end": 1487,
"loc": {
"start": {
"line": 44,
"column": 25
},
"end": {
"line": 44,
"column": 26
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1488,
"end": 1489,
"loc": {
"start": {
"line": 44,
"column": 27
},
"end": {
"line": 44,
"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": 1496,
"end": 1498,
"loc": {
"start": {
"line": 45,
"column": 6
},
"end": {
"line": 45,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1499,
"end": 1500,
"loc": {
"start": {
"line": 45,
"column": 9
},
"end": {
"line": 45,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1500,
"end": 1509,
"loc": {
"start": {
"line": 45,
"column": 10
},
"end": {
"line": 45,
"column": 19
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 1510,
"end": 1513,
"loc": {
"start": {
"line": 45,
"column": 20
},
"end": {
"line": 45,
"column": 23
}
}
},
{
"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": 1514,
"end": 1519,
"loc": {
"start": {
"line": 45,
"column": 24
},
"end": {
"line": 45,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1519,
"end": 1520,
"loc": {
"start": {
"line": 45,
"column": 29
},
"end": {
"line": 45,
"column": 30
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1521,
"end": 1522,
"loc": {
"start": {
"line": 45,
"column": 31
},
"end": {
"line": 45,
"column": 32
}
}
},
{
"type": "CommentLine",
"value": " should be ignored or is going to be deleted",
"start": 1531,
"end": 1577,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 54
}
}
},
{
"type": {
"label": "continue",
"keyword": "continue",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "continue",
"start": 1586,
"end": 1594,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 16
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1601,
"end": 1602,
"loc": {
"start": {
"line": 48,
"column": 6
},
"end": {
"line": 48,
"column": 7
}
}
},
{
"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": 1609,
"end": 1611,
"loc": {
"start": {
"line": 49,
"column": 6
},
"end": {
"line": 49,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1612,
"end": 1613,
"loc": {
"start": {
"line": 49,
"column": 9
},
"end": {
"line": 49,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "expectedType",
"start": 1613,
"end": 1625,
"loc": {
"start": {
"line": 49,
"column": 10
},
"end": {
"line": 49,
"column": 22
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1626,
"end": 1629,
"loc": {
"start": {
"line": 49,
"column": 23
},
"end": {
"line": 49,
"column": 26
}
}
},
{
"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": 1630,
"end": 1634,
"loc": {
"start": {
"line": 49,
"column": 27
},
"end": {
"line": 49,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1634,
"end": 1635,
"loc": {
"start": {
"line": 49,
"column": 31
},
"end": {
"line": 49,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1636,
"end": 1637,
"loc": {
"start": {
"line": 49,
"column": 33
},
"end": {
"line": 49,
"column": 34
}
}
},
{
"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": 1646,
"end": 1648,
"loc": {
"start": {
"line": 50,
"column": 8
},
"end": {
"line": 50,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1649,
"end": 1650,
"loc": {
"start": {
"line": 50,
"column": 11
},
"end": {
"line": 50,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "expectedType",
"start": 1650,
"end": 1662,
"loc": {
"start": {
"line": 50,
"column": 12
},
"end": {
"line": 50,
"column": 24
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1663,
"end": 1666,
"loc": {
"start": {
"line": 50,
"column": 25
},
"end": {
"line": 50,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1667,
"end": 1676,
"loc": {
"start": {
"line": 50,
"column": 29
},
"end": {
"line": 50,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1676,
"end": 1677,
"loc": {
"start": {
"line": 50,
"column": 38
},
"end": {
"line": 50,
"column": 39
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1678,
"end": 1679,
"loc": {
"start": {
"line": 50,
"column": 40
},
"end": {
"line": 50,
"column": 41
}
}
},
{
"type": "CommentLine",
"value": " 2.3 Not expected node",
"start": 1690,
"end": 1714,
"loc": {
"start": {
"line": 51,
"column": 10
},
"end": {
"line": 51,
"column": 34
}
}
},
{
"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": 1725,
"end": 1727,
"loc": {
"start": {
"line": 52,
"column": 10
},
"end": {
"line": 52,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1728,
"end": 1729,
"loc": {
"start": {
"line": 52,
"column": 13
},
"end": {
"line": 52,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 1729,
"end": 1738,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1738,
"end": 1739,
"loc": {
"start": {
"line": 52,
"column": 23
},
"end": {
"line": 52,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_parent",
"start": 1739,
"end": 1746,
"loc": {
"start": {
"line": 52,
"column": 24
},
"end": {
"line": 52,
"column": 31
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 1747,
"end": 1750,
"loc": {
"start": {
"line": 52,
"column": 32
},
"end": {
"line": 52,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 1751,
"end": 1755,
"loc": {
"start": {
"line": 52,
"column": 36
},
"end": {
"line": 52,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1755,
"end": 1756,
"loc": {
"start": {
"line": 52,
"column": 40
},
"end": {
"line": 52,
"column": 41
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1757,
"end": 1758,
"loc": {
"start": {
"line": 52,
"column": 42
},
"end": {
"line": 52,
"column": 43
}
}
},
{
"type": "CommentLine",
"value": " child was moved from another parent",
"start": 1771,
"end": 1809,
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 50
}
}
},
{
"type": "CommentLine",
"value": " childType is going to be deleted by its previous parent",
"start": 1822,
"end": 1880,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 70
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeAssociation",
"start": 1893,
"end": 1910,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1910,
"end": 1911,
"loc": {
"start": {
"line": 55,
"column": 29
},
"end": {
"line": 55,
"column": 30
}
}
},
{
"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": 1911,
"end": 1915,
"loc": {
"start": {
"line": 55,
"column": 30
},
"end": {
"line": 55,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1915,
"end": 1916,
"loc": {
"start": {
"line": 55,
"column": 34
},
"end": {
"line": 55,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNode",
"start": 1917,
"end": 1926,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1926,
"end": 1927,
"loc": {
"start": {
"line": 55,
"column": 45
},
"end": {
"line": 55,
"column": 46
}
}
},
{
"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": 1928,
"end": 1932,
"loc": {
"start": {
"line": 55,
"column": 47
},
"end": {
"line": 55,
"column": 51
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1932,
"end": 1933,
"loc": {
"start": {
"line": 55,
"column": 51
},
"end": {
"line": 55,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "domToYXml",
"start": 1933,
"end": 1942,
"loc": {
"start": {
"line": 55,
"column": 52
},
"end": {
"line": 55,
"column": 61
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1942,
"end": 1943,
"loc": {
"start": {
"line": 55,
"column": 61
},
"end": {
"line": 55,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNode",
"start": 1943,
"end": 1952,
"loc": {
"start": {
"line": 55,
"column": 62
},
"end": {
"line": 55,
"column": 71
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1952,
"end": 1953,
"loc": {
"start": {
"line": 55,
"column": 71
},
"end": {
"line": 55,
"column": 72
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1953,
"end": 1954,
"loc": {
"start": {
"line": 55,
"column": 72
},
"end": {
"line": 55,
"column": 73
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1965,
"end": 1966,
"loc": {
"start": {
"line": 56,
"column": 10
},
"end": {
"line": 56,
"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": 1967,
"end": 1971,
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1972,
"end": 1973,
"loc": {
"start": {
"line": 56,
"column": 17
},
"end": {
"line": 56,
"column": 18
}
}
},
{
"type": "CommentLine",
"value": " child was moved to a different position.",
"start": 1986,
"end": 2029,
"loc": {
"start": {
"line": 57,
"column": 12
},
"end": {
"line": 57,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childType",
"start": 2042,
"end": 2051,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 21
}
}
},
{
"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": 58,
"column": 21
},
"end": {
"line": 58,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_delete",
"start": 2052,
"end": 2059,
"loc": {
"start": {
"line": 58,
"column": 22
},
"end": {
"line": 58,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2059,
"end": 2060,
"loc": {
"start": {
"line": 58,
"column": 29
},
"end": {
"line": 58,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2060,
"end": 2061,
"loc": {
"start": {
"line": 58,
"column": 30
},
"end": {
"line": 58,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2061,
"end": 2062,
"loc": {
"start": {
"line": 58,
"column": 31
},
"end": {
"line": 58,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2073,
"end": 2074,
"loc": {
"start": {
"line": 59,
"column": 10
},
"end": {
"line": 59,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 2085,
"end": 2101,
"loc": {
"start": {
"line": 60,
"column": 10
},
"end": {
"line": 60,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2102,
"end": 2103,
"loc": {
"start": {
"line": 60,
"column": 27
},
"end": {
"line": 60,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "insertNodeHelper",
"start": 2104,
"end": 2120,
"loc": {
"start": {
"line": 60,
"column": 29
},
"end": {
"line": 60,
"column": 45
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2120,
"end": 2121,
"loc": {
"start": {
"line": 60,
"column": 45
},
"end": {
"line": 60,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 2121,
"end": 2125,
"loc": {
"start": {
"line": 60,
"column": 46
},
"end": {
"line": 60,
"column": 50
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2125,
"end": 2126,
"loc": {
"start": {
"line": 60,
"column": 50
},
"end": {
"line": 60,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 2127,
"end": 2143,
"loc": {
"start": {
"line": 60,
"column": 52
},
"end": {
"line": 60,
"column": 68
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2143,
"end": 2144,
"loc": {
"start": {
"line": 60,
"column": 68
},
"end": {
"line": 60,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNode",
"start": 2145,
"end": 2154,
"loc": {
"start": {
"line": 60,
"column": 70
},
"end": {
"line": 60,
"column": 79
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2154,
"end": 2155,
"loc": {
"start": {
"line": 60,
"column": 79
},
"end": {
"line": 60,
"column": 80
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2164,
"end": 2165,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"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": 2166,
"end": 2170,
"loc": {
"start": {
"line": 61,
"column": 10
},
"end": {
"line": 61,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2171,
"end": 2172,
"loc": {
"start": {
"line": 61,
"column": 15
},
"end": {
"line": 61,
"column": 16
}
}
},
{
"type": "CommentLine",
"value": " Found expected node",
"start": 2183,
"end": 2205,
"loc": {
"start": {
"line": 62,
"column": 10
},
"end": {
"line": 62,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 2216,
"end": 2232,
"loc": {
"start": {
"line": 63,
"column": 10
},
"end": {
"line": 63,
"column": 26
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2233,
"end": 2234,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "expectedType",
"start": 2235,
"end": 2247,
"loc": {
"start": {
"line": 63,
"column": 29
},
"end": {
"line": 63,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "expectedType",
"start": 2258,
"end": 2270,
"loc": {
"start": {
"line": 64,
"column": 10
},
"end": {
"line": 64,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2271,
"end": 2272,
"loc": {
"start": {
"line": 64,
"column": 23
},
"end": {
"line": 64,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "iterateUntilUndeleted",
"start": 2273,
"end": 2294,
"loc": {
"start": {
"line": 64,
"column": 25
},
"end": {
"line": 64,
"column": 46
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2294,
"end": 2295,
"loc": {
"start": {
"line": 64,
"column": 46
},
"end": {
"line": 64,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "expectedType",
"start": 2295,
"end": 2307,
"loc": {
"start": {
"line": 64,
"column": 47
},
"end": {
"line": 64,
"column": 59
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2307,
"end": 2308,
"loc": {
"start": {
"line": 64,
"column": 59
},
"end": {
"line": 64,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "_right",
"start": 2308,
"end": 2314,
"loc": {
"start": {
"line": 64,
"column": 60
},
"end": {
"line": 64,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2314,
"end": 2315,
"loc": {
"start": {
"line": 64,
"column": 66
},
"end": {
"line": 64,
"column": 67
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2324,
"end": 2325,
"loc": {
"start": {
"line": 65,
"column": 8
},
"end": {
"line": 65,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2332,
"end": 2333,
"loc": {
"start": {
"line": 66,
"column": 6
},
"end": {
"line": 66,
"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": 2334,
"end": 2338,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2339,
"end": 2340,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": " 2.2 Fill _content with child nodes",
"start": 2349,
"end": 2386,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 2395,
"end": 2411,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2412,
"end": 2413,
"loc": {
"start": {
"line": 68,
"column": 25
},
"end": {
"line": 68,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "insertNodeHelper",
"start": 2414,
"end": 2430,
"loc": {
"start": {
"line": 68,
"column": 27
},
"end": {
"line": 68,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2430,
"end": 2431,
"loc": {
"start": {
"line": 68,
"column": 43
},
"end": {
"line": 68,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 2431,
"end": 2435,
"loc": {
"start": {
"line": 68,
"column": 44
},
"end": {
"line": 68,
"column": 48
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2435,
"end": 2436,
"loc": {
"start": {
"line": 68,
"column": 48
},
"end": {
"line": 68,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 2437,
"end": 2453,
"loc": {
"start": {
"line": 68,
"column": 50
},
"end": {
"line": 68,
"column": 66
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2453,
"end": 2454,
"loc": {
"start": {
"line": 68,
"column": 66
},
"end": {
"line": 68,
"column": 67
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNode",
"start": 2455,
"end": 2464,
"loc": {
"start": {
"line": 68,
"column": 68
},
"end": {
"line": 68,
"column": 77
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2464,
"end": 2465,
"loc": {
"start": {
"line": 68,
"column": 77
},
"end": {
"line": 68,
"column": 78
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2472,
"end": 2473,
"loc": {
"start": {
"line": 69,
"column": 6
},
"end": {
"line": 69,
"column": 7
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2478,
"end": 2479,
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 70,
"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": 2480,
"end": 2484,
"loc": {
"start": {
"line": 70,
"column": 6
},
"end": {
"line": 70,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2485,
"end": 2486,
"loc": {
"start": {
"line": 70,
"column": 11
},
"end": {
"line": 70,
"column": 12
}
}
},
{
"type": "CommentLine",
"value": " 2.1 A new node was found",
"start": 2493,
"end": 2520,
"loc": {
"start": {
"line": 71,
"column": 6
},
"end": {
"line": 71,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 2527,
"end": 2543,
"loc": {
"start": {
"line": 72,
"column": 6
},
"end": {
"line": 72,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2544,
"end": 2545,
"loc": {
"start": {
"line": 72,
"column": 23
},
"end": {
"line": 72,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "insertNodeHelper",
"start": 2546,
"end": 2562,
"loc": {
"start": {
"line": 72,
"column": 25
},
"end": {
"line": 72,
"column": 41
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2562,
"end": 2563,
"loc": {
"start": {
"line": 72,
"column": 41
},
"end": {
"line": 72,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "yxml",
"start": 2563,
"end": 2567,
"loc": {
"start": {
"line": 72,
"column": 42
},
"end": {
"line": 72,
"column": 46
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2567,
"end": 2568,
"loc": {
"start": {
"line": 72,
"column": 46
},
"end": {
"line": 72,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prevExpectedType",
"start": 2569,
"end": 2585,
"loc": {
"start": {
"line": 72,
"column": 48
},
"end": {
"line": 72,
"column": 64
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2585,
"end": 2586,
"loc": {
"start": {
"line": 72,
"column": 64
},
"end": {
"line": 72,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNode",
"start": 2587,
"end": 2596,
"loc": {
"start": {
"line": 72,
"column": 66
},
"end": {
"line": 72,
"column": 75
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2596,
"end": 2597,
"loc": {
"start": {
"line": 72,
"column": 75
},
"end": {
"line": 72,
"column": 76
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2602,
"end": 2603,
"loc": {
"start": {
"line": 73,
"column": 4
},
"end": {
"line": 73,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2606,
"end": 2607,
"loc": {
"start": {
"line": 74,
"column": 2
},
"end": {
"line": 74,
"column": 3
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2608,
"end": 2609,
"loc": {
"start": {
"line": 75,
"column": 0
},
"end": {
"line": 75,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2610,
"end": 2610,
"loc": {
"start": {
"line": 76,
"column": 0
},
"end": {
"line": 76,
"column": 0
}
}
}
]
}