1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-03 06:22:34 +02:00
TableFilter/docs/ast/source/dom.js.json
koalyptus 4481fbe361 publish Docs to gh-pages (auto)
branch:       master
SHA:          c7d6de72f7
range SHA:    81f31a3106fb...c7d6de72f785
build id:     375208741
build number: 1103
2018-05-05 08:21:30 +00:00

28465 lines
713 KiB
JSON

{
"type": "File",
"start": 0,
"end": 4877,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 193,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4877,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 193,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 28
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
}
},
"imported": {
"type": "Identifier",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
},
"identifierName": "root"
},
"name": "root"
},
"local": {
"type": "Identifier",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
},
"identifierName": "root"
},
"name": "root"
}
}
],
"source": {
"type": "StringLiteral",
"start": 19,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 27
}
},
"extra": {
"rawValue": "./root",
"raw": "'./root'"
},
"value": "./root"
}
},
{
"type": "ImportDeclaration",
"start": 29,
"end": 80,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 51
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 37,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 15
}
},
"imported": {
"type": "Identifier",
"start": 37,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 15
},
"identifierName": "isArray"
},
"name": "isArray"
},
"local": {
"type": "Identifier",
"start": 37,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 15
},
"identifierName": "isArray"
},
"name": "isArray"
}
},
{
"type": "ImportSpecifier",
"start": 46,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 25
}
},
"imported": {
"type": "Identifier",
"start": 46,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 25
},
"identifierName": "isString"
},
"name": "isString"
},
"local": {
"type": "Identifier",
"start": 46,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 25
},
"identifierName": "isString"
},
"name": "isString"
}
},
{
"type": "ImportSpecifier",
"start": 56,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 34
}
},
"imported": {
"type": "Identifier",
"start": 56,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 34
},
"identifierName": "isUndef"
},
"name": "isUndef"
},
"local": {
"type": "Identifier",
"start": 56,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 34
},
"identifierName": "isUndef"
},
"name": "isUndef"
}
}
],
"source": {
"type": "StringLiteral",
"start": 70,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 41
},
"end": {
"line": 2,
"column": 50
}
},
"extra": {
"rawValue": "./types",
"raw": "'./types'"
},
"value": "./types"
}
},
{
"type": "ImportDeclaration",
"start": 81,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 30
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 89,
"end": 93,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 12
}
},
"imported": {
"type": "Identifier",
"start": 89,
"end": 93,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 12
},
"identifierName": "trim"
},
"name": "trim"
},
"local": {
"type": "Identifier",
"start": 89,
"end": 93,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 12
},
"identifierName": "trim"
},
"name": "trim"
}
}
],
"source": {
"type": "StringLiteral",
"start": 100,
"end": 110,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 29
}
},
"extra": {
"rawValue": "./string",
"raw": "'./string'"
},
"value": "./string"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * DOM utilities\n ",
"start": 113,
"end": 137,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 139,
"end": 165,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 26
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 145,
"end": 164,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 145,
"end": 148,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 9
},
"identifierName": "doc"
},
"name": "doc",
"leadingComments": null
},
"init": {
"type": "MemberExpression",
"start": 151,
"end": 164,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 151,
"end": 155,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 16
},
"identifierName": "root"
},
"name": "root"
},
"property": {
"type": "Identifier",
"start": 156,
"end": 164,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 25
},
"identifierName": "document"
},
"name": "document"
},
"computed": false
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * DOM utilities\n ",
"start": 113,
"end": 137,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n ",
"start": 167,
"end": 273,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 274,
"end": 426,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 21,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 281,
"end": 426,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 21,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 287,
"end": 425,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 21,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 287,
"end": 294,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "getText"
},
"name": "getText",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 297,
"end": 425,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 21,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 287,
"end": 294,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "getText"
},
"name": "getText",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 298,
"end": 302,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 28
},
"identifierName": "node"
},
"name": "node"
}
],
"body": {
"type": "BlockStatement",
"start": 307,
"end": 425,
"loc": {
"start": {
"line": 16,
"column": 33
},
"end": {
"line": 21,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 313,
"end": 388,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 19,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 317,
"end": 342,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 33
}
},
"callee": {
"type": "Identifier",
"start": 317,
"end": 324,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 15
},
"identifierName": "isUndef"
},
"name": "isUndef"
},
"arguments": [
{
"type": "MemberExpression",
"start": 325,
"end": 341,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 325,
"end": 329,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 20
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 330,
"end": 341,
"loc": {
"start": {
"line": 17,
"column": 21
},
"end": {
"line": 17,
"column": 32
},
"identifierName": "textContent"
},
"name": "textContent"
},
"computed": false
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 344,
"end": 388,
"loc": {
"start": {
"line": 17,
"column": 35
},
"end": {
"line": 19,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 354,
"end": 382,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 36
}
},
"argument": {
"type": "CallExpression",
"start": 361,
"end": 381,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 35
}
},
"callee": {
"type": "Identifier",
"start": 361,
"end": 365,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 19
},
"identifierName": "trim"
},
"name": "trim"
},
"arguments": [
{
"type": "MemberExpression",
"start": 366,
"end": 380,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 366,
"end": 370,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 24
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 371,
"end": 380,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 34
},
"identifierName": "innerText"
},
"name": "innerText"
},
"computed": false
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 393,
"end": 423,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 34
}
},
"argument": {
"type": "CallExpression",
"start": 400,
"end": 422,
"loc": {
"start": {
"line": 20,
"column": 11
},
"end": {
"line": 20,
"column": 33
}
},
"callee": {
"type": "Identifier",
"start": 400,
"end": 404,
"loc": {
"start": {
"line": 20,
"column": 11
},
"end": {
"line": 20,
"column": 15
},
"identifierName": "trim"
},
"name": "trim"
},
"arguments": [
{
"type": "MemberExpression",
"start": 405,
"end": 421,
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 20,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 405,
"end": 409,
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 20,
"column": 20
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 410,
"end": 421,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 32
},
"identifierName": "textContent"
},
"name": "textContent"
},
"computed": false
}
]
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n ",
"start": 167,
"end": 273,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n ",
"start": 428,
"end": 552,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n ",
"start": 167,
"end": 273,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n ",
"start": 428,
"end": 552,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 553,
"end": 765,
"loc": {
"start": {
"line": 28,
"column": 0
},
"end": {
"line": 35,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 560,
"end": 765,
"loc": {
"start": {
"line": 28,
"column": 7
},
"end": {
"line": 35,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 566,
"end": 764,
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 35,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 566,
"end": 582,
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 28,
"column": 29
},
"identifierName": "getFirstTextNode"
},
"name": "getFirstTextNode",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 585,
"end": 764,
"loc": {
"start": {
"line": 28,
"column": 32
},
"end": {
"line": 35,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 566,
"end": 582,
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 28,
"column": 29
},
"identifierName": "getFirstTextNode"
},
"name": "getFirstTextNode",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 586,
"end": 590,
"loc": {
"start": {
"line": 28,
"column": 33
},
"end": {
"line": 28,
"column": 37
},
"identifierName": "node"
},
"name": "node"
}
],
"body": {
"type": "BlockStatement",
"start": 595,
"end": 764,
"loc": {
"start": {
"line": 28,
"column": 42
},
"end": {
"line": 35,
"column": 1
}
},
"body": [
{
"type": "ForStatement",
"start": 601,
"end": 762,
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 34,
"column": 5
}
},
"init": {
"type": "VariableDeclaration",
"start": 606,
"end": 615,
"loc": {
"start": {
"line": 29,
"column": 9
},
"end": {
"line": 29,
"column": 18
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 610,
"end": 615,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 18
}
},
"id": {
"type": "Identifier",
"start": 610,
"end": 611,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 14
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 614,
"end": 615,
"loc": {
"start": {
"line": 29,
"column": 17
},
"end": {
"line": 29,
"column": 18
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 617,
"end": 643,
"loc": {
"start": {
"line": 29,
"column": 20
},
"end": {
"line": 29,
"column": 46
}
},
"left": {
"type": "Identifier",
"start": 617,
"end": 618,
"loc": {
"start": {
"line": 29,
"column": 20
},
"end": {
"line": 29,
"column": 21
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 621,
"end": 643,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 46
}
},
"object": {
"type": "MemberExpression",
"start": 621,
"end": 636,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 621,
"end": 625,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 28
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 626,
"end": 636,
"loc": {
"start": {
"line": 29,
"column": 29
},
"end": {
"line": 29,
"column": 39
},
"identifierName": "childNodes"
},
"name": "childNodes"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 637,
"end": 643,
"loc": {
"start": {
"line": 29,
"column": 40
},
"end": {
"line": 29,
"column": 46
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 645,
"end": 648,
"loc": {
"start": {
"line": 29,
"column": 48
},
"end": {
"line": 29,
"column": 51
}
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"start": 645,
"end": 646,
"loc": {
"start": {
"line": 29,
"column": 48
},
"end": {
"line": 29,
"column": 49
},
"identifierName": "i"
},
"name": "i"
}
},
"body": {
"type": "BlockStatement",
"start": 650,
"end": 762,
"loc": {
"start": {
"line": 29,
"column": 53
},
"end": {
"line": 34,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 660,
"end": 687,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 35
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 664,
"end": 686,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 34
}
},
"id": {
"type": "Identifier",
"start": 664,
"end": 665,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 13
},
"identifierName": "n"
},
"name": "n"
},
"init": {
"type": "MemberExpression",
"start": 668,
"end": 686,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 668,
"end": 683,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 668,
"end": 672,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 20
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 673,
"end": 683,
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 31
},
"identifierName": "childNodes"
},
"name": "childNodes"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 684,
"end": 685,
"loc": {
"start": {
"line": 30,
"column": 32
},
"end": {
"line": 30,
"column": 33
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 696,
"end": 756,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 33,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 700,
"end": 716,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 28
}
},
"left": {
"type": "MemberExpression",
"start": 700,
"end": 710,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 700,
"end": 701,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 13
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 702,
"end": 710,
"loc": {
"start": {
"line": 31,
"column": 14
},
"end": {
"line": 31,
"column": 22
},
"identifierName": "nodeType"
},
"name": "nodeType"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NumericLiteral",
"start": 715,
"end": 716,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 28
}
},
"extra": {
"rawValue": 3,
"raw": "3"
},
"value": 3
}
},
"consequent": {
"type": "BlockStatement",
"start": 718,
"end": 756,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 33,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 732,
"end": 746,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 26
}
},
"argument": {
"type": "MemberExpression",
"start": 739,
"end": 745,
"loc": {
"start": {
"line": 32,
"column": 19
},
"end": {
"line": 32,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 739,
"end": 740,
"loc": {
"start": {
"line": 32,
"column": 19
},
"end": {
"line": 32,
"column": 20
},
"identifierName": "n"
},
"name": "n"
},
"property": {
"type": "Identifier",
"start": 741,
"end": 745,
"loc": {
"start": {
"line": 32,
"column": 21
},
"end": {
"line": 32,
"column": 25
},
"identifierName": "data"
},
"name": "data"
},
"computed": false
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n ",
"start": 428,
"end": 552,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n ",
"start": 767,
"end": 1086,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n ",
"start": 428,
"end": 552,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n ",
"start": 767,
"end": 1086,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1087,
"end": 1439,
"loc": {
"start": {
"line": 44,
"column": 0
},
"end": {
"line": 59,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 1094,
"end": 1439,
"loc": {
"start": {
"line": 44,
"column": 7
},
"end": {
"line": 59,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1100,
"end": 1438,
"loc": {
"start": {
"line": 44,
"column": 13
},
"end": {
"line": 59,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1100,
"end": 1109,
"loc": {
"start": {
"line": 44,
"column": 13
},
"end": {
"line": 44,
"column": 22
},
"identifierName": "createElm"
},
"name": "createElm",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 1112,
"end": 1438,
"loc": {
"start": {
"line": 44,
"column": 25
},
"end": {
"line": 59,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1100,
"end": 1109,
"loc": {
"start": {
"line": 44,
"column": 13
},
"end": {
"line": 44,
"column": 22
},
"identifierName": "createElm"
},
"name": "createElm",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "RestElement",
"start": 1113,
"end": 1120,
"loc": {
"start": {
"line": 44,
"column": 26
},
"end": {
"line": 44,
"column": 33
}
},
"argument": {
"type": "Identifier",
"start": 1116,
"end": 1120,
"loc": {
"start": {
"line": 44,
"column": 29
},
"end": {
"line": 44,
"column": 33
},
"identifierName": "args"
},
"name": "args"
}
}
],
"body": {
"type": "BlockStatement",
"start": 1125,
"end": 1438,
"loc": {
"start": {
"line": 44,
"column": 38
},
"end": {
"line": 59,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1131,
"end": 1149,
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 45,
"column": 22
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1135,
"end": 1148,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 21
}
},
"id": {
"type": "Identifier",
"start": 1135,
"end": 1138,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 11
},
"identifierName": "tag"
},
"name": "tag"
},
"init": {
"type": "MemberExpression",
"start": 1141,
"end": 1148,
"loc": {
"start": {
"line": 45,
"column": 14
},
"end": {
"line": 45,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 1141,
"end": 1145,
"loc": {
"start": {
"line": 45,
"column": 14
},
"end": {
"line": 45,
"column": 18
},
"identifierName": "args"
},
"name": "args"
},
"property": {
"type": "NumericLiteral",
"start": 1146,
"end": 1147,
"loc": {
"start": {
"line": 45,
"column": 19
},
"end": {
"line": 45,
"column": 20
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1154,
"end": 1202,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 48,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 1158,
"end": 1172,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 22
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "CallExpression",
"start": 1159,
"end": 1172,
"loc": {
"start": {
"line": 46,
"column": 9
},
"end": {
"line": 46,
"column": 22
}
},
"callee": {
"type": "Identifier",
"start": 1159,
"end": 1167,
"loc": {
"start": {
"line": 46,
"column": 9
},
"end": {
"line": 46,
"column": 17
},
"identifierName": "isString"
},
"name": "isString"
},
"arguments": [
{
"type": "Identifier",
"start": 1168,
"end": 1171,
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 21
},
"identifierName": "tag"
},
"name": "tag"
}
]
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 1174,
"end": 1202,
"loc": {
"start": {
"line": 46,
"column": 24
},
"end": {
"line": 48,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1184,
"end": 1196,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 20
}
},
"argument": {
"type": "NullLiteral",
"start": 1191,
"end": 1195,
"loc": {
"start": {
"line": 47,
"column": 15
},
"end": {
"line": 47,
"column": 19
}
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 1208,
"end": 1240,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 36
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1212,
"end": 1239,
"loc": {
"start": {
"line": 50,
"column": 8
},
"end": {
"line": 50,
"column": 35
}
},
"id": {
"type": "Identifier",
"start": 1212,
"end": 1214,
"loc": {
"start": {
"line": 50,
"column": 8
},
"end": {
"line": 50,
"column": 10
},
"identifierName": "el"
},
"name": "el"
},
"init": {
"type": "CallExpression",
"start": 1217,
"end": 1239,
"loc": {
"start": {
"line": 50,
"column": 13
},
"end": {
"line": 50,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 1217,
"end": 1234,
"loc": {
"start": {
"line": 50,
"column": 13
},
"end": {
"line": 50,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 1217,
"end": 1220,
"loc": {
"start": {
"line": 50,
"column": 13
},
"end": {
"line": 50,
"column": 16
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 1221,
"end": 1234,
"loc": {
"start": {
"line": 50,
"column": 17
},
"end": {
"line": 50,
"column": 30
},
"identifierName": "createElement"
},
"name": "createElement"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1235,
"end": 1238,
"loc": {
"start": {
"line": 50,
"column": 31
},
"end": {
"line": 50,
"column": 34
},
"identifierName": "tag"
},
"name": "tag"
}
]
}
}
],
"kind": "let"
},
{
"type": "ForStatement",
"start": 1245,
"end": 1421,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 57,
"column": 5
}
},
"init": {
"type": "VariableDeclaration",
"start": 1250,
"end": 1259,
"loc": {
"start": {
"line": 51,
"column": 9
},
"end": {
"line": 51,
"column": 18
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1254,
"end": 1259,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 18
}
},
"id": {
"type": "Identifier",
"start": 1254,
"end": 1255,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 14
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 1258,
"end": 1259,
"loc": {
"start": {
"line": 51,
"column": 17
},
"end": {
"line": 51,
"column": 18
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 1261,
"end": 1276,
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 51,
"column": 35
}
},
"left": {
"type": "Identifier",
"start": 1261,
"end": 1262,
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 51,
"column": 21
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "MemberExpression",
"start": 1265,
"end": 1276,
"loc": {
"start": {
"line": 51,
"column": 24
},
"end": {
"line": 51,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 1265,
"end": 1269,
"loc": {
"start": {
"line": 51,
"column": 24
},
"end": {
"line": 51,
"column": 28
},
"identifierName": "args"
},
"name": "args"
},
"property": {
"type": "Identifier",
"start": 1270,
"end": 1276,
"loc": {
"start": {
"line": 51,
"column": 29
},
"end": {
"line": 51,
"column": 35
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
},
"update": {
"type": "UpdateExpression",
"start": 1278,
"end": 1281,
"loc": {
"start": {
"line": 51,
"column": 37
},
"end": {
"line": 51,
"column": 40
}
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"start": 1278,
"end": 1279,
"loc": {
"start": {
"line": 51,
"column": 37
},
"end": {
"line": 51,
"column": 38
},
"identifierName": "i"
},
"name": "i"
}
},
"body": {
"type": "BlockStatement",
"start": 1283,
"end": 1421,
"loc": {
"start": {
"line": 51,
"column": 42
},
"end": {
"line": 57,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1293,
"end": 1311,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 26
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1297,
"end": 1310,
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 1297,
"end": 1300,
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 15
},
"identifierName": "arg"
},
"name": "arg"
},
"init": {
"type": "MemberExpression",
"start": 1303,
"end": 1310,
"loc": {
"start": {
"line": 52,
"column": 18
},
"end": {
"line": 52,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 1303,
"end": 1307,
"loc": {
"start": {
"line": 52,
"column": 18
},
"end": {
"line": 52,
"column": 22
},
"identifierName": "args"
},
"name": "args"
},
"property": {
"type": "Identifier",
"start": 1308,
"end": 1309,
"loc": {
"start": {
"line": 52,
"column": 23
},
"end": {
"line": 52,
"column": 24
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 1321,
"end": 1415,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 56,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 1325,
"end": 1357,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 44
}
},
"left": {
"type": "CallExpression",
"start": 1325,
"end": 1337,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 24
}
},
"callee": {
"type": "Identifier",
"start": 1325,
"end": 1332,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 19
},
"identifierName": "isArray"
},
"name": "isArray"
},
"arguments": [
{
"type": "Identifier",
"start": 1333,
"end": 1336,
"loc": {
"start": {
"line": 54,
"column": 20
},
"end": {
"line": 54,
"column": 23
},
"identifierName": "arg"
},
"name": "arg"
}
]
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 1341,
"end": 1357,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 44
}
},
"left": {
"type": "MemberExpression",
"start": 1341,
"end": 1351,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 1341,
"end": 1344,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 31
},
"identifierName": "arg"
},
"name": "arg"
},
"property": {
"type": "Identifier",
"start": 1345,
"end": 1351,
"loc": {
"start": {
"line": 54,
"column": 32
},
"end": {
"line": 54,
"column": 38
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
},
"operator": "===",
"right": {
"type": "NumericLiteral",
"start": 1356,
"end": 1357,
"loc": {
"start": {
"line": 54,
"column": 43
},
"end": {
"line": 54,
"column": 44
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 1359,
"end": 1415,
"loc": {
"start": {
"line": 54,
"column": 46
},
"end": {
"line": 56,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1373,
"end": 1405,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 44
}
},
"expression": {
"type": "CallExpression",
"start": 1373,
"end": 1404,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 1373,
"end": 1388,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1373,
"end": 1375,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 14
},
"identifierName": "el"
},
"name": "el"
},
"property": {
"type": "Identifier",
"start": 1376,
"end": 1388,
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 27
},
"identifierName": "setAttribute"
},
"name": "setAttribute"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1389,
"end": 1395,
"loc": {
"start": {
"line": 55,
"column": 28
},
"end": {
"line": 55,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 1389,
"end": 1392,
"loc": {
"start": {
"line": 55,
"column": 28
},
"end": {
"line": 55,
"column": 31
},
"identifierName": "arg"
},
"name": "arg"
},
"property": {
"type": "NumericLiteral",
"start": 1393,
"end": 1394,
"loc": {
"start": {
"line": 55,
"column": 32
},
"end": {
"line": 55,
"column": 33
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"computed": true
},
{
"type": "MemberExpression",
"start": 1397,
"end": 1403,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 1397,
"end": 1400,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 39
},
"identifierName": "arg"
},
"name": "arg"
},
"property": {
"type": "NumericLiteral",
"start": 1401,
"end": 1402,
"loc": {
"start": {
"line": 55,
"column": 40
},
"end": {
"line": 55,
"column": 41
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"computed": true
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
},
{
"type": "ReturnStatement",
"start": 1426,
"end": 1436,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 14
}
},
"argument": {
"type": "Identifier",
"start": 1433,
"end": 1435,
"loc": {
"start": {
"line": 58,
"column": 11
},
"end": {
"line": 58,
"column": 13
},
"identifierName": "el"
},
"name": "el"
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n ",
"start": 767,
"end": 1086,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n ",
"start": 1441,
"end": 1552,
"loc": {
"start": {
"line": 61,
"column": 0
},
"end": {
"line": 65,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n ",
"start": 767,
"end": 1086,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n ",
"start": 1441,
"end": 1552,
"loc": {
"start": {
"line": 61,
"column": 0
},
"end": {
"line": 65,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1553,
"end": 1622,
"loc": {
"start": {
"line": 66,
"column": 0
},
"end": {
"line": 66,
"column": 69
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 1560,
"end": 1622,
"loc": {
"start": {
"line": 66,
"column": 7
},
"end": {
"line": 66,
"column": 69
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1566,
"end": 1621,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 68
}
},
"id": {
"type": "Identifier",
"start": 1566,
"end": 1575,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 22
},
"identifierName": "removeElm"
},
"name": "removeElm",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 1578,
"end": 1621,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 68
}
},
"id": {
"type": "Identifier",
"start": 1566,
"end": 1575,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 22
},
"identifierName": "removeElm"
},
"name": "removeElm",
"leadingComments": null
},
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1579,
"end": 1583,
"loc": {
"start": {
"line": 66,
"column": 26
},
"end": {
"line": 66,
"column": 30
},
"identifierName": "node"
},
"name": "node"
}
],
"body": {
"type": "CallExpression",
"start": 1588,
"end": 1621,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 68
}
},
"callee": {
"type": "MemberExpression",
"start": 1588,
"end": 1615,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 1588,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 50
}
},
"object": {
"type": "Identifier",
"start": 1588,
"end": 1592,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 39
},
"identifierName": "node"
},
"name": "node"
},
"property": {
"type": "Identifier",
"start": 1593,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 40
},
"end": {
"line": 66,
"column": 50
},
"identifierName": "parentNode"
},
"name": "parentNode"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1604,
"end": 1615,
"loc": {
"start": {
"line": 66,
"column": 51
},
"end": {
"line": 66,
"column": 62
},
"identifierName": "removeChild"
},
"name": "removeChild"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1616,
"end": 1620,
"loc": {
"start": {
"line": 66,
"column": 63
},
"end": {
"line": 66,
"column": 67
},
"identifierName": "node"
},
"name": "node"
}
]
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n ",
"start": 1441,
"end": 1552,
"loc": {
"start": {
"line": 61,
"column": 0
},
"end": {
"line": 65,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n ",
"start": 1624,
"end": 1714,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 72,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n ",
"start": 1441,
"end": 1552,
"loc": {
"start": {
"line": 61,
"column": 0
},
"end": {
"line": 65,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n ",
"start": 1624,
"end": 1714,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 72,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1715,
"end": 1774,
"loc": {
"start": {
"line": 73,
"column": 0
},
"end": {
"line": 73,
"column": 59
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 1722,
"end": 1774,
"loc": {
"start": {
"line": 73,
"column": 7
},
"end": {
"line": 73,
"column": 59
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1728,
"end": 1773,
"loc": {
"start": {
"line": 73,
"column": 13
},
"end": {
"line": 73,
"column": 58
}
},
"id": {
"type": "Identifier",
"start": 1728,
"end": 1738,
"loc": {
"start": {
"line": 73,
"column": 13
},
"end": {
"line": 73,
"column": 23
},
"identifierName": "createText"
},
"name": "createText",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 1741,
"end": 1773,
"loc": {
"start": {
"line": 73,
"column": 26
},
"end": {
"line": 73,
"column": 58
}
},
"id": {
"type": "Identifier",
"start": 1728,
"end": 1738,
"loc": {
"start": {
"line": 73,
"column": 13
},
"end": {
"line": 73,
"column": 23
},
"identifierName": "createText"
},
"name": "createText",
"leadingComments": null
},
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1742,
"end": 1745,
"loc": {
"start": {
"line": 73,
"column": 27
},
"end": {
"line": 73,
"column": 30
},
"identifierName": "txt"
},
"name": "txt"
}
],
"body": {
"type": "CallExpression",
"start": 1750,
"end": 1773,
"loc": {
"start": {
"line": 73,
"column": 35
},
"end": {
"line": 73,
"column": 58
}
},
"callee": {
"type": "MemberExpression",
"start": 1750,
"end": 1768,
"loc": {
"start": {
"line": 73,
"column": 35
},
"end": {
"line": 73,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 1750,
"end": 1753,
"loc": {
"start": {
"line": 73,
"column": 35
},
"end": {
"line": 73,
"column": 38
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 1754,
"end": 1768,
"loc": {
"start": {
"line": 73,
"column": 39
},
"end": {
"line": 73,
"column": 53
},
"identifierName": "createTextNode"
},
"name": "createTextNode"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1769,
"end": 1772,
"loc": {
"start": {
"line": 73,
"column": 54
},
"end": {
"line": 73,
"column": 57
},
"identifierName": "txt"
},
"name": "txt"
}
]
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n ",
"start": 1624,
"end": 1714,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 72,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n ",
"start": 1776,
"end": 1951,
"loc": {
"start": {
"line": 75,
"column": 0
},
"end": {
"line": 80,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n ",
"start": 1624,
"end": 1714,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 72,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n ",
"start": 1776,
"end": 1951,
"loc": {
"start": {
"line": 75,
"column": 0
},
"end": {
"line": 80,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1952,
"end": 2201,
"loc": {
"start": {
"line": 81,
"column": 0
},
"end": {
"line": 90,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 1959,
"end": 2201,
"loc": {
"start": {
"line": 81,
"column": 7
},
"end": {
"line": 90,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1965,
"end": 2200,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 90,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1965,
"end": 1973,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 21
},
"identifierName": "hasClass"
},
"name": "hasClass",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 1976,
"end": 2200,
"loc": {
"start": {
"line": 81,
"column": 24
},
"end": {
"line": 90,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1965,
"end": 1973,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 21
},
"identifierName": "hasClass"
},
"name": "hasClass",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1977,
"end": 1980,
"loc": {
"start": {
"line": 81,
"column": 25
},
"end": {
"line": 81,
"column": 28
},
"identifierName": "ele"
},
"name": "ele"
},
{
"type": "Identifier",
"start": 1982,
"end": 1985,
"loc": {
"start": {
"line": 81,
"column": 30
},
"end": {
"line": 81,
"column": 33
},
"identifierName": "cls"
},
"name": "cls"
}
],
"body": {
"type": "BlockStatement",
"start": 1990,
"end": 2200,
"loc": {
"start": {
"line": 81,
"column": 38
},
"end": {
"line": 90,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 1996,
"end": 2043,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 84,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 2000,
"end": 2012,
"loc": {
"start": {
"line": 82,
"column": 8
},
"end": {
"line": 82,
"column": 20
}
},
"callee": {
"type": "Identifier",
"start": 2000,
"end": 2007,
"loc": {
"start": {
"line": 82,
"column": 8
},
"end": {
"line": 82,
"column": 15
},
"identifierName": "isUndef"
},
"name": "isUndef"
},
"arguments": [
{
"type": "Identifier",
"start": 2008,
"end": 2011,
"loc": {
"start": {
"line": 82,
"column": 16
},
"end": {
"line": 82,
"column": 19
},
"identifierName": "ele"
},
"name": "ele"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 2014,
"end": 2043,
"loc": {
"start": {
"line": 82,
"column": 22
},
"end": {
"line": 84,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2024,
"end": 2037,
"loc": {
"start": {
"line": 83,
"column": 8
},
"end": {
"line": 83,
"column": 21
}
},
"argument": {
"type": "BooleanLiteral",
"start": 2031,
"end": 2036,
"loc": {
"start": {
"line": 83,
"column": 15
},
"end": {
"line": 83,
"column": 20
}
},
"value": false
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 2049,
"end": 2125,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 88,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 2053,
"end": 2072,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 2053,
"end": 2070,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 25
},
"identifierName": "supportsClassList"
},
"name": "supportsClassList"
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 2074,
"end": 2125,
"loc": {
"start": {
"line": 86,
"column": 29
},
"end": {
"line": 88,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2084,
"end": 2119,
"loc": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 87,
"column": 43
}
},
"argument": {
"type": "CallExpression",
"start": 2091,
"end": 2118,
"loc": {
"start": {
"line": 87,
"column": 15
},
"end": {
"line": 87,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 2091,
"end": 2113,
"loc": {
"start": {
"line": 87,
"column": 15
},
"end": {
"line": 87,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 2091,
"end": 2104,
"loc": {
"start": {
"line": 87,
"column": 15
},
"end": {
"line": 87,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 2091,
"end": 2094,
"loc": {
"start": {
"line": 87,
"column": 15
},
"end": {
"line": 87,
"column": 18
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 2095,
"end": 2104,
"loc": {
"start": {
"line": 87,
"column": 19
},
"end": {
"line": 87,
"column": 28
},
"identifierName": "classList"
},
"name": "classList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2105,
"end": 2113,
"loc": {
"start": {
"line": 87,
"column": 29
},
"end": {
"line": 87,
"column": 37
},
"identifierName": "contains"
},
"name": "contains"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2114,
"end": 2117,
"loc": {
"start": {
"line": 87,
"column": 38
},
"end": {
"line": 87,
"column": 41
},
"identifierName": "cls"
},
"name": "cls"
}
]
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 2130,
"end": 2198,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 89,
"column": 72
}
},
"argument": {
"type": "CallExpression",
"start": 2137,
"end": 2197,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 2137,
"end": 2156,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 2137,
"end": 2150,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 2137,
"end": 2140,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 14
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 2141,
"end": 2150,
"loc": {
"start": {
"line": 89,
"column": 15
},
"end": {
"line": 89,
"column": 24
},
"identifierName": "className"
},
"name": "className"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2151,
"end": 2156,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 30
},
"identifierName": "match"
},
"name": "match"
},
"computed": false
},
"arguments": [
{
"type": "NewExpression",
"start": 2157,
"end": 2196,
"loc": {
"start": {
"line": 89,
"column": 31
},
"end": {
"line": 89,
"column": 70
}
},
"callee": {
"type": "Identifier",
"start": 2161,
"end": 2167,
"loc": {
"start": {
"line": 89,
"column": 35
},
"end": {
"line": 89,
"column": 41
},
"identifierName": "RegExp"
},
"name": "RegExp"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2168,
"end": 2195,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 69
}
},
"left": {
"type": "BinaryExpression",
"start": 2168,
"end": 2183,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 57
}
},
"left": {
"type": "StringLiteral",
"start": 2168,
"end": 2177,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 51
}
},
"extra": {
"rawValue": "(\\s|^)",
"raw": "'(\\\\s|^)'"
},
"value": "(\\s|^)"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2180,
"end": 2183,
"loc": {
"start": {
"line": 89,
"column": 54
},
"end": {
"line": 89,
"column": 57
},
"identifierName": "cls"
},
"name": "cls"
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 2186,
"end": 2195,
"loc": {
"start": {
"line": 89,
"column": 60
},
"end": {
"line": 89,
"column": 69
}
},
"extra": {
"rawValue": "(\\s|$)",
"raw": "'(\\\\s|$)'"
},
"value": "(\\s|$)"
}
}
]
}
]
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n ",
"start": 1776,
"end": 1951,
"loc": {
"start": {
"line": 75,
"column": 0
},
"end": {
"line": 80,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2203,
"end": 2337,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 96,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n ",
"start": 1776,
"end": 1951,
"loc": {
"start": {
"line": 75,
"column": 0
},
"end": {
"line": 80,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2203,
"end": 2337,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 96,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 2338,
"end": 2658,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 113,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 2345,
"end": 2658,
"loc": {
"start": {
"line": 97,
"column": 7
},
"end": {
"line": 113,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2351,
"end": 2657,
"loc": {
"start": {
"line": 97,
"column": 13
},
"end": {
"line": 113,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2351,
"end": 2359,
"loc": {
"start": {
"line": 97,
"column": 13
},
"end": {
"line": 97,
"column": 21
},
"identifierName": "addClass"
},
"name": "addClass",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 2362,
"end": 2657,
"loc": {
"start": {
"line": 97,
"column": 24
},
"end": {
"line": 113,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2351,
"end": 2359,
"loc": {
"start": {
"line": 97,
"column": 13
},
"end": {
"line": 97,
"column": 21
},
"identifierName": "addClass"
},
"name": "addClass",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2363,
"end": 2366,
"loc": {
"start": {
"line": 97,
"column": 25
},
"end": {
"line": 97,
"column": 28
},
"identifierName": "ele"
},
"name": "ele"
},
{
"type": "Identifier",
"start": 2368,
"end": 2371,
"loc": {
"start": {
"line": 97,
"column": 30
},
"end": {
"line": 97,
"column": 33
},
"identifierName": "cls"
},
"name": "cls"
}
],
"body": {
"type": "BlockStatement",
"start": 2376,
"end": 2657,
"loc": {
"start": {
"line": 97,
"column": 38
},
"end": {
"line": 113,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 2382,
"end": 2423,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 100,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 2386,
"end": 2398,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 20
}
},
"callee": {
"type": "Identifier",
"start": 2386,
"end": 2393,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 15
},
"identifierName": "isUndef"
},
"name": "isUndef"
},
"arguments": [
{
"type": "Identifier",
"start": 2394,
"end": 2397,
"loc": {
"start": {
"line": 98,
"column": 16
},
"end": {
"line": 98,
"column": 19
},
"identifierName": "ele"
},
"name": "ele"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 2400,
"end": 2423,
"loc": {
"start": {
"line": 98,
"column": 22
},
"end": {
"line": 100,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2410,
"end": 2417,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 15
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 2429,
"end": 2509,
"loc": {
"start": {
"line": 102,
"column": 4
},
"end": {
"line": 105,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 2433,
"end": 2452,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 102,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 2433,
"end": 2450,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 102,
"column": 25
},
"identifierName": "supportsClassList"
},
"name": "supportsClassList"
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 2454,
"end": 2509,
"loc": {
"start": {
"line": 102,
"column": 29
},
"end": {
"line": 105,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2464,
"end": 2487,
"loc": {
"start": {
"line": 103,
"column": 8
},
"end": {
"line": 103,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 2464,
"end": 2486,
"loc": {
"start": {
"line": 103,
"column": 8
},
"end": {
"line": 103,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 2464,
"end": 2481,
"loc": {
"start": {
"line": 103,
"column": 8
},
"end": {
"line": 103,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2464,
"end": 2477,
"loc": {
"start": {
"line": 103,
"column": 8
},
"end": {
"line": 103,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 2464,
"end": 2467,
"loc": {
"start": {
"line": 103,
"column": 8
},
"end": {
"line": 103,
"column": 11
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 2468,
"end": 2477,
"loc": {
"start": {
"line": 103,
"column": 12
},
"end": {
"line": 103,
"column": 21
},
"identifierName": "classList"
},
"name": "classList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2478,
"end": 2481,
"loc": {
"start": {
"line": 103,
"column": 22
},
"end": {
"line": 103,
"column": 25
},
"identifierName": "add"
},
"name": "add"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2482,
"end": 2485,
"loc": {
"start": {
"line": 103,
"column": 26
},
"end": {
"line": 103,
"column": 29
},
"identifierName": "cls"
},
"name": "cls"
}
]
}
},
{
"type": "ReturnStatement",
"start": 2496,
"end": 2503,
"loc": {
"start": {
"line": 104,
"column": 8
},
"end": {
"line": 104,
"column": 15
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 2515,
"end": 2655,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 112,
"column": 5
}
},
"test": {
"type": "BinaryExpression",
"start": 2519,
"end": 2539,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 28
}
},
"left": {
"type": "MemberExpression",
"start": 2519,
"end": 2532,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 2519,
"end": 2522,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 11
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 2523,
"end": 2532,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 21
},
"identifierName": "className"
},
"name": "className"
},
"computed": false
},
"operator": "===",
"right": {
"type": "StringLiteral",
"start": 2537,
"end": 2539,
"loc": {
"start": {
"line": 107,
"column": 26
},
"end": {
"line": 107,
"column": 28
}
},
"extra": {
"rawValue": "",
"raw": "''"
},
"value": ""
}
},
"consequent": {
"type": "BlockStatement",
"start": 2541,
"end": 2577,
"loc": {
"start": {
"line": 107,
"column": 30
},
"end": {
"line": 109,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2551,
"end": 2571,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2551,
"end": 2570,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 2551,
"end": 2564,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 2551,
"end": 2554,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 11
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 2555,
"end": 2564,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 21
},
"identifierName": "className"
},
"name": "className"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 2567,
"end": 2570,
"loc": {
"start": {
"line": 108,
"column": 24
},
"end": {
"line": 108,
"column": 27
},
"identifierName": "cls"
},
"name": "cls"
}
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 2587,
"end": 2655,
"loc": {
"start": {
"line": 110,
"column": 9
},
"end": {
"line": 112,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 2591,
"end": 2610,
"loc": {
"start": {
"line": 110,
"column": 13
},
"end": {
"line": 110,
"column": 32
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "CallExpression",
"start": 2592,
"end": 2610,
"loc": {
"start": {
"line": 110,
"column": 14
},
"end": {
"line": 110,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 2592,
"end": 2600,
"loc": {
"start": {
"line": 110,
"column": 14
},
"end": {
"line": 110,
"column": 22
},
"identifierName": "hasClass"
},
"name": "hasClass"
},
"arguments": [
{
"type": "Identifier",
"start": 2601,
"end": 2604,
"loc": {
"start": {
"line": 110,
"column": 23
},
"end": {
"line": 110,
"column": 26
},
"identifierName": "ele"
},
"name": "ele"
},
{
"type": "Identifier",
"start": 2606,
"end": 2609,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 31
},
"identifierName": "cls"
},
"name": "cls"
}
]
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 2612,
"end": 2655,
"loc": {
"start": {
"line": 110,
"column": 34
},
"end": {
"line": 112,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2622,
"end": 2649,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 35
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2622,
"end": 2648,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 34
}
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"start": 2622,
"end": 2635,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 2622,
"end": 2625,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 11
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 2626,
"end": 2635,
"loc": {
"start": {
"line": 111,
"column": 12
},
"end": {
"line": 111,
"column": 21
},
"identifierName": "className"
},
"name": "className"
},
"computed": false
},
"right": {
"type": "BinaryExpression",
"start": 2639,
"end": 2648,
"loc": {
"start": {
"line": 111,
"column": 25
},
"end": {
"line": 111,
"column": 34
}
},
"left": {
"type": "StringLiteral",
"start": 2639,
"end": 2642,
"loc": {
"start": {
"line": 111,
"column": 25
},
"end": {
"line": 111,
"column": 28
}
},
"extra": {
"rawValue": " ",
"raw": "' '"
},
"value": " "
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2645,
"end": 2648,
"loc": {
"start": {
"line": 111,
"column": 31
},
"end": {
"line": 111,
"column": 34
},
"identifierName": "cls"
},
"name": "cls"
}
}
}
}
],
"directives": []
},
"alternate": null
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2203,
"end": 2337,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 96,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2660,
"end": 2797,
"loc": {
"start": {
"line": 115,
"column": 0
},
"end": {
"line": 119,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2203,
"end": 2337,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 96,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2660,
"end": 2797,
"loc": {
"start": {
"line": 115,
"column": 0
},
"end": {
"line": 119,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 2798,
"end": 3090,
"loc": {
"start": {
"line": 120,
"column": 0
},
"end": {
"line": 131,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 2805,
"end": 3090,
"loc": {
"start": {
"line": 120,
"column": 7
},
"end": {
"line": 131,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2811,
"end": 3089,
"loc": {
"start": {
"line": 120,
"column": 13
},
"end": {
"line": 131,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2811,
"end": 2822,
"loc": {
"start": {
"line": 120,
"column": 13
},
"end": {
"line": 120,
"column": 24
},
"identifierName": "removeClass"
},
"name": "removeClass",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 2825,
"end": 3089,
"loc": {
"start": {
"line": 120,
"column": 27
},
"end": {
"line": 131,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2811,
"end": 2822,
"loc": {
"start": {
"line": 120,
"column": 13
},
"end": {
"line": 120,
"column": 24
},
"identifierName": "removeClass"
},
"name": "removeClass",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2826,
"end": 2829,
"loc": {
"start": {
"line": 120,
"column": 28
},
"end": {
"line": 120,
"column": 31
},
"identifierName": "ele"
},
"name": "ele"
},
{
"type": "Identifier",
"start": 2831,
"end": 2834,
"loc": {
"start": {
"line": 120,
"column": 33
},
"end": {
"line": 120,
"column": 36
},
"identifierName": "cls"
},
"name": "cls"
}
],
"body": {
"type": "BlockStatement",
"start": 2839,
"end": 3089,
"loc": {
"start": {
"line": 120,
"column": 41
},
"end": {
"line": 131,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 2845,
"end": 2886,
"loc": {
"start": {
"line": 121,
"column": 4
},
"end": {
"line": 123,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 2849,
"end": 2861,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 20
}
},
"callee": {
"type": "Identifier",
"start": 2849,
"end": 2856,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 15
},
"identifierName": "isUndef"
},
"name": "isUndef"
},
"arguments": [
{
"type": "Identifier",
"start": 2857,
"end": 2860,
"loc": {
"start": {
"line": 121,
"column": 16
},
"end": {
"line": 121,
"column": 19
},
"identifierName": "ele"
},
"name": "ele"
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 2863,
"end": 2886,
"loc": {
"start": {
"line": 121,
"column": 22
},
"end": {
"line": 123,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2873,
"end": 2880,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 15
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 2892,
"end": 2975,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 128,
"column": 5
}
},
"test": {
"type": "CallExpression",
"start": 2896,
"end": 2915,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 27
}
},
"callee": {
"type": "Identifier",
"start": 2896,
"end": 2913,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 25
},
"identifierName": "supportsClassList"
},
"name": "supportsClassList"
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 2917,
"end": 2975,
"loc": {
"start": {
"line": 125,
"column": 29
},
"end": {
"line": 128,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2927,
"end": 2953,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 2927,
"end": 2952,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 2927,
"end": 2947,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 2927,
"end": 2940,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 2927,
"end": 2930,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 11
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 2931,
"end": 2940,
"loc": {
"start": {
"line": 126,
"column": 12
},
"end": {
"line": 126,
"column": 21
},
"identifierName": "classList"
},
"name": "classList"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2941,
"end": 2947,
"loc": {
"start": {
"line": 126,
"column": 22
},
"end": {
"line": 126,
"column": 28
},
"identifierName": "remove"
},
"name": "remove"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 2948,
"end": 2951,
"loc": {
"start": {
"line": 126,
"column": 29
},
"end": {
"line": 126,
"column": 32
},
"identifierName": "cls"
},
"name": "cls"
}
]
}
},
{
"type": "ReturnStatement",
"start": 2962,
"end": 2969,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 15
}
},
"argument": null
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 2980,
"end": 3035,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 59
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2984,
"end": 3034,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 58
}
},
"id": {
"type": "Identifier",
"start": 2984,
"end": 2987,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 11
},
"identifierName": "reg"
},
"name": "reg"
},
"init": {
"type": "NewExpression",
"start": 2990,
"end": 3034,
"loc": {
"start": {
"line": 129,
"column": 14
},
"end": {
"line": 129,
"column": 58
}
},
"callee": {
"type": "Identifier",
"start": 2994,
"end": 3000,
"loc": {
"start": {
"line": 129,
"column": 18
},
"end": {
"line": 129,
"column": 24
},
"identifierName": "RegExp"
},
"name": "RegExp"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 3001,
"end": 3028,
"loc": {
"start": {
"line": 129,
"column": 25
},
"end": {
"line": 129,
"column": 52
}
},
"left": {
"type": "BinaryExpression",
"start": 3001,
"end": 3016,
"loc": {
"start": {
"line": 129,
"column": 25
},
"end": {
"line": 129,
"column": 40
}
},
"left": {
"type": "StringLiteral",
"start": 3001,
"end": 3010,
"loc": {
"start": {
"line": 129,
"column": 25
},
"end": {
"line": 129,
"column": 34
}
},
"extra": {
"rawValue": "(\\s|^)",
"raw": "'(\\\\s|^)'"
},
"value": "(\\s|^)"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 3013,
"end": 3016,
"loc": {
"start": {
"line": 129,
"column": 37
},
"end": {
"line": 129,
"column": 40
},
"identifierName": "cls"
},
"name": "cls"
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 3019,
"end": 3028,
"loc": {
"start": {
"line": 129,
"column": 43
},
"end": {
"line": 129,
"column": 52
}
},
"extra": {
"rawValue": "(\\s|$)",
"raw": "'(\\\\s|$)'"
},
"value": "(\\s|$)"
}
},
{
"type": "StringLiteral",
"start": 3030,
"end": 3033,
"loc": {
"start": {
"line": 129,
"column": 54
},
"end": {
"line": 129,
"column": 57
}
},
"extra": {
"rawValue": "g",
"raw": "'g'"
},
"value": "g"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 3040,
"end": 3087,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 51
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3040,
"end": 3086,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 50
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3040,
"end": 3053,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 17
}
},
"object": {
"type": "Identifier",
"start": 3040,
"end": 3043,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 7
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 3044,
"end": 3053,
"loc": {
"start": {
"line": 130,
"column": 8
},
"end": {
"line": 130,
"column": 17
},
"identifierName": "className"
},
"name": "className"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 3056,
"end": 3086,
"loc": {
"start": {
"line": 130,
"column": 20
},
"end": {
"line": 130,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 3056,
"end": 3077,
"loc": {
"start": {
"line": 130,
"column": 20
},
"end": {
"line": 130,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 3056,
"end": 3069,
"loc": {
"start": {
"line": 130,
"column": 20
},
"end": {
"line": 130,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 3056,
"end": 3059,
"loc": {
"start": {
"line": 130,
"column": 20
},
"end": {
"line": 130,
"column": 23
},
"identifierName": "ele"
},
"name": "ele"
},
"property": {
"type": "Identifier",
"start": 3060,
"end": 3069,
"loc": {
"start": {
"line": 130,
"column": 24
},
"end": {
"line": 130,
"column": 33
},
"identifierName": "className"
},
"name": "className"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3070,
"end": 3077,
"loc": {
"start": {
"line": 130,
"column": 34
},
"end": {
"line": 130,
"column": 41
},
"identifierName": "replace"
},
"name": "replace"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3078,
"end": 3081,
"loc": {
"start": {
"line": 130,
"column": 42
},
"end": {
"line": 130,
"column": 45
},
"identifierName": "reg"
},
"name": "reg"
},
{
"type": "StringLiteral",
"start": 3083,
"end": 3085,
"loc": {
"start": {
"line": 130,
"column": 47
},
"end": {
"line": 130,
"column": 49
}
},
"extra": {
"rawValue": "",
"raw": "''"
},
"value": ""
}
]
}
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2660,
"end": 2797,
"loc": {
"start": {
"line": 115,
"column": 0
},
"end": {
"line": 119,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n ",
"start": 3092,
"end": 3315,
"loc": {
"start": {
"line": 133,
"column": 0
},
"end": {
"line": 139,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2660,
"end": 2797,
"loc": {
"start": {
"line": 115,
"column": 0
},
"end": {
"line": 119,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n ",
"start": 3092,
"end": 3315,
"loc": {
"start": {
"line": 133,
"column": 0
},
"end": {
"line": 139,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 3316,
"end": 3611,
"loc": {
"start": {
"line": 140,
"column": 0
},
"end": {
"line": 147,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 3323,
"end": 3611,
"loc": {
"start": {
"line": 140,
"column": 7
},
"end": {
"line": 147,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3329,
"end": 3610,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 147,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 3329,
"end": 3338,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 140,
"column": 22
},
"identifierName": "createOpt"
},
"name": "createOpt",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 3341,
"end": 3610,
"loc": {
"start": {
"line": 140,
"column": 25
},
"end": {
"line": 147,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 3329,
"end": 3338,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 140,
"column": 22
},
"identifierName": "createOpt"
},
"name": "createOpt",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3342,
"end": 3346,
"loc": {
"start": {
"line": 140,
"column": 26
},
"end": {
"line": 140,
"column": 30
},
"identifierName": "text"
},
"name": "text"
},
{
"type": "Identifier",
"start": 3348,
"end": 3353,
"loc": {
"start": {
"line": 140,
"column": 32
},
"end": {
"line": 140,
"column": 37
},
"identifierName": "value"
},
"name": "value"
},
{
"type": "Identifier",
"start": 3355,
"end": 3360,
"loc": {
"start": {
"line": 140,
"column": 39
},
"end": {
"line": 140,
"column": 44
},
"identifierName": "isSel"
},
"name": "isSel"
}
],
"body": {
"type": "BlockStatement",
"start": 3365,
"end": 3610,
"loc": {
"start": {
"line": 140,
"column": 49
},
"end": {
"line": 147,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 3371,
"end": 3409,
"loc": {
"start": {
"line": 141,
"column": 4
},
"end": {
"line": 141,
"column": 42
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3375,
"end": 3408,
"loc": {
"start": {
"line": 141,
"column": 8
},
"end": {
"line": 141,
"column": 41
}
},
"id": {
"type": "Identifier",
"start": 3375,
"end": 3385,
"loc": {
"start": {
"line": 141,
"column": 8
},
"end": {
"line": 141,
"column": 18
},
"identifierName": "isSelected"
},
"name": "isSelected"
},
"init": {
"type": "ConditionalExpression",
"start": 3388,
"end": 3408,
"loc": {
"start": {
"line": 141,
"column": 21
},
"end": {
"line": 141,
"column": 41
}
},
"test": {
"type": "Identifier",
"start": 3388,
"end": 3393,
"loc": {
"start": {
"line": 141,
"column": 21
},
"end": {
"line": 141,
"column": 26
},
"identifierName": "isSel"
},
"name": "isSel"
},
"consequent": {
"type": "BooleanLiteral",
"start": 3396,
"end": 3400,
"loc": {
"start": {
"line": 141,
"column": 29
},
"end": {
"line": 141,
"column": 33
}
},
"value": true
},
"alternate": {
"type": "BooleanLiteral",
"start": 3403,
"end": 3408,
"loc": {
"start": {
"line": 141,
"column": 36
},
"end": {
"line": 141,
"column": 41
}
},
"value": false
}
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 3414,
"end": 3553,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 144,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3418,
"end": 3552,
"loc": {
"start": {
"line": 142,
"column": 8
},
"end": {
"line": 144,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 3418,
"end": 3421,
"loc": {
"start": {
"line": 142,
"column": 8
},
"end": {
"line": 142,
"column": 11
},
"identifierName": "opt"
},
"name": "opt"
},
"init": {
"type": "ConditionalExpression",
"start": 3424,
"end": 3552,
"loc": {
"start": {
"line": 142,
"column": 14
},
"end": {
"line": 144,
"column": 45
}
},
"test": {
"type": "Identifier",
"start": 3424,
"end": 3434,
"loc": {
"start": {
"line": 142,
"column": 14
},
"end": {
"line": 142,
"column": 24
},
"identifierName": "isSelected"
},
"name": "isSelected"
},
"consequent": {
"type": "CallExpression",
"start": 3445,
"end": 3504,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 67
}
},
"callee": {
"type": "Identifier",
"start": 3445,
"end": 3454,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 17
},
"identifierName": "createElm"
},
"name": "createElm"
},
"arguments": [
{
"type": "StringLiteral",
"start": 3455,
"end": 3463,
"loc": {
"start": {
"line": 143,
"column": 18
},
"end": {
"line": 143,
"column": 26
}
},
"extra": {
"rawValue": "option",
"raw": "'option'"
},
"value": "option"
},
{
"type": "ArrayExpression",
"start": 3465,
"end": 3481,
"loc": {
"start": {
"line": 143,
"column": 28
},
"end": {
"line": 143,
"column": 44
}
},
"elements": [
{
"type": "StringLiteral",
"start": 3466,
"end": 3473,
"loc": {
"start": {
"line": 143,
"column": 29
},
"end": {
"line": 143,
"column": 36
}
},
"extra": {
"rawValue": "value",
"raw": "'value'"
},
"value": "value"
},
{
"type": "Identifier",
"start": 3475,
"end": 3480,
"loc": {
"start": {
"line": 143,
"column": 38
},
"end": {
"line": 143,
"column": 43
},
"identifierName": "value"
},
"name": "value"
}
]
},
{
"type": "ArrayExpression",
"start": 3483,
"end": 3503,
"loc": {
"start": {
"line": 143,
"column": 46
},
"end": {
"line": 143,
"column": 66
}
},
"elements": [
{
"type": "StringLiteral",
"start": 3484,
"end": 3494,
"loc": {
"start": {
"line": 143,
"column": 47
},
"end": {
"line": 143,
"column": 57
}
},
"extra": {
"rawValue": "selected",
"raw": "'selected'"
},
"value": "selected"
},
{
"type": "StringLiteral",
"start": 3496,
"end": 3502,
"loc": {
"start": {
"line": 143,
"column": 59
},
"end": {
"line": 143,
"column": 65
}
},
"extra": {
"rawValue": "true",
"raw": "'true'"
},
"value": "true"
}
]
}
]
},
"alternate": {
"type": "CallExpression",
"start": 3515,
"end": 3552,
"loc": {
"start": {
"line": 144,
"column": 8
},
"end": {
"line": 144,
"column": 45
}
},
"callee": {
"type": "Identifier",
"start": 3515,
"end": 3524,
"loc": {
"start": {
"line": 144,
"column": 8
},
"end": {
"line": 144,
"column": 17
},
"identifierName": "createElm"
},
"name": "createElm"
},
"arguments": [
{
"type": "StringLiteral",
"start": 3525,
"end": 3533,
"loc": {
"start": {
"line": 144,
"column": 18
},
"end": {
"line": 144,
"column": 26
}
},
"extra": {
"rawValue": "option",
"raw": "'option'"
},
"value": "option"
},
{
"type": "ArrayExpression",
"start": 3535,
"end": 3551,
"loc": {
"start": {
"line": 144,
"column": 28
},
"end": {
"line": 144,
"column": 44
}
},
"elements": [
{
"type": "StringLiteral",
"start": 3536,
"end": 3543,
"loc": {
"start": {
"line": 144,
"column": 29
},
"end": {
"line": 144,
"column": 36
}
},
"extra": {
"rawValue": "value",
"raw": "'value'"
},
"value": "value"
},
{
"type": "Identifier",
"start": 3545,
"end": 3550,
"loc": {
"start": {
"line": 144,
"column": 38
},
"end": {
"line": 144,
"column": 43
},
"identifierName": "value"
},
"name": "value"
}
]
}
]
}
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 3558,
"end": 3592,
"loc": {
"start": {
"line": 145,
"column": 4
},
"end": {
"line": 145,
"column": 38
}
},
"expression": {
"type": "CallExpression",
"start": 3558,
"end": 3591,
"loc": {
"start": {
"line": 145,
"column": 4
},
"end": {
"line": 145,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 3558,
"end": 3573,
"loc": {
"start": {
"line": 145,
"column": 4
},
"end": {
"line": 145,
"column": 19
}
},
"object": {
"type": "Identifier",
"start": 3558,
"end": 3561,
"loc": {
"start": {
"line": 145,
"column": 4
},
"end": {
"line": 145,
"column": 7
},
"identifierName": "opt"
},
"name": "opt"
},
"property": {
"type": "Identifier",
"start": 3562,
"end": 3573,
"loc": {
"start": {
"line": 145,
"column": 8
},
"end": {
"line": 145,
"column": 19
},
"identifierName": "appendChild"
},
"name": "appendChild"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 3574,
"end": 3590,
"loc": {
"start": {
"line": 145,
"column": 20
},
"end": {
"line": 145,
"column": 36
}
},
"callee": {
"type": "Identifier",
"start": 3574,
"end": 3584,
"loc": {
"start": {
"line": 145,
"column": 20
},
"end": {
"line": 145,
"column": 30
},
"identifierName": "createText"
},
"name": "createText"
},
"arguments": [
{
"type": "Identifier",
"start": 3585,
"end": 3589,
"loc": {
"start": {
"line": 145,
"column": 31
},
"end": {
"line": 145,
"column": 35
},
"identifierName": "text"
},
"name": "text"
}
]
}
]
}
},
{
"type": "ReturnStatement",
"start": 3597,
"end": 3608,
"loc": {
"start": {
"line": 146,
"column": 4
},
"end": {
"line": 146,
"column": 15
}
},
"argument": {
"type": "Identifier",
"start": 3604,
"end": 3607,
"loc": {
"start": {
"line": 146,
"column": 11
},
"end": {
"line": 146,
"column": 14
},
"identifierName": "opt"
},
"name": "opt"
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n ",
"start": 3092,
"end": 3315,
"loc": {
"start": {
"line": 133,
"column": 0
},
"end": {
"line": 139,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @param {Array} extraAttr array containing attribute name and its value\n * @return {Object} li DOM element\n ",
"start": 3613,
"end": 3924,
"loc": {
"start": {
"line": 149,
"column": 0
},
"end": {
"line": 156,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n ",
"start": 3092,
"end": 3315,
"loc": {
"start": {
"line": 133,
"column": 0
},
"end": {
"line": 139,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @param {Array} extraAttr array containing attribute name and its value\n * @return {Object} li DOM element\n ",
"start": 3613,
"end": 3924,
"loc": {
"start": {
"line": 149,
"column": 0
},
"end": {
"line": 156,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 3925,
"end": 4407,
"loc": {
"start": {
"line": 157,
"column": 0
},
"end": {
"line": 173,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 3932,
"end": 4407,
"loc": {
"start": {
"line": 157,
"column": 7
},
"end": {
"line": 173,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3938,
"end": 4406,
"loc": {
"start": {
"line": 157,
"column": 13
},
"end": {
"line": 173,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 3938,
"end": 3953,
"loc": {
"start": {
"line": 157,
"column": 13
},
"end": {
"line": 157,
"column": 28
},
"identifierName": "createCheckItem"
},
"name": "createCheckItem",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 3956,
"end": 4406,
"loc": {
"start": {
"line": 157,
"column": 31
},
"end": {
"line": 173,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 3938,
"end": 3953,
"loc": {
"start": {
"line": 157,
"column": 13
},
"end": {
"line": 157,
"column": 28
},
"identifierName": "createCheckItem"
},
"name": "createCheckItem",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3957,
"end": 3959,
"loc": {
"start": {
"line": 157,
"column": 32
},
"end": {
"line": 157,
"column": 34
},
"identifierName": "id"
},
"name": "id"
},
{
"type": "Identifier",
"start": 3961,
"end": 3969,
"loc": {
"start": {
"line": 157,
"column": 36
},
"end": {
"line": 157,
"column": 44
},
"identifierName": "chkValue"
},
"name": "chkValue"
},
{
"type": "Identifier",
"start": 3971,
"end": 3980,
"loc": {
"start": {
"line": 157,
"column": 46
},
"end": {
"line": 157,
"column": 55
},
"identifierName": "labelText"
},
"name": "labelText"
},
{
"type": "AssignmentPattern",
"start": 3982,
"end": 3996,
"loc": {
"start": {
"line": 157,
"column": 57
},
"end": {
"line": 157,
"column": 71
}
},
"left": {
"type": "Identifier",
"start": 3982,
"end": 3991,
"loc": {
"start": {
"line": 157,
"column": 57
},
"end": {
"line": 157,
"column": 66
},
"identifierName": "extraAttr"
},
"name": "extraAttr"
},
"right": {
"type": "ArrayExpression",
"start": 3994,
"end": 3996,
"loc": {
"start": {
"line": 157,
"column": 69
},
"end": {
"line": 157,
"column": 71
}
},
"elements": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 4001,
"end": 4406,
"loc": {
"start": {
"line": 157,
"column": 76
},
"end": {
"line": 173,
"column": 1
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 4007,
"end": 4032,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 158,
"column": 29
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4011,
"end": 4031,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 28
}
},
"id": {
"type": "Identifier",
"start": 4011,
"end": 4013,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 10
},
"identifierName": "li"
},
"name": "li"
},
"init": {
"type": "CallExpression",
"start": 4016,
"end": 4031,
"loc": {
"start": {
"line": 158,
"column": 13
},
"end": {
"line": 158,
"column": 28
}
},
"callee": {
"type": "Identifier",
"start": 4016,
"end": 4025,
"loc": {
"start": {
"line": 158,
"column": 13
},
"end": {
"line": 158,
"column": 22
},
"identifierName": "createElm"
},
"name": "createElm"
},
"arguments": [
{
"type": "StringLiteral",
"start": 4026,
"end": 4030,
"loc": {
"start": {
"line": 158,
"column": 23
},
"end": {
"line": 158,
"column": 27
}
},
"extra": {
"rawValue": "li",
"raw": "'li'"
},
"value": "li"
}
]
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 4037,
"end": 4081,
"loc": {
"start": {
"line": 159,
"column": 4
},
"end": {
"line": 159,
"column": 48
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4041,
"end": 4080,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 47
}
},
"id": {
"type": "Identifier",
"start": 4041,
"end": 4046,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 13
},
"identifierName": "label"
},
"name": "label"
},
"init": {
"type": "CallExpression",
"start": 4049,
"end": 4080,
"loc": {
"start": {
"line": 159,
"column": 16
},
"end": {
"line": 159,
"column": 47
}
},
"callee": {
"type": "Identifier",
"start": 4049,
"end": 4058,
"loc": {
"start": {
"line": 159,
"column": 16
},
"end": {
"line": 159,
"column": 25
},
"identifierName": "createElm"
},
"name": "createElm"
},
"arguments": [
{
"type": "StringLiteral",
"start": 4059,
"end": 4066,
"loc": {
"start": {
"line": 159,
"column": 26
},
"end": {
"line": 159,
"column": 33
}
},
"extra": {
"rawValue": "label",
"raw": "'label'"
},
"value": "label"
},
{
"type": "ArrayExpression",
"start": 4068,
"end": 4079,
"loc": {
"start": {
"line": 159,
"column": 35
},
"end": {
"line": 159,
"column": 46
}
},
"elements": [
{
"type": "StringLiteral",
"start": 4069,
"end": 4074,
"loc": {
"start": {
"line": 159,
"column": 36
},
"end": {
"line": 159,
"column": 41
}
},
"extra": {
"rawValue": "for",
"raw": "'for'"
},
"value": "for"
},
{
"type": "Identifier",
"start": 4076,
"end": 4078,
"loc": {
"start": {
"line": 159,
"column": 43
},
"end": {
"line": 159,
"column": 45
},
"identifierName": "id"
},
"name": "id"
}
]
}
]
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 4086,
"end": 4242,
"loc": {
"start": {
"line": 160,
"column": 4
},
"end": {
"line": 166,
"column": 6
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4090,
"end": 4241,
"loc": {
"start": {
"line": 160,
"column": 8
},
"end": {
"line": 166,
"column": 5
}
},
"id": {
"type": "Identifier",
"start": 4090,
"end": 4095,
"loc": {
"start": {
"line": 160,
"column": 8
},
"end": {
"line": 160,
"column": 13
},
"identifierName": "check"
},
"name": "check"
},
"init": {
"type": "CallExpression",
"start": 4098,
"end": 4241,
"loc": {
"start": {
"line": 160,
"column": 16
},
"end": {
"line": 166,
"column": 5
}
},
"callee": {
"type": "Identifier",
"start": 4098,
"end": 4107,
"loc": {
"start": {
"line": 160,
"column": 16
},
"end": {
"line": 160,
"column": 25
},
"identifierName": "createElm"
},
"name": "createElm"
},
"arguments": [
{
"type": "StringLiteral",
"start": 4108,
"end": 4115,
"loc": {
"start": {
"line": 160,
"column": 26
},
"end": {
"line": 160,
"column": 33
}
},
"extra": {
"rawValue": "input",
"raw": "'input'"
},
"value": "input"
},
{
"type": "ArrayExpression",
"start": 4125,
"end": 4135,
"loc": {
"start": {
"line": 161,
"column": 8
},
"end": {
"line": 161,
"column": 18
}
},
"elements": [
{
"type": "StringLiteral",
"start": 4126,
"end": 4130,
"loc": {
"start": {
"line": 161,
"column": 9
},
"end": {
"line": 161,
"column": 13
}
},
"extra": {
"rawValue": "id",
"raw": "'id'"
},
"value": "id"
},
{
"type": "Identifier",
"start": 4132,
"end": 4134,
"loc": {
"start": {
"line": 161,
"column": 15
},
"end": {
"line": 161,
"column": 17
},
"identifierName": "id"
},
"name": "id"
}
]
},
{
"type": "ArrayExpression",
"start": 4145,
"end": 4157,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 20
}
},
"elements": [
{
"type": "StringLiteral",
"start": 4146,
"end": 4152,
"loc": {
"start": {
"line": 162,
"column": 9
},
"end": {
"line": 162,
"column": 15
}
},
"extra": {
"rawValue": "name",
"raw": "'name'"
},
"value": "name"
},
{
"type": "Identifier",
"start": 4154,
"end": 4156,
"loc": {
"start": {
"line": 162,
"column": 17
},
"end": {
"line": 162,
"column": 19
},
"identifierName": "id"
},
"name": "id"
}
]
},
{
"type": "ArrayExpression",
"start": 4167,
"end": 4187,
"loc": {
"start": {
"line": 163,
"column": 8
},
"end": {
"line": 163,
"column": 28
}
},
"elements": [
{
"type": "StringLiteral",
"start": 4168,
"end": 4174,
"loc": {
"start": {
"line": 163,
"column": 9
},
"end": {
"line": 163,
"column": 15
}
},
"extra": {
"rawValue": "type",
"raw": "'type'"
},
"value": "type"
},
{
"type": "StringLiteral",
"start": 4176,
"end": 4186,
"loc": {
"start": {
"line": 163,
"column": 17
},
"end": {
"line": 163,
"column": 27
}
},
"extra": {
"rawValue": "checkbox",
"raw": "'checkbox'"
},
"value": "checkbox"
}
]
},
{
"type": "ArrayExpression",
"start": 4197,
"end": 4216,
"loc": {
"start": {
"line": 164,
"column": 8
},
"end": {
"line": 164,
"column": 27
}
},
"elements": [
{
"type": "StringLiteral",
"start": 4198,
"end": 4205,
"loc": {
"start": {
"line": 164,
"column": 9
},
"end": {
"line": 164,
"column": 16
}
},
"extra": {
"rawValue": "value",
"raw": "'value'"
},
"value": "value"
},
{
"type": "Identifier",
"start": 4207,
"end": 4215,
"loc": {
"start": {
"line": 164,
"column": 18
},
"end": {
"line": 164,
"column": 26
},
"identifierName": "chkValue"
},
"name": "chkValue"
}
]
},
{
"type": "Identifier",
"start": 4226,
"end": 4235,
"loc": {
"start": {
"line": 165,
"column": 8
},
"end": {
"line": 165,
"column": 17
},
"identifierName": "extraAttr"
},
"name": "extraAttr"
}
]
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 4247,
"end": 4272,
"loc": {
"start": {
"line": 167,
"column": 4
},
"end": {
"line": 167,
"column": 29
}
},
"expression": {
"type": "CallExpression",
"start": 4247,
"end": 4271,
"loc": {
"start": {
"line": 167,
"column": 4
},
"end": {
"line": 167,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 4247,
"end": 4264,
"loc": {
"start": {
"line": 167,
"column": 4
},
"end": {
"line": 167,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 4247,
"end": 4252,
"loc": {
"start": {
"line": 167,
"column": 4
},
"end": {
"line": 167,
"column": 9
},
"identifierName": "label"
},
"name": "label"
},
"property": {
"type": "Identifier",
"start": 4253,
"end": 4264,
"loc": {
"start": {
"line": 167,
"column": 10
},
"end": {
"line": 167,
"column": 21
},
"identifierName": "appendChild"
},
"name": "appendChild"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4265,
"end": 4270,
"loc": {
"start": {
"line": 167,
"column": 22
},
"end": {
"line": 167,
"column": 27
},
"identifierName": "check"
},
"name": "check"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 4277,
"end": 4318,
"loc": {
"start": {
"line": 168,
"column": 4
},
"end": {
"line": 168,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 4277,
"end": 4317,
"loc": {
"start": {
"line": 168,
"column": 4
},
"end": {
"line": 168,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 4277,
"end": 4294,
"loc": {
"start": {
"line": 168,
"column": 4
},
"end": {
"line": 168,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 4277,
"end": 4282,
"loc": {
"start": {
"line": 168,
"column": 4
},
"end": {
"line": 168,
"column": 9
},
"identifierName": "label"
},
"name": "label"
},
"property": {
"type": "Identifier",
"start": 4283,
"end": 4294,
"loc": {
"start": {
"line": 168,
"column": 10
},
"end": {
"line": 168,
"column": 21
},
"identifierName": "appendChild"
},
"name": "appendChild"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 4295,
"end": 4316,
"loc": {
"start": {
"line": 168,
"column": 22
},
"end": {
"line": 168,
"column": 43
}
},
"callee": {
"type": "Identifier",
"start": 4295,
"end": 4305,
"loc": {
"start": {
"line": 168,
"column": 22
},
"end": {
"line": 168,
"column": 32
},
"identifierName": "createText"
},
"name": "createText"
},
"arguments": [
{
"type": "Identifier",
"start": 4306,
"end": 4315,
"loc": {
"start": {
"line": 168,
"column": 33
},
"end": {
"line": 168,
"column": 42
},
"identifierName": "labelText"
},
"name": "labelText"
}
]
}
]
}
},
{
"type": "ExpressionStatement",
"start": 4323,
"end": 4345,
"loc": {
"start": {
"line": 169,
"column": 4
},
"end": {
"line": 169,
"column": 26
}
},
"expression": {
"type": "CallExpression",
"start": 4323,
"end": 4344,
"loc": {
"start": {
"line": 169,
"column": 4
},
"end": {
"line": 169,
"column": 25
}
},
"callee": {
"type": "MemberExpression",
"start": 4323,
"end": 4337,
"loc": {
"start": {
"line": 169,
"column": 4
},
"end": {
"line": 169,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 4323,
"end": 4325,
"loc": {
"start": {
"line": 169,
"column": 4
},
"end": {
"line": 169,
"column": 6
},
"identifierName": "li"
},
"name": "li"
},
"property": {
"type": "Identifier",
"start": 4326,
"end": 4337,
"loc": {
"start": {
"line": 169,
"column": 7
},
"end": {
"line": 169,
"column": 18
},
"identifierName": "appendChild"
},
"name": "appendChild"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4338,
"end": 4343,
"loc": {
"start": {
"line": 169,
"column": 19
},
"end": {
"line": 169,
"column": 24
},
"identifierName": "label"
},
"name": "label"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 4350,
"end": 4367,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 170,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4350,
"end": 4366,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 170,
"column": 20
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 4350,
"end": 4358,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 170,
"column": 12
}
},
"object": {
"type": "Identifier",
"start": 4350,
"end": 4352,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 170,
"column": 6
},
"identifierName": "li"
},
"name": "li"
},
"property": {
"type": "Identifier",
"start": 4353,
"end": 4358,
"loc": {
"start": {
"line": 170,
"column": 7
},
"end": {
"line": 170,
"column": 12
},
"identifierName": "label"
},
"name": "label"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 4361,
"end": 4366,
"loc": {
"start": {
"line": 170,
"column": 15
},
"end": {
"line": 170,
"column": 20
},
"identifierName": "label"
},
"name": "label"
}
}
},
{
"type": "ExpressionStatement",
"start": 4372,
"end": 4389,
"loc": {
"start": {
"line": 171,
"column": 4
},
"end": {
"line": 171,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4372,
"end": 4388,
"loc": {
"start": {
"line": 171,
"column": 4
},
"end": {
"line": 171,
"column": 20
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 4372,
"end": 4380,
"loc": {
"start": {
"line": 171,
"column": 4
},
"end": {
"line": 171,
"column": 12
}
},
"object": {
"type": "Identifier",
"start": 4372,
"end": 4374,
"loc": {
"start": {
"line": 171,
"column": 4
},
"end": {
"line": 171,
"column": 6
},
"identifierName": "li"
},
"name": "li"
},
"property": {
"type": "Identifier",
"start": 4375,
"end": 4380,
"loc": {
"start": {
"line": 171,
"column": 7
},
"end": {
"line": 171,
"column": 12
},
"identifierName": "check"
},
"name": "check"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 4383,
"end": 4388,
"loc": {
"start": {
"line": 171,
"column": 15
},
"end": {
"line": 171,
"column": 20
},
"identifierName": "check"
},
"name": "check"
}
}
},
{
"type": "ReturnStatement",
"start": 4394,
"end": 4404,
"loc": {
"start": {
"line": 172,
"column": 4
},
"end": {
"line": 172,
"column": 14
}
},
"argument": {
"type": "Identifier",
"start": 4401,
"end": 4403,
"loc": {
"start": {
"line": 172,
"column": 11
},
"end": {
"line": 172,
"column": 13
},
"identifierName": "li"
},
"name": "li"
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @param {Array} extraAttr array containing attribute name and its value\n * @return {Object} li DOM element\n ",
"start": 3613,
"end": 3924,
"loc": {
"start": {
"line": 149,
"column": 0
},
"end": {
"line": 156,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n ",
"start": 4409,
"end": 4531,
"loc": {
"start": {
"line": 175,
"column": 0
},
"end": {
"line": 179,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @param {Array} extraAttr array containing attribute name and its value\n * @return {Object} li DOM element\n ",
"start": 3613,
"end": 3924,
"loc": {
"start": {
"line": 149,
"column": 0
},
"end": {
"line": 156,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n ",
"start": 4409,
"end": 4531,
"loc": {
"start": {
"line": 175,
"column": 0
},
"end": {
"line": 179,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 4532,
"end": 4582,
"loc": {
"start": {
"line": 180,
"column": 0
},
"end": {
"line": 180,
"column": 50
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 4539,
"end": 4582,
"loc": {
"start": {
"line": 180,
"column": 7
},
"end": {
"line": 180,
"column": 50
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4545,
"end": 4581,
"loc": {
"start": {
"line": 180,
"column": 13
},
"end": {
"line": 180,
"column": 49
}
},
"id": {
"type": "Identifier",
"start": 4545,
"end": 4548,
"loc": {
"start": {
"line": 180,
"column": 13
},
"end": {
"line": 180,
"column": 16
},
"identifierName": "elm"
},
"name": "elm",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 4551,
"end": 4581,
"loc": {
"start": {
"line": 180,
"column": 19
},
"end": {
"line": 180,
"column": 49
}
},
"id": {
"type": "Identifier",
"start": 4545,
"end": 4548,
"loc": {
"start": {
"line": 180,
"column": 13
},
"end": {
"line": 180,
"column": 16
},
"identifierName": "elm"
},
"name": "elm",
"leadingComments": null
},
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4552,
"end": 4554,
"loc": {
"start": {
"line": 180,
"column": 20
},
"end": {
"line": 180,
"column": 22
},
"identifierName": "id"
},
"name": "id"
}
],
"body": {
"type": "CallExpression",
"start": 4559,
"end": 4581,
"loc": {
"start": {
"line": 180,
"column": 27
},
"end": {
"line": 180,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 4559,
"end": 4577,
"loc": {
"start": {
"line": 180,
"column": 27
},
"end": {
"line": 180,
"column": 45
}
},
"object": {
"type": "Identifier",
"start": 4559,
"end": 4562,
"loc": {
"start": {
"line": 180,
"column": 27
},
"end": {
"line": 180,
"column": 30
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 4563,
"end": 4577,
"loc": {
"start": {
"line": 180,
"column": 31
},
"end": {
"line": 180,
"column": 45
},
"identifierName": "getElementById"
},
"name": "getElementById"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4578,
"end": 4580,
"loc": {
"start": {
"line": 180,
"column": 46
},
"end": {
"line": 180,
"column": 48
},
"identifierName": "id"
},
"name": "id"
}
]
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n ",
"start": 4409,
"end": 4531,
"loc": {
"start": {
"line": 175,
"column": 0
},
"end": {
"line": 179,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n ",
"start": 4584,
"end": 4709,
"loc": {
"start": {
"line": 182,
"column": 0
},
"end": {
"line": 186,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n ",
"start": 4409,
"end": 4531,
"loc": {
"start": {
"line": 175,
"column": 0
},
"end": {
"line": 179,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n ",
"start": 4584,
"end": 4709,
"loc": {
"start": {
"line": 182,
"column": 0
},
"end": {
"line": 186,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 4710,
"end": 4777,
"loc": {
"start": {
"line": 187,
"column": 0
},
"end": {
"line": 187,
"column": 67
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 4717,
"end": 4777,
"loc": {
"start": {
"line": 187,
"column": 7
},
"end": {
"line": 187,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4723,
"end": 4776,
"loc": {
"start": {
"line": 187,
"column": 13
},
"end": {
"line": 187,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 4723,
"end": 4726,
"loc": {
"start": {
"line": 187,
"column": 13
},
"end": {
"line": 187,
"column": 16
},
"identifierName": "tag"
},
"name": "tag",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 4729,
"end": 4776,
"loc": {
"start": {
"line": 187,
"column": 19
},
"end": {
"line": 187,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 4723,
"end": 4726,
"loc": {
"start": {
"line": 187,
"column": 13
},
"end": {
"line": 187,
"column": 16
},
"identifierName": "tag"
},
"name": "tag",
"leadingComments": null
},
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4730,
"end": 4731,
"loc": {
"start": {
"line": 187,
"column": 20
},
"end": {
"line": 187,
"column": 21
},
"identifierName": "o"
},
"name": "o"
},
{
"type": "Identifier",
"start": 4733,
"end": 4740,
"loc": {
"start": {
"line": 187,
"column": 23
},
"end": {
"line": 187,
"column": 30
},
"identifierName": "tagname"
},
"name": "tagname"
}
],
"body": {
"type": "CallExpression",
"start": 4745,
"end": 4776,
"loc": {
"start": {
"line": 187,
"column": 35
},
"end": {
"line": 187,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 4745,
"end": 4767,
"loc": {
"start": {
"line": 187,
"column": 35
},
"end": {
"line": 187,
"column": 57
}
},
"object": {
"type": "Identifier",
"start": 4745,
"end": 4746,
"loc": {
"start": {
"line": 187,
"column": 35
},
"end": {
"line": 187,
"column": 36
},
"identifierName": "o"
},
"name": "o"
},
"property": {
"type": "Identifier",
"start": 4747,
"end": 4767,
"loc": {
"start": {
"line": 187,
"column": 37
},
"end": {
"line": 187,
"column": 57
},
"identifierName": "getElementsByTagName"
},
"name": "getElementsByTagName"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4768,
"end": 4775,
"loc": {
"start": {
"line": 187,
"column": 58
},
"end": {
"line": 187,
"column": 65
},
"identifierName": "tagname"
},
"name": "tagname"
}
]
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n ",
"start": 4584,
"end": 4709,
"loc": {
"start": {
"line": 182,
"column": 0
},
"end": {
"line": 186,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " HTML5 classList API",
"start": 4779,
"end": 4801,
"loc": {
"start": {
"line": 189,
"column": 0
},
"end": {
"line": 189,
"column": 22
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n ",
"start": 4584,
"end": 4709,
"loc": {
"start": {
"line": 182,
"column": 0
},
"end": {
"line": 186,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " HTML5 classList API",
"start": 4779,
"end": 4801,
"loc": {
"start": {
"line": 189,
"column": 0
},
"end": {
"line": 189,
"column": 22
}
}
}
]
},
{
"type": "FunctionDeclaration",
"start": 4802,
"end": 4876,
"loc": {
"start": {
"line": 190,
"column": 0
},
"end": {
"line": 192,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 4811,
"end": 4828,
"loc": {
"start": {
"line": 190,
"column": 9
},
"end": {
"line": 190,
"column": 26
},
"identifierName": "supportsClassList"
},
"name": "supportsClassList",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 4831,
"end": 4876,
"loc": {
"start": {
"line": 190,
"column": 29
},
"end": {
"line": 192,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"start": 4837,
"end": 4874,
"loc": {
"start": {
"line": 191,
"column": 4
},
"end": {
"line": 191,
"column": 41
}
},
"argument": {
"type": "MemberExpression",
"start": 4844,
"end": 4873,
"loc": {
"start": {
"line": 191,
"column": 11
},
"end": {
"line": 191,
"column": 40
}
},
"object": {
"type": "MemberExpression",
"start": 4844,
"end": 4863,
"loc": {
"start": {
"line": 191,
"column": 11
},
"end": {
"line": 191,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 4844,
"end": 4847,
"loc": {
"start": {
"line": 191,
"column": 11
},
"end": {
"line": 191,
"column": 14
},
"identifierName": "doc"
},
"name": "doc"
},
"property": {
"type": "Identifier",
"start": 4848,
"end": 4863,
"loc": {
"start": {
"line": 191,
"column": 15
},
"end": {
"line": 191,
"column": 30
},
"identifierName": "documentElement"
},
"name": "documentElement"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4864,
"end": 4873,
"loc": {
"start": {
"line": 191,
"column": 31
},
"end": {
"line": 191,
"column": 40
},
"identifierName": "classList"
},
"name": "classList"
},
"computed": false
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentLine",
"value": " HTML5 classList API",
"start": 4779,
"end": 4801,
"loc": {
"start": {
"line": 189,
"column": 0
},
"end": {
"line": 189,
"column": 22
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * DOM utilities\n ",
"start": 113,
"end": 137,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n ",
"start": 167,
"end": 273,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n ",
"start": 428,
"end": 552,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n ",
"start": 767,
"end": 1086,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 43,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n ",
"start": 1441,
"end": 1552,
"loc": {
"start": {
"line": 61,
"column": 0
},
"end": {
"line": 65,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n ",
"start": 1624,
"end": 1714,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 72,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n ",
"start": 1776,
"end": 1951,
"loc": {
"start": {
"line": 75,
"column": 0
},
"end": {
"line": 80,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2203,
"end": 2337,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 96,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2660,
"end": 2797,
"loc": {
"start": {
"line": 115,
"column": 0
},
"end": {
"line": 119,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n ",
"start": 3092,
"end": 3315,
"loc": {
"start": {
"line": 133,
"column": 0
},
"end": {
"line": 139,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @param {Array} extraAttr array containing attribute name and its value\n * @return {Object} li DOM element\n ",
"start": 3613,
"end": 3924,
"loc": {
"start": {
"line": 149,
"column": 0
},
"end": {
"line": 156,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n ",
"start": 4409,
"end": 4531,
"loc": {
"start": {
"line": 175,
"column": 0
},
"end": {
"line": 179,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n ",
"start": 4584,
"end": 4709,
"loc": {
"start": {
"line": 182,
"column": 0
},
"end": {
"line": 186,
"column": 3
}
}
},
{
"type": "CommentLine",
"value": " HTML5 classList API",
"start": 4779,
"end": 4801,
"loc": {
"start": {
"line": 189,
"column": 0
},
"end": {
"line": 189,
"column": 22
}
}
}
],
"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": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 12,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 14,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./root",
"start": 19,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 27,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 28
}
}
},
{
"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": 29,
"end": 35,
"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": 36,
"end": 37,
"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": "isArray",
"start": 37,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 44,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isString",
"start": 46,
"end": 54,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 54,
"end": 55,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isUndef",
"start": 56,
"end": 63,
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 63,
"end": 64,
"loc": {
"start": {
"line": 2,
"column": 34
},
"end": {
"line": 2,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 65,
"end": 69,
"loc": {
"start": {
"line": 2,
"column": 36
},
"end": {
"line": 2,
"column": 40
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./types",
"start": 70,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 41
},
"end": {
"line": 2,
"column": 50
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 79,
"end": 80,
"loc": {
"start": {
"line": 2,
"column": 50
},
"end": {
"line": 2,
"column": 51
}
}
},
{
"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": 81,
"end": 87,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 88,
"end": 89,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 89,
"end": 93,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 93,
"end": 94,
"loc": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 95,
"end": 99,
"loc": {
"start": {
"line": 3,
"column": 14
},
"end": {
"line": 3,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./string",
"start": 100,
"end": 110,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 110,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 29
},
"end": {
"line": 3,
"column": 30
}
}
},
{
"type": "CommentBlock",
"value": "*\n * DOM utilities\n ",
"start": 113,
"end": 137,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"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": 139,
"end": 144,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "doc",
"start": 145,
"end": 148,
"loc": {
"start": {
"line": 9,
"column": 6
},
"end": {
"line": 9,
"column": 9
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 149,
"end": 150,
"loc": {
"start": {
"line": 9,
"column": 10
},
"end": {
"line": 9,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 151,
"end": 155,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 155,
"end": 156,
"loc": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "document",
"start": 156,
"end": 164,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 164,
"end": 165,
"loc": {
"start": {
"line": 9,
"column": 25
},
"end": {
"line": 9,
"column": 26
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns text + text of children of given node\n * @param {NodeElement} node\n * @return {String}\n ",
"start": 167,
"end": 273,
"loc": {
"start": {
"line": 11,
"column": 0
},
"end": {
"line": 15,
"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": 274,
"end": 280,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"column": 6
}
}
},
{
"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": 281,
"end": 286,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getText",
"start": 287,
"end": 294,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 295,
"end": 296,
"loc": {
"start": {
"line": 16,
"column": 21
},
"end": {
"line": 16,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 297,
"end": 298,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 298,
"end": 302,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 302,
"end": 303,
"loc": {
"start": {
"line": 16,
"column": 28
},
"end": {
"line": 16,
"column": 29
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 304,
"end": 306,
"loc": {
"start": {
"line": 16,
"column": 30
},
"end": {
"line": 16,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 307,
"end": 308,
"loc": {
"start": {
"line": 16,
"column": 33
},
"end": {
"line": 16,
"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": 313,
"end": 315,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 316,
"end": 317,
"loc": {
"start": {
"line": 17,
"column": 7
},
"end": {
"line": 17,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isUndef",
"start": 317,
"end": 324,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 324,
"end": 325,
"loc": {
"start": {
"line": 17,
"column": 15
},
"end": {
"line": 17,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 325,
"end": 329,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 329,
"end": 330,
"loc": {
"start": {
"line": 17,
"column": 20
},
"end": {
"line": 17,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "textContent",
"start": 330,
"end": 341,
"loc": {
"start": {
"line": 17,
"column": 21
},
"end": {
"line": 17,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 341,
"end": 342,
"loc": {
"start": {
"line": 17,
"column": 32
},
"end": {
"line": 17,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 342,
"end": 343,
"loc": {
"start": {
"line": 17,
"column": 33
},
"end": {
"line": 17,
"column": 34
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 344,
"end": 345,
"loc": {
"start": {
"line": 17,
"column": 35
},
"end": {
"line": 17,
"column": 36
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 354,
"end": 360,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 361,
"end": 365,
"loc": {
"start": {
"line": 18,
"column": 15
},
"end": {
"line": 18,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 365,
"end": 366,
"loc": {
"start": {
"line": 18,
"column": 19
},
"end": {
"line": 18,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 366,
"end": 370,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 370,
"end": 371,
"loc": {
"start": {
"line": 18,
"column": 24
},
"end": {
"line": 18,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "innerText",
"start": 371,
"end": 380,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 380,
"end": 381,
"loc": {
"start": {
"line": 18,
"column": 34
},
"end": {
"line": 18,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 381,
"end": 382,
"loc": {
"start": {
"line": 18,
"column": 35
},
"end": {
"line": 18,
"column": 36
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 387,
"end": 388,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 5
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 393,
"end": 399,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trim",
"start": 400,
"end": 404,
"loc": {
"start": {
"line": 20,
"column": 11
},
"end": {
"line": 20,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 404,
"end": 405,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 405,
"end": 409,
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 20,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 409,
"end": 410,
"loc": {
"start": {
"line": 20,
"column": 20
},
"end": {
"line": 20,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "textContent",
"start": 410,
"end": 421,
"loc": {
"start": {
"line": 20,
"column": 21
},
"end": {
"line": 20,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 421,
"end": 422,
"loc": {
"start": {
"line": 20,
"column": 32
},
"end": {
"line": 20,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 422,
"end": 423,
"loc": {
"start": {
"line": 20,
"column": 33
},
"end": {
"line": 20,
"column": 34
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 424,
"end": 425,
"loc": {
"start": {
"line": 21,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 425,
"end": 426,
"loc": {
"start": {
"line": 21,
"column": 1
},
"end": {
"line": 21,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the first text node contained in the supplied node\n * @param {NodeElement} node node\n * @return {String}\n ",
"start": 428,
"end": 552,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 27,
"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": 553,
"end": 559,
"loc": {
"start": {
"line": 28,
"column": 0
},
"end": {
"line": 28,
"column": 6
}
}
},
{
"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": 560,
"end": 565,
"loc": {
"start": {
"line": 28,
"column": 7
},
"end": {
"line": 28,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getFirstTextNode",
"start": 566,
"end": 582,
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 28,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 583,
"end": 584,
"loc": {
"start": {
"line": 28,
"column": 30
},
"end": {
"line": 28,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 585,
"end": 586,
"loc": {
"start": {
"line": 28,
"column": 32
},
"end": {
"line": 28,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 586,
"end": 590,
"loc": {
"start": {
"line": 28,
"column": 33
},
"end": {
"line": 28,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 590,
"end": 591,
"loc": {
"start": {
"line": 28,
"column": 37
},
"end": {
"line": 28,
"column": 38
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 592,
"end": 594,
"loc": {
"start": {
"line": 28,
"column": 39
},
"end": {
"line": 28,
"column": 41
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 595,
"end": 596,
"loc": {
"start": {
"line": 28,
"column": 42
},
"end": {
"line": 28,
"column": 43
}
}
},
{
"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": 601,
"end": 604,
"loc": {
"start": {
"line": 29,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 605,
"end": 606,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 9
}
}
},
{
"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": 606,
"end": 609,
"loc": {
"start": {
"line": 29,
"column": 9
},
"end": {
"line": 29,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 610,
"end": 611,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 612,
"end": 613,
"loc": {
"start": {
"line": 29,
"column": 15
},
"end": {
"line": 29,
"column": 16
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 614,
"end": 615,
"loc": {
"start": {
"line": 29,
"column": 17
},
"end": {
"line": 29,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 615,
"end": 616,
"loc": {
"start": {
"line": 29,
"column": 18
},
"end": {
"line": 29,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 617,
"end": 618,
"loc": {
"start": {
"line": 29,
"column": 20
},
"end": {
"line": 29,
"column": 21
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 619,
"end": 620,
"loc": {
"start": {
"line": 29,
"column": 22
},
"end": {
"line": 29,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 621,
"end": 625,
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 625,
"end": 626,
"loc": {
"start": {
"line": 29,
"column": 28
},
"end": {
"line": 29,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNodes",
"start": 626,
"end": 636,
"loc": {
"start": {
"line": 29,
"column": 29
},
"end": {
"line": 29,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 636,
"end": 637,
"loc": {
"start": {
"line": 29,
"column": 39
},
"end": {
"line": 29,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 637,
"end": 643,
"loc": {
"start": {
"line": 29,
"column": 40
},
"end": {
"line": 29,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 643,
"end": 644,
"loc": {
"start": {
"line": 29,
"column": 46
},
"end": {
"line": 29,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 645,
"end": 646,
"loc": {
"start": {
"line": 29,
"column": 48
},
"end": {
"line": 29,
"column": 49
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 646,
"end": 648,
"loc": {
"start": {
"line": 29,
"column": 49
},
"end": {
"line": 29,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 648,
"end": 649,
"loc": {
"start": {
"line": 29,
"column": 51
},
"end": {
"line": 29,
"column": 52
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 650,
"end": 651,
"loc": {
"start": {
"line": 29,
"column": 53
},
"end": {
"line": 29,
"column": 54
}
}
},
{
"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": 660,
"end": 663,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 664,
"end": 665,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 666,
"end": 667,
"loc": {
"start": {
"line": 30,
"column": 14
},
"end": {
"line": 30,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 668,
"end": 672,
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 672,
"end": 673,
"loc": {
"start": {
"line": 30,
"column": 20
},
"end": {
"line": 30,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "childNodes",
"start": 673,
"end": 683,
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 31
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 683,
"end": 684,
"loc": {
"start": {
"line": 30,
"column": 31
},
"end": {
"line": 30,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 684,
"end": 685,
"loc": {
"start": {
"line": 30,
"column": 32
},
"end": {
"line": 30,
"column": 33
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 685,
"end": 686,
"loc": {
"start": {
"line": 30,
"column": 33
},
"end": {
"line": 30,
"column": 34
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 686,
"end": 687,
"loc": {
"start": {
"line": 30,
"column": 34
},
"end": {
"line": 30,
"column": 35
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 696,
"end": 698,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 699,
"end": 700,
"loc": {
"start": {
"line": 31,
"column": 11
},
"end": {
"line": 31,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 700,
"end": 701,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 13
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 701,
"end": 702,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "nodeType",
"start": 702,
"end": 710,
"loc": {
"start": {
"line": 31,
"column": 14
},
"end": {
"line": 31,
"column": 22
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 711,
"end": 714,
"loc": {
"start": {
"line": 31,
"column": 23
},
"end": {
"line": 31,
"column": 26
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 3,
"start": 715,
"end": 716,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 716,
"end": 717,
"loc": {
"start": {
"line": 31,
"column": 28
},
"end": {
"line": 31,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 718,
"end": 719,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 732,
"end": 738,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "n",
"start": 739,
"end": 740,
"loc": {
"start": {
"line": 32,
"column": 19
},
"end": {
"line": 32,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 740,
"end": 741,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "data",
"start": 741,
"end": 745,
"loc": {
"start": {
"line": 32,
"column": 21
},
"end": {
"line": 32,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 745,
"end": 746,
"loc": {
"start": {
"line": 32,
"column": 25
},
"end": {
"line": 32,
"column": 26
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 755,
"end": 756,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 761,
"end": 762,
"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": 763,
"end": 764,
"loc": {
"start": {
"line": 35,
"column": 0
},
"end": {
"line": 35,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 764,
"end": 765,
"loc": {
"start": {
"line": 35,
"column": 1
},
"end": {
"line": 35,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates an html element with given collection of attributes\n * @param {String} tag a string of the html tag to create\n * @param {Array} an undetermined number of arrays containing the with 2\n * items, the attribute name and its value ['id','myId']\n * @return {Object} created element\n ",
"start": 767,
"end": 1086,
"loc": {
"start": {
"line": 37,
"column": 0
},
"end": {
"line": 43,
"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": 1087,
"end": 1093,
"loc": {
"start": {
"line": 44,
"column": 0
},
"end": {
"line": 44,
"column": 6
}
}
},
{
"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": 1094,
"end": 1099,
"loc": {
"start": {
"line": 44,
"column": 7
},
"end": {
"line": 44,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createElm",
"start": 1100,
"end": 1109,
"loc": {
"start": {
"line": 44,
"column": 13
},
"end": {
"line": 44,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1110,
"end": 1111,
"loc": {
"start": {
"line": 44,
"column": 23
},
"end": {
"line": 44,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1112,
"end": 1113,
"loc": {
"start": {
"line": 44,
"column": 25
},
"end": {
"line": 44,
"column": 26
}
}
},
{
"type": {
"label": "...",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1113,
"end": 1116,
"loc": {
"start": {
"line": 44,
"column": 26
},
"end": {
"line": 44,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "args",
"start": 1116,
"end": 1120,
"loc": {
"start": {
"line": 44,
"column": 29
},
"end": {
"line": 44,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1120,
"end": 1121,
"loc": {
"start": {
"line": 44,
"column": 33
},
"end": {
"line": 44,
"column": 34
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1122,
"end": 1124,
"loc": {
"start": {
"line": 44,
"column": 35
},
"end": {
"line": 44,
"column": 37
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1125,
"end": 1126,
"loc": {
"start": {
"line": 44,
"column": 38
},
"end": {
"line": 44,
"column": 39
}
}
},
{
"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": 1131,
"end": 1134,
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 45,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tag",
"start": 1135,
"end": 1138,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1139,
"end": 1140,
"loc": {
"start": {
"line": 45,
"column": 12
},
"end": {
"line": 45,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "args",
"start": 1141,
"end": 1145,
"loc": {
"start": {
"line": 45,
"column": 14
},
"end": {
"line": 45,
"column": 18
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1145,
"end": 1146,
"loc": {
"start": {
"line": 45,
"column": 18
},
"end": {
"line": 45,
"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": 1146,
"end": 1147,
"loc": {
"start": {
"line": 45,
"column": 19
},
"end": {
"line": 45,
"column": 20
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1147,
"end": 1148,
"loc": {
"start": {
"line": 45,
"column": 20
},
"end": {
"line": 45,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1148,
"end": 1149,
"loc": {
"start": {
"line": 45,
"column": 21
},
"end": {
"line": 45,
"column": 22
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 1154,
"end": 1156,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 46,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1157,
"end": 1158,
"loc": {
"start": {
"line": 46,
"column": 7
},
"end": {
"line": 46,
"column": 8
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 1158,
"end": 1159,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isString",
"start": 1159,
"end": 1167,
"loc": {
"start": {
"line": 46,
"column": 9
},
"end": {
"line": 46,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1167,
"end": 1168,
"loc": {
"start": {
"line": 46,
"column": 17
},
"end": {
"line": 46,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tag",
"start": 1168,
"end": 1171,
"loc": {
"start": {
"line": 46,
"column": 18
},
"end": {
"line": 46,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1171,
"end": 1172,
"loc": {
"start": {
"line": 46,
"column": 21
},
"end": {
"line": 46,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1172,
"end": 1173,
"loc": {
"start": {
"line": 46,
"column": 22
},
"end": {
"line": 46,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1174,
"end": 1175,
"loc": {
"start": {
"line": 46,
"column": 24
},
"end": {
"line": 46,
"column": 25
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1184,
"end": 1190,
"loc": {
"start": {
"line": 47,
"column": 8
},
"end": {
"line": 47,
"column": 14
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 1191,
"end": 1195,
"loc": {
"start": {
"line": 47,
"column": 15
},
"end": {
"line": 47,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1195,
"end": 1196,
"loc": {
"start": {
"line": 47,
"column": 19
},
"end": {
"line": 47,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1201,
"end": 1202,
"loc": {
"start": {
"line": 48,
"column": 4
},
"end": {
"line": 48,
"column": 5
}
}
},
{
"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": 1208,
"end": 1211,
"loc": {
"start": {
"line": 50,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "el",
"start": 1212,
"end": 1214,
"loc": {
"start": {
"line": 50,
"column": 8
},
"end": {
"line": 50,
"column": 10
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1215,
"end": 1216,
"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": "doc",
"start": 1217,
"end": 1220,
"loc": {
"start": {
"line": 50,
"column": 13
},
"end": {
"line": 50,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1220,
"end": 1221,
"loc": {
"start": {
"line": 50,
"column": 16
},
"end": {
"line": 50,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createElement",
"start": 1221,
"end": 1234,
"loc": {
"start": {
"line": 50,
"column": 17
},
"end": {
"line": 50,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1234,
"end": 1235,
"loc": {
"start": {
"line": 50,
"column": 30
},
"end": {
"line": 50,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tag",
"start": 1235,
"end": 1238,
"loc": {
"start": {
"line": 50,
"column": 31
},
"end": {
"line": 50,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1238,
"end": 1239,
"loc": {
"start": {
"line": 50,
"column": 34
},
"end": {
"line": 50,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1239,
"end": 1240,
"loc": {
"start": {
"line": 50,
"column": 35
},
"end": {
"line": 50,
"column": 36
}
}
},
{
"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": 1245,
"end": 1248,
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1249,
"end": 1250,
"loc": {
"start": {
"line": 51,
"column": 8
},
"end": {
"line": 51,
"column": 9
}
}
},
{
"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": 1250,
"end": 1253,
"loc": {
"start": {
"line": 51,
"column": 9
},
"end": {
"line": 51,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1254,
"end": 1255,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 14
}
}
},
{
"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": 51,
"column": 15
},
"end": {
"line": 51,
"column": 16
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1258,
"end": 1259,
"loc": {
"start": {
"line": 51,
"column": 17
},
"end": {
"line": 51,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1259,
"end": 1260,
"loc": {
"start": {
"line": 51,
"column": 18
},
"end": {
"line": 51,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1261,
"end": 1262,
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 51,
"column": 21
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 1263,
"end": 1264,
"loc": {
"start": {
"line": 51,
"column": 22
},
"end": {
"line": 51,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "args",
"start": 1265,
"end": 1269,
"loc": {
"start": {
"line": 51,
"column": 24
},
"end": {
"line": 51,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1269,
"end": 1270,
"loc": {
"start": {
"line": 51,
"column": 28
},
"end": {
"line": 51,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 1270,
"end": 1276,
"loc": {
"start": {
"line": 51,
"column": 29
},
"end": {
"line": 51,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1276,
"end": 1277,
"loc": {
"start": {
"line": 51,
"column": 35
},
"end": {
"line": 51,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1278,
"end": 1279,
"loc": {
"start": {
"line": 51,
"column": 37
},
"end": {
"line": 51,
"column": 38
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 1279,
"end": 1281,
"loc": {
"start": {
"line": 51,
"column": 38
},
"end": {
"line": 51,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1281,
"end": 1282,
"loc": {
"start": {
"line": 51,
"column": 40
},
"end": {
"line": 51,
"column": 41
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1283,
"end": 1284,
"loc": {
"start": {
"line": 51,
"column": 42
},
"end": {
"line": 51,
"column": 43
}
}
},
{
"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": 1293,
"end": 1296,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arg",
"start": 1297,
"end": 1300,
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 15
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1301,
"end": 1302,
"loc": {
"start": {
"line": 52,
"column": 16
},
"end": {
"line": 52,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "args",
"start": 1303,
"end": 1307,
"loc": {
"start": {
"line": 52,
"column": 18
},
"end": {
"line": 52,
"column": 22
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1307,
"end": 1308,
"loc": {
"start": {
"line": 52,
"column": 22
},
"end": {
"line": 52,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "i",
"start": 1308,
"end": 1309,
"loc": {
"start": {
"line": 52,
"column": 23
},
"end": {
"line": 52,
"column": 24
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1309,
"end": 1310,
"loc": {
"start": {
"line": 52,
"column": 24
},
"end": {
"line": 52,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1310,
"end": 1311,
"loc": {
"start": {
"line": 52,
"column": 25
},
"end": {
"line": 52,
"column": 26
}
}
},
{
"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": 1321,
"end": 1323,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1324,
"end": 1325,
"loc": {
"start": {
"line": 54,
"column": 11
},
"end": {
"line": 54,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isArray",
"start": 1325,
"end": 1332,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1332,
"end": 1333,
"loc": {
"start": {
"line": 54,
"column": 19
},
"end": {
"line": 54,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arg",
"start": 1333,
"end": 1336,
"loc": {
"start": {
"line": 54,
"column": 20
},
"end": {
"line": 54,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1336,
"end": 1337,
"loc": {
"start": {
"line": 54,
"column": 23
},
"end": {
"line": 54,
"column": 24
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1338,
"end": 1340,
"loc": {
"start": {
"line": 54,
"column": 25
},
"end": {
"line": 54,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arg",
"start": 1341,
"end": 1344,
"loc": {
"start": {
"line": 54,
"column": 28
},
"end": {
"line": 54,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1344,
"end": 1345,
"loc": {
"start": {
"line": 54,
"column": 31
},
"end": {
"line": 54,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "length",
"start": 1345,
"end": 1351,
"loc": {
"start": {
"line": 54,
"column": 32
},
"end": {
"line": 54,
"column": 38
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 1352,
"end": 1355,
"loc": {
"start": {
"line": 54,
"column": 39
},
"end": {
"line": 54,
"column": 42
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 1356,
"end": 1357,
"loc": {
"start": {
"line": 54,
"column": 43
},
"end": {
"line": 54,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1357,
"end": 1358,
"loc": {
"start": {
"line": 54,
"column": 44
},
"end": {
"line": 54,
"column": 45
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1359,
"end": 1360,
"loc": {
"start": {
"line": 54,
"column": 46
},
"end": {
"line": 54,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "el",
"start": 1373,
"end": 1375,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1375,
"end": 1376,
"loc": {
"start": {
"line": 55,
"column": 14
},
"end": {
"line": 55,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setAttribute",
"start": 1376,
"end": 1388,
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1388,
"end": 1389,
"loc": {
"start": {
"line": 55,
"column": 27
},
"end": {
"line": 55,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "arg",
"start": 1389,
"end": 1392,
"loc": {
"start": {
"line": 55,
"column": 28
},
"end": {
"line": 55,
"column": 31
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1392,
"end": 1393,
"loc": {
"start": {
"line": 55,
"column": 31
},
"end": {
"line": 55,
"column": 32
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1393,
"end": 1394,
"loc": {
"start": {
"line": 55,
"column": 32
},
"end": {
"line": 55,
"column": 33
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1394,
"end": 1395,
"loc": {
"start": {
"line": 55,
"column": 33
},
"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": 1395,
"end": 1396,
"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": "arg",
"start": 1397,
"end": 1400,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 39
}
}
},
{
"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": 55,
"column": 39
},
"end": {
"line": 55,
"column": 40
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 1401,
"end": 1402,
"loc": {
"start": {
"line": 55,
"column": 40
},
"end": {
"line": 55,
"column": 41
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1402,
"end": 1403,
"loc": {
"start": {
"line": 55,
"column": 41
},
"end": {
"line": 55,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1403,
"end": 1404,
"loc": {
"start": {
"line": 55,
"column": 42
},
"end": {
"line": 55,
"column": 43
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1404,
"end": 1405,
"loc": {
"start": {
"line": 55,
"column": 43
},
"end": {
"line": 55,
"column": 44
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1414,
"end": 1415,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1420,
"end": 1421,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 57,
"column": 5
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1426,
"end": 1432,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "el",
"start": 1433,
"end": 1435,
"loc": {
"start": {
"line": 58,
"column": 11
},
"end": {
"line": 58,
"column": 13
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1435,
"end": 1436,
"loc": {
"start": {
"line": 58,
"column": 13
},
"end": {
"line": 58,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1437,
"end": 1438,
"loc": {
"start": {
"line": 59,
"column": 0
},
"end": {
"line": 59,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1438,
"end": 1439,
"loc": {
"start": {
"line": 59,
"column": 1
},
"end": {
"line": 59,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes passed node from DOM\n * @param {DOMElement} node\n * @return {DOMElement} old node reference\n ",
"start": 1441,
"end": 1552,
"loc": {
"start": {
"line": 61,
"column": 0
},
"end": {
"line": 65,
"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": 1553,
"end": 1559,
"loc": {
"start": {
"line": 66,
"column": 0
},
"end": {
"line": 66,
"column": 6
}
}
},
{
"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": 1560,
"end": 1565,
"loc": {
"start": {
"line": 66,
"column": 7
},
"end": {
"line": 66,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeElm",
"start": 1566,
"end": 1575,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1576,
"end": 1577,
"loc": {
"start": {
"line": 66,
"column": 23
},
"end": {
"line": 66,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1578,
"end": 1579,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 1579,
"end": 1583,
"loc": {
"start": {
"line": 66,
"column": 26
},
"end": {
"line": 66,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1583,
"end": 1584,
"loc": {
"start": {
"line": 66,
"column": 30
},
"end": {
"line": 66,
"column": 31
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1585,
"end": 1587,
"loc": {
"start": {
"line": 66,
"column": 32
},
"end": {
"line": 66,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 1588,
"end": 1592,
"loc": {
"start": {
"line": 66,
"column": 35
},
"end": {
"line": 66,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1592,
"end": 1593,
"loc": {
"start": {
"line": 66,
"column": 39
},
"end": {
"line": 66,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parentNode",
"start": 1593,
"end": 1603,
"loc": {
"start": {
"line": 66,
"column": 40
},
"end": {
"line": 66,
"column": 50
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1603,
"end": 1604,
"loc": {
"start": {
"line": 66,
"column": 50
},
"end": {
"line": 66,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeChild",
"start": 1604,
"end": 1615,
"loc": {
"start": {
"line": 66,
"column": 51
},
"end": {
"line": 66,
"column": 62
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1615,
"end": 1616,
"loc": {
"start": {
"line": 66,
"column": 62
},
"end": {
"line": 66,
"column": 63
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "node",
"start": 1616,
"end": 1620,
"loc": {
"start": {
"line": 66,
"column": 63
},
"end": {
"line": 66,
"column": 67
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1620,
"end": 1621,
"loc": {
"start": {
"line": 66,
"column": 67
},
"end": {
"line": 66,
"column": 68
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1621,
"end": 1622,
"loc": {
"start": {
"line": 66,
"column": 68
},
"end": {
"line": 66,
"column": 69
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns a text node with given text\n * @param {String} txt\n * @return {Object}\n ",
"start": 1624,
"end": 1714,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 72,
"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": 1715,
"end": 1721,
"loc": {
"start": {
"line": 73,
"column": 0
},
"end": {
"line": 73,
"column": 6
}
}
},
{
"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": 1722,
"end": 1727,
"loc": {
"start": {
"line": 73,
"column": 7
},
"end": {
"line": 73,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createText",
"start": 1728,
"end": 1738,
"loc": {
"start": {
"line": 73,
"column": 13
},
"end": {
"line": 73,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1739,
"end": 1740,
"loc": {
"start": {
"line": 73,
"column": 24
},
"end": {
"line": 73,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1741,
"end": 1742,
"loc": {
"start": {
"line": 73,
"column": 26
},
"end": {
"line": 73,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "txt",
"start": 1742,
"end": 1745,
"loc": {
"start": {
"line": 73,
"column": 27
},
"end": {
"line": 73,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1745,
"end": 1746,
"loc": {
"start": {
"line": 73,
"column": 30
},
"end": {
"line": 73,
"column": 31
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1747,
"end": 1749,
"loc": {
"start": {
"line": 73,
"column": 32
},
"end": {
"line": 73,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "doc",
"start": 1750,
"end": 1753,
"loc": {
"start": {
"line": 73,
"column": 35
},
"end": {
"line": 73,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1753,
"end": 1754,
"loc": {
"start": {
"line": 73,
"column": 38
},
"end": {
"line": 73,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createTextNode",
"start": 1754,
"end": 1768,
"loc": {
"start": {
"line": 73,
"column": 39
},
"end": {
"line": 73,
"column": 53
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1768,
"end": 1769,
"loc": {
"start": {
"line": 73,
"column": 53
},
"end": {
"line": 73,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "txt",
"start": 1769,
"end": 1772,
"loc": {
"start": {
"line": 73,
"column": 54
},
"end": {
"line": 73,
"column": 57
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1772,
"end": 1773,
"loc": {
"start": {
"line": 73,
"column": 57
},
"end": {
"line": 73,
"column": 58
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1773,
"end": 1774,
"loc": {
"start": {
"line": 73,
"column": 58
},
"end": {
"line": 73,
"column": 59
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Determine whether the passed elements is assigned the given class\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n * @returns {Boolean}\n ",
"start": 1776,
"end": 1951,
"loc": {
"start": {
"line": 75,
"column": 0
},
"end": {
"line": 80,
"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": 1952,
"end": 1958,
"loc": {
"start": {
"line": 81,
"column": 0
},
"end": {
"line": 81,
"column": 6
}
}
},
{
"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": 1959,
"end": 1964,
"loc": {
"start": {
"line": 81,
"column": 7
},
"end": {
"line": 81,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "hasClass",
"start": 1965,
"end": 1973,
"loc": {
"start": {
"line": 81,
"column": 13
},
"end": {
"line": 81,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1974,
"end": 1975,
"loc": {
"start": {
"line": 81,
"column": 22
},
"end": {
"line": 81,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1976,
"end": 1977,
"loc": {
"start": {
"line": 81,
"column": 24
},
"end": {
"line": 81,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 1977,
"end": 1980,
"loc": {
"start": {
"line": 81,
"column": 25
},
"end": {
"line": 81,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1980,
"end": 1981,
"loc": {
"start": {
"line": 81,
"column": 28
},
"end": {
"line": 81,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 1982,
"end": 1985,
"loc": {
"start": {
"line": 81,
"column": 30
},
"end": {
"line": 81,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1985,
"end": 1986,
"loc": {
"start": {
"line": 81,
"column": 33
},
"end": {
"line": 81,
"column": 34
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1987,
"end": 1989,
"loc": {
"start": {
"line": 81,
"column": 35
},
"end": {
"line": 81,
"column": 37
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1990,
"end": 1991,
"loc": {
"start": {
"line": 81,
"column": 38
},
"end": {
"line": 81,
"column": 39
}
}
},
{
"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": 1996,
"end": 1998,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1999,
"end": 2000,
"loc": {
"start": {
"line": 82,
"column": 7
},
"end": {
"line": 82,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isUndef",
"start": 2000,
"end": 2007,
"loc": {
"start": {
"line": 82,
"column": 8
},
"end": {
"line": 82,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2007,
"end": 2008,
"loc": {
"start": {
"line": 82,
"column": 15
},
"end": {
"line": 82,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2008,
"end": 2011,
"loc": {
"start": {
"line": 82,
"column": 16
},
"end": {
"line": 82,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2011,
"end": 2012,
"loc": {
"start": {
"line": 82,
"column": 19
},
"end": {
"line": 82,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2012,
"end": 2013,
"loc": {
"start": {
"line": 82,
"column": 20
},
"end": {
"line": 82,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2014,
"end": 2015,
"loc": {
"start": {
"line": 82,
"column": 22
},
"end": {
"line": 82,
"column": 23
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2024,
"end": 2030,
"loc": {
"start": {
"line": 83,
"column": 8
},
"end": {
"line": 83,
"column": 14
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 2031,
"end": 2036,
"loc": {
"start": {
"line": 83,
"column": 15
},
"end": {
"line": 83,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2036,
"end": 2037,
"loc": {
"start": {
"line": 83,
"column": 20
},
"end": {
"line": 83,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2042,
"end": 2043,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 5
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2049,
"end": 2051,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 86,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2052,
"end": 2053,
"loc": {
"start": {
"line": 86,
"column": 7
},
"end": {
"line": 86,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "supportsClassList",
"start": 2053,
"end": 2070,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2070,
"end": 2071,
"loc": {
"start": {
"line": 86,
"column": 25
},
"end": {
"line": 86,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2071,
"end": 2072,
"loc": {
"start": {
"line": 86,
"column": 26
},
"end": {
"line": 86,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2072,
"end": 2073,
"loc": {
"start": {
"line": 86,
"column": 27
},
"end": {
"line": 86,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2074,
"end": 2075,
"loc": {
"start": {
"line": 86,
"column": 29
},
"end": {
"line": 86,
"column": 30
}
}
},
{
"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": 2084,
"end": 2090,
"loc": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 87,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2091,
"end": 2094,
"loc": {
"start": {
"line": 87,
"column": 15
},
"end": {
"line": 87,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2094,
"end": 2095,
"loc": {
"start": {
"line": 87,
"column": 18
},
"end": {
"line": 87,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "classList",
"start": 2095,
"end": 2104,
"loc": {
"start": {
"line": 87,
"column": 19
},
"end": {
"line": 87,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2104,
"end": 2105,
"loc": {
"start": {
"line": 87,
"column": 28
},
"end": {
"line": 87,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "contains",
"start": 2105,
"end": 2113,
"loc": {
"start": {
"line": 87,
"column": 29
},
"end": {
"line": 87,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2113,
"end": 2114,
"loc": {
"start": {
"line": 87,
"column": 37
},
"end": {
"line": 87,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2114,
"end": 2117,
"loc": {
"start": {
"line": 87,
"column": 38
},
"end": {
"line": 87,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2117,
"end": 2118,
"loc": {
"start": {
"line": 87,
"column": 41
},
"end": {
"line": 87,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2118,
"end": 2119,
"loc": {
"start": {
"line": 87,
"column": 42
},
"end": {
"line": 87,
"column": 43
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2124,
"end": 2125,
"loc": {
"start": {
"line": 88,
"column": 4
},
"end": {
"line": 88,
"column": 5
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2130,
"end": 2136,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 89,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2137,
"end": 2140,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2140,
"end": 2141,
"loc": {
"start": {
"line": 89,
"column": 14
},
"end": {
"line": 89,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "className",
"start": 2141,
"end": 2150,
"loc": {
"start": {
"line": 89,
"column": 15
},
"end": {
"line": 89,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2150,
"end": 2151,
"loc": {
"start": {
"line": 89,
"column": 24
},
"end": {
"line": 89,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "match",
"start": 2151,
"end": 2156,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2156,
"end": 2157,
"loc": {
"start": {
"line": 89,
"column": 30
},
"end": {
"line": 89,
"column": 31
}
}
},
{
"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": 2157,
"end": 2160,
"loc": {
"start": {
"line": 89,
"column": 31
},
"end": {
"line": 89,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "RegExp",
"start": 2161,
"end": 2167,
"loc": {
"start": {
"line": 89,
"column": 35
},
"end": {
"line": 89,
"column": 41
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2167,
"end": 2168,
"loc": {
"start": {
"line": 89,
"column": 41
},
"end": {
"line": 89,
"column": 42
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "(\\s|^)",
"start": 2168,
"end": 2177,
"loc": {
"start": {
"line": 89,
"column": 42
},
"end": {
"line": 89,
"column": 51
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2178,
"end": 2179,
"loc": {
"start": {
"line": 89,
"column": 52
},
"end": {
"line": 89,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2180,
"end": 2183,
"loc": {
"start": {
"line": 89,
"column": 54
},
"end": {
"line": 89,
"column": 57
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2184,
"end": 2185,
"loc": {
"start": {
"line": 89,
"column": 58
},
"end": {
"line": 89,
"column": 59
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "(\\s|$)",
"start": 2186,
"end": 2195,
"loc": {
"start": {
"line": 89,
"column": 60
},
"end": {
"line": 89,
"column": 69
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2195,
"end": 2196,
"loc": {
"start": {
"line": 89,
"column": 69
},
"end": {
"line": 89,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2196,
"end": 2197,
"loc": {
"start": {
"line": 89,
"column": 70
},
"end": {
"line": 89,
"column": 71
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2197,
"end": 2198,
"loc": {
"start": {
"line": 89,
"column": 71
},
"end": {
"line": 89,
"column": 72
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2199,
"end": 2200,
"loc": {
"start": {
"line": 90,
"column": 0
},
"end": {
"line": 90,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2200,
"end": 2201,
"loc": {
"start": {
"line": 90,
"column": 1
},
"end": {
"line": 90,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Adds the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2203,
"end": 2337,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 96,
"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": 2338,
"end": 2344,
"loc": {
"start": {
"line": 97,
"column": 0
},
"end": {
"line": 97,
"column": 6
}
}
},
{
"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": 2345,
"end": 2350,
"loc": {
"start": {
"line": 97,
"column": 7
},
"end": {
"line": 97,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addClass",
"start": 2351,
"end": 2359,
"loc": {
"start": {
"line": 97,
"column": 13
},
"end": {
"line": 97,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2360,
"end": 2361,
"loc": {
"start": {
"line": 97,
"column": 22
},
"end": {
"line": 97,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2362,
"end": 2363,
"loc": {
"start": {
"line": 97,
"column": 24
},
"end": {
"line": 97,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2363,
"end": 2366,
"loc": {
"start": {
"line": 97,
"column": 25
},
"end": {
"line": 97,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2366,
"end": 2367,
"loc": {
"start": {
"line": 97,
"column": 28
},
"end": {
"line": 97,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2368,
"end": 2371,
"loc": {
"start": {
"line": 97,
"column": 30
},
"end": {
"line": 97,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2371,
"end": 2372,
"loc": {
"start": {
"line": 97,
"column": 33
},
"end": {
"line": 97,
"column": 34
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2373,
"end": 2375,
"loc": {
"start": {
"line": 97,
"column": 35
},
"end": {
"line": 97,
"column": 37
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2376,
"end": 2377,
"loc": {
"start": {
"line": 97,
"column": 38
},
"end": {
"line": 97,
"column": 39
}
}
},
{
"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": 2382,
"end": 2384,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 98,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2385,
"end": 2386,
"loc": {
"start": {
"line": 98,
"column": 7
},
"end": {
"line": 98,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isUndef",
"start": 2386,
"end": 2393,
"loc": {
"start": {
"line": 98,
"column": 8
},
"end": {
"line": 98,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2393,
"end": 2394,
"loc": {
"start": {
"line": 98,
"column": 15
},
"end": {
"line": 98,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2394,
"end": 2397,
"loc": {
"start": {
"line": 98,
"column": 16
},
"end": {
"line": 98,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2397,
"end": 2398,
"loc": {
"start": {
"line": 98,
"column": 19
},
"end": {
"line": 98,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2398,
"end": 2399,
"loc": {
"start": {
"line": 98,
"column": 20
},
"end": {
"line": 98,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2400,
"end": 2401,
"loc": {
"start": {
"line": 98,
"column": 22
},
"end": {
"line": 98,
"column": 23
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2410,
"end": 2416,
"loc": {
"start": {
"line": 99,
"column": 8
},
"end": {
"line": 99,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2416,
"end": 2417,
"loc": {
"start": {
"line": 99,
"column": 14
},
"end": {
"line": 99,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2422,
"end": 2423,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 100,
"column": 5
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2429,
"end": 2431,
"loc": {
"start": {
"line": 102,
"column": 4
},
"end": {
"line": 102,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2432,
"end": 2433,
"loc": {
"start": {
"line": 102,
"column": 7
},
"end": {
"line": 102,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "supportsClassList",
"start": 2433,
"end": 2450,
"loc": {
"start": {
"line": 102,
"column": 8
},
"end": {
"line": 102,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2450,
"end": 2451,
"loc": {
"start": {
"line": 102,
"column": 25
},
"end": {
"line": 102,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2451,
"end": 2452,
"loc": {
"start": {
"line": 102,
"column": 26
},
"end": {
"line": 102,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2452,
"end": 2453,
"loc": {
"start": {
"line": 102,
"column": 27
},
"end": {
"line": 102,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2454,
"end": 2455,
"loc": {
"start": {
"line": 102,
"column": 29
},
"end": {
"line": 102,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2464,
"end": 2467,
"loc": {
"start": {
"line": 103,
"column": 8
},
"end": {
"line": 103,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2467,
"end": 2468,
"loc": {
"start": {
"line": 103,
"column": 11
},
"end": {
"line": 103,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "classList",
"start": 2468,
"end": 2477,
"loc": {
"start": {
"line": 103,
"column": 12
},
"end": {
"line": 103,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2477,
"end": 2478,
"loc": {
"start": {
"line": 103,
"column": 21
},
"end": {
"line": 103,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "add",
"start": 2478,
"end": 2481,
"loc": {
"start": {
"line": 103,
"column": 22
},
"end": {
"line": 103,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2481,
"end": 2482,
"loc": {
"start": {
"line": 103,
"column": 25
},
"end": {
"line": 103,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2482,
"end": 2485,
"loc": {
"start": {
"line": 103,
"column": 26
},
"end": {
"line": 103,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2485,
"end": 2486,
"loc": {
"start": {
"line": 103,
"column": 29
},
"end": {
"line": 103,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2486,
"end": 2487,
"loc": {
"start": {
"line": 103,
"column": 30
},
"end": {
"line": 103,
"column": 31
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2496,
"end": 2502,
"loc": {
"start": {
"line": 104,
"column": 8
},
"end": {
"line": 104,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2502,
"end": 2503,
"loc": {
"start": {
"line": 104,
"column": 14
},
"end": {
"line": 104,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2508,
"end": 2509,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 5
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2515,
"end": 2517,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 107,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2518,
"end": 2519,
"loc": {
"start": {
"line": 107,
"column": 7
},
"end": {
"line": 107,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2519,
"end": 2522,
"loc": {
"start": {
"line": 107,
"column": 8
},
"end": {
"line": 107,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2522,
"end": 2523,
"loc": {
"start": {
"line": 107,
"column": 11
},
"end": {
"line": 107,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "className",
"start": 2523,
"end": 2532,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 21
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "===",
"start": 2533,
"end": 2536,
"loc": {
"start": {
"line": 107,
"column": 22
},
"end": {
"line": 107,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 2537,
"end": 2539,
"loc": {
"start": {
"line": 107,
"column": 26
},
"end": {
"line": 107,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2539,
"end": 2540,
"loc": {
"start": {
"line": 107,
"column": 28
},
"end": {
"line": 107,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2541,
"end": 2542,
"loc": {
"start": {
"line": 107,
"column": 30
},
"end": {
"line": 107,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2551,
"end": 2554,
"loc": {
"start": {
"line": 108,
"column": 8
},
"end": {
"line": 108,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2554,
"end": 2555,
"loc": {
"start": {
"line": 108,
"column": 11
},
"end": {
"line": 108,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "className",
"start": 2555,
"end": 2564,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 21
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2565,
"end": 2566,
"loc": {
"start": {
"line": 108,
"column": 22
},
"end": {
"line": 108,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2567,
"end": 2570,
"loc": {
"start": {
"line": 108,
"column": 24
},
"end": {
"line": 108,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2570,
"end": 2571,
"loc": {
"start": {
"line": 108,
"column": 27
},
"end": {
"line": 108,
"column": 28
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2576,
"end": 2577,
"loc": {
"start": {
"line": 109,
"column": 4
},
"end": {
"line": 109,
"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": 2582,
"end": 2586,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 8
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2587,
"end": 2589,
"loc": {
"start": {
"line": 110,
"column": 9
},
"end": {
"line": 110,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2590,
"end": 2591,
"loc": {
"start": {
"line": 110,
"column": 12
},
"end": {
"line": 110,
"column": 13
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 2591,
"end": 2592,
"loc": {
"start": {
"line": 110,
"column": 13
},
"end": {
"line": 110,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "hasClass",
"start": 2592,
"end": 2600,
"loc": {
"start": {
"line": 110,
"column": 14
},
"end": {
"line": 110,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2600,
"end": 2601,
"loc": {
"start": {
"line": 110,
"column": 22
},
"end": {
"line": 110,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2601,
"end": 2604,
"loc": {
"start": {
"line": 110,
"column": 23
},
"end": {
"line": 110,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2604,
"end": 2605,
"loc": {
"start": {
"line": 110,
"column": 26
},
"end": {
"line": 110,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2606,
"end": 2609,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2609,
"end": 2610,
"loc": {
"start": {
"line": 110,
"column": 31
},
"end": {
"line": 110,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2610,
"end": 2611,
"loc": {
"start": {
"line": 110,
"column": 32
},
"end": {
"line": 110,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2612,
"end": 2613,
"loc": {
"start": {
"line": 110,
"column": 34
},
"end": {
"line": 110,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2622,
"end": 2625,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2625,
"end": 2626,
"loc": {
"start": {
"line": 111,
"column": 11
},
"end": {
"line": 111,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "className",
"start": 2626,
"end": 2635,
"loc": {
"start": {
"line": 111,
"column": 12
},
"end": {
"line": 111,
"column": 21
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 2636,
"end": 2638,
"loc": {
"start": {
"line": 111,
"column": 22
},
"end": {
"line": 111,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": " ",
"start": 2639,
"end": 2642,
"loc": {
"start": {
"line": 111,
"column": 25
},
"end": {
"line": 111,
"column": 28
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2643,
"end": 2644,
"loc": {
"start": {
"line": 111,
"column": 29
},
"end": {
"line": 111,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2645,
"end": 2648,
"loc": {
"start": {
"line": 111,
"column": 31
},
"end": {
"line": 111,
"column": 34
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2648,
"end": 2649,
"loc": {
"start": {
"line": 111,
"column": 34
},
"end": {
"line": 111,
"column": 35
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2654,
"end": 2655,
"loc": {
"start": {
"line": 112,
"column": 4
},
"end": {
"line": 112,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2656,
"end": 2657,
"loc": {
"start": {
"line": 113,
"column": 0
},
"end": {
"line": 113,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2657,
"end": 2658,
"loc": {
"start": {
"line": 113,
"column": 1
},
"end": {
"line": 113,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Removes the specified class to the passed element\n * @param {DOMElement} ele DOM element\n * @param {String} cls CSS class name\n ",
"start": 2660,
"end": 2797,
"loc": {
"start": {
"line": 115,
"column": 0
},
"end": {
"line": 119,
"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": 2798,
"end": 2804,
"loc": {
"start": {
"line": 120,
"column": 0
},
"end": {
"line": 120,
"column": 6
}
}
},
{
"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": 2805,
"end": 2810,
"loc": {
"start": {
"line": 120,
"column": 7
},
"end": {
"line": 120,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeClass",
"start": 2811,
"end": 2822,
"loc": {
"start": {
"line": 120,
"column": 13
},
"end": {
"line": 120,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2823,
"end": 2824,
"loc": {
"start": {
"line": 120,
"column": 25
},
"end": {
"line": 120,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2825,
"end": 2826,
"loc": {
"start": {
"line": 120,
"column": 27
},
"end": {
"line": 120,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2826,
"end": 2829,
"loc": {
"start": {
"line": 120,
"column": 28
},
"end": {
"line": 120,
"column": 31
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2829,
"end": 2830,
"loc": {
"start": {
"line": 120,
"column": 31
},
"end": {
"line": 120,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2831,
"end": 2834,
"loc": {
"start": {
"line": 120,
"column": 33
},
"end": {
"line": 120,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2834,
"end": 2835,
"loc": {
"start": {
"line": 120,
"column": 36
},
"end": {
"line": 120,
"column": 37
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2836,
"end": 2838,
"loc": {
"start": {
"line": 120,
"column": 38
},
"end": {
"line": 120,
"column": 40
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2839,
"end": 2840,
"loc": {
"start": {
"line": 120,
"column": 41
},
"end": {
"line": 120,
"column": 42
}
}
},
{
"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": 2845,
"end": 2847,
"loc": {
"start": {
"line": 121,
"column": 4
},
"end": {
"line": 121,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2848,
"end": 2849,
"loc": {
"start": {
"line": 121,
"column": 7
},
"end": {
"line": 121,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isUndef",
"start": 2849,
"end": 2856,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2856,
"end": 2857,
"loc": {
"start": {
"line": 121,
"column": 15
},
"end": {
"line": 121,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2857,
"end": 2860,
"loc": {
"start": {
"line": 121,
"column": 16
},
"end": {
"line": 121,
"column": 19
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2860,
"end": 2861,
"loc": {
"start": {
"line": 121,
"column": 19
},
"end": {
"line": 121,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2861,
"end": 2862,
"loc": {
"start": {
"line": 121,
"column": 20
},
"end": {
"line": 121,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2863,
"end": 2864,
"loc": {
"start": {
"line": 121,
"column": 22
},
"end": {
"line": 121,
"column": 23
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2873,
"end": 2879,
"loc": {
"start": {
"line": 122,
"column": 8
},
"end": {
"line": 122,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2879,
"end": 2880,
"loc": {
"start": {
"line": 122,
"column": 14
},
"end": {
"line": 122,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2885,
"end": 2886,
"loc": {
"start": {
"line": 123,
"column": 4
},
"end": {
"line": 123,
"column": 5
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 2892,
"end": 2894,
"loc": {
"start": {
"line": 125,
"column": 4
},
"end": {
"line": 125,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2895,
"end": 2896,
"loc": {
"start": {
"line": 125,
"column": 7
},
"end": {
"line": 125,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "supportsClassList",
"start": 2896,
"end": 2913,
"loc": {
"start": {
"line": 125,
"column": 8
},
"end": {
"line": 125,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2913,
"end": 2914,
"loc": {
"start": {
"line": 125,
"column": 25
},
"end": {
"line": 125,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2914,
"end": 2915,
"loc": {
"start": {
"line": 125,
"column": 26
},
"end": {
"line": 125,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2915,
"end": 2916,
"loc": {
"start": {
"line": 125,
"column": 27
},
"end": {
"line": 125,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2917,
"end": 2918,
"loc": {
"start": {
"line": 125,
"column": 29
},
"end": {
"line": 125,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 2927,
"end": 2930,
"loc": {
"start": {
"line": 126,
"column": 8
},
"end": {
"line": 126,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2930,
"end": 2931,
"loc": {
"start": {
"line": 126,
"column": 11
},
"end": {
"line": 126,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "classList",
"start": 2931,
"end": 2940,
"loc": {
"start": {
"line": 126,
"column": 12
},
"end": {
"line": 126,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2940,
"end": 2941,
"loc": {
"start": {
"line": 126,
"column": 21
},
"end": {
"line": 126,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "remove",
"start": 2941,
"end": 2947,
"loc": {
"start": {
"line": 126,
"column": 22
},
"end": {
"line": 126,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2947,
"end": 2948,
"loc": {
"start": {
"line": 126,
"column": 28
},
"end": {
"line": 126,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 2948,
"end": 2951,
"loc": {
"start": {
"line": 126,
"column": 29
},
"end": {
"line": 126,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2951,
"end": 2952,
"loc": {
"start": {
"line": 126,
"column": 32
},
"end": {
"line": 126,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2952,
"end": 2953,
"loc": {
"start": {
"line": 126,
"column": 33
},
"end": {
"line": 126,
"column": 34
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2962,
"end": 2968,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2968,
"end": 2969,
"loc": {
"start": {
"line": 127,
"column": 14
},
"end": {
"line": 127,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2974,
"end": 2975,
"loc": {
"start": {
"line": 128,
"column": 4
},
"end": {
"line": 128,
"column": 5
}
}
},
{
"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": 2980,
"end": 2983,
"loc": {
"start": {
"line": 129,
"column": 4
},
"end": {
"line": 129,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "reg",
"start": 2984,
"end": 2987,
"loc": {
"start": {
"line": 129,
"column": 8
},
"end": {
"line": 129,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2988,
"end": 2989,
"loc": {
"start": {
"line": 129,
"column": 12
},
"end": {
"line": 129,
"column": 13
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 2990,
"end": 2993,
"loc": {
"start": {
"line": 129,
"column": 14
},
"end": {
"line": 129,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "RegExp",
"start": 2994,
"end": 3000,
"loc": {
"start": {
"line": 129,
"column": 18
},
"end": {
"line": 129,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3000,
"end": 3001,
"loc": {
"start": {
"line": 129,
"column": 24
},
"end": {
"line": 129,
"column": 25
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "(\\s|^)",
"start": 3001,
"end": 3010,
"loc": {
"start": {
"line": 129,
"column": 25
},
"end": {
"line": 129,
"column": 34
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 3011,
"end": 3012,
"loc": {
"start": {
"line": 129,
"column": 35
},
"end": {
"line": 129,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cls",
"start": 3013,
"end": 3016,
"loc": {
"start": {
"line": 129,
"column": 37
},
"end": {
"line": 129,
"column": 40
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 3017,
"end": 3018,
"loc": {
"start": {
"line": 129,
"column": 41
},
"end": {
"line": 129,
"column": 42
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "(\\s|$)",
"start": 3019,
"end": 3028,
"loc": {
"start": {
"line": 129,
"column": 43
},
"end": {
"line": 129,
"column": 52
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3028,
"end": 3029,
"loc": {
"start": {
"line": 129,
"column": 52
},
"end": {
"line": 129,
"column": 53
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "g",
"start": 3030,
"end": 3033,
"loc": {
"start": {
"line": 129,
"column": 54
},
"end": {
"line": 129,
"column": 57
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3033,
"end": 3034,
"loc": {
"start": {
"line": 129,
"column": 57
},
"end": {
"line": 129,
"column": 58
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3034,
"end": 3035,
"loc": {
"start": {
"line": 129,
"column": 58
},
"end": {
"line": 129,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 3040,
"end": 3043,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 130,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3043,
"end": 3044,
"loc": {
"start": {
"line": 130,
"column": 7
},
"end": {
"line": 130,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "className",
"start": 3044,
"end": 3053,
"loc": {
"start": {
"line": 130,
"column": 8
},
"end": {
"line": 130,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3054,
"end": 3055,
"loc": {
"start": {
"line": 130,
"column": 18
},
"end": {
"line": 130,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ele",
"start": 3056,
"end": 3059,
"loc": {
"start": {
"line": 130,
"column": 20
},
"end": {
"line": 130,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3059,
"end": 3060,
"loc": {
"start": {
"line": 130,
"column": 23
},
"end": {
"line": 130,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "className",
"start": 3060,
"end": 3069,
"loc": {
"start": {
"line": 130,
"column": 24
},
"end": {
"line": 130,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3069,
"end": 3070,
"loc": {
"start": {
"line": 130,
"column": 33
},
"end": {
"line": 130,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "replace",
"start": 3070,
"end": 3077,
"loc": {
"start": {
"line": 130,
"column": 34
},
"end": {
"line": 130,
"column": 41
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3077,
"end": 3078,
"loc": {
"start": {
"line": 130,
"column": 41
},
"end": {
"line": 130,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "reg",
"start": 3078,
"end": 3081,
"loc": {
"start": {
"line": 130,
"column": 42
},
"end": {
"line": 130,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3081,
"end": 3082,
"loc": {
"start": {
"line": 130,
"column": 45
},
"end": {
"line": 130,
"column": 46
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 3083,
"end": 3085,
"loc": {
"start": {
"line": 130,
"column": 47
},
"end": {
"line": 130,
"column": 49
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3085,
"end": 3086,
"loc": {
"start": {
"line": 130,
"column": 49
},
"end": {
"line": 130,
"column": 50
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3086,
"end": 3087,
"loc": {
"start": {
"line": 130,
"column": 50
},
"end": {
"line": 130,
"column": 51
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3088,
"end": 3089,
"loc": {
"start": {
"line": 131,
"column": 0
},
"end": {
"line": 131,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3089,
"end": 3090,
"loc": {
"start": {
"line": 131,
"column": 1
},
"end": {
"line": 131,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates and returns an option element\n * @param {String} text option text\n * @param {String} value option value\n * @param {Boolean} isSel whether option is selected\n * @return {Object} option element\n ",
"start": 3092,
"end": 3315,
"loc": {
"start": {
"line": 133,
"column": 0
},
"end": {
"line": 139,
"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": 3316,
"end": 3322,
"loc": {
"start": {
"line": 140,
"column": 0
},
"end": {
"line": 140,
"column": 6
}
}
},
{
"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": 3323,
"end": 3328,
"loc": {
"start": {
"line": 140,
"column": 7
},
"end": {
"line": 140,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createOpt",
"start": 3329,
"end": 3338,
"loc": {
"start": {
"line": 140,
"column": 13
},
"end": {
"line": 140,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3339,
"end": 3340,
"loc": {
"start": {
"line": 140,
"column": 23
},
"end": {
"line": 140,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3341,
"end": 3342,
"loc": {
"start": {
"line": 140,
"column": 25
},
"end": {
"line": 140,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 3342,
"end": 3346,
"loc": {
"start": {
"line": 140,
"column": 26
},
"end": {
"line": 140,
"column": 30
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3346,
"end": 3347,
"loc": {
"start": {
"line": 140,
"column": 30
},
"end": {
"line": 140,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 3348,
"end": 3353,
"loc": {
"start": {
"line": 140,
"column": 32
},
"end": {
"line": 140,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3353,
"end": 3354,
"loc": {
"start": {
"line": 140,
"column": 37
},
"end": {
"line": 140,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isSel",
"start": 3355,
"end": 3360,
"loc": {
"start": {
"line": 140,
"column": 39
},
"end": {
"line": 140,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3360,
"end": 3361,
"loc": {
"start": {
"line": 140,
"column": 44
},
"end": {
"line": 140,
"column": 45
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3362,
"end": 3364,
"loc": {
"start": {
"line": 140,
"column": 46
},
"end": {
"line": 140,
"column": 48
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3365,
"end": 3366,
"loc": {
"start": {
"line": 140,
"column": 49
},
"end": {
"line": 140,
"column": 50
}
}
},
{
"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": 3371,
"end": 3374,
"loc": {
"start": {
"line": 141,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isSelected",
"start": 3375,
"end": 3385,
"loc": {
"start": {
"line": 141,
"column": 8
},
"end": {
"line": 141,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3386,
"end": 3387,
"loc": {
"start": {
"line": 141,
"column": 19
},
"end": {
"line": 141,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isSel",
"start": 3388,
"end": 3393,
"loc": {
"start": {
"line": 141,
"column": 21
},
"end": {
"line": 141,
"column": 26
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3394,
"end": 3395,
"loc": {
"start": {
"line": 141,
"column": 27
},
"end": {
"line": 141,
"column": 28
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 3396,
"end": 3400,
"loc": {
"start": {
"line": 141,
"column": 29
},
"end": {
"line": 141,
"column": 33
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3401,
"end": 3402,
"loc": {
"start": {
"line": 141,
"column": 34
},
"end": {
"line": 141,
"column": 35
}
}
},
{
"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": 3403,
"end": 3408,
"loc": {
"start": {
"line": 141,
"column": 36
},
"end": {
"line": 141,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3408,
"end": 3409,
"loc": {
"start": {
"line": 141,
"column": 41
},
"end": {
"line": 141,
"column": 42
}
}
},
{
"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": 3414,
"end": 3417,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 142,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "opt",
"start": 3418,
"end": 3421,
"loc": {
"start": {
"line": 142,
"column": 8
},
"end": {
"line": 142,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3422,
"end": 3423,
"loc": {
"start": {
"line": 142,
"column": 12
},
"end": {
"line": 142,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isSelected",
"start": 3424,
"end": 3434,
"loc": {
"start": {
"line": 142,
"column": 14
},
"end": {
"line": 142,
"column": 24
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3435,
"end": 3436,
"loc": {
"start": {
"line": 142,
"column": 25
},
"end": {
"line": 142,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createElm",
"start": 3445,
"end": 3454,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3454,
"end": 3455,
"loc": {
"start": {
"line": 143,
"column": 17
},
"end": {
"line": 143,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "option",
"start": 3455,
"end": 3463,
"loc": {
"start": {
"line": 143,
"column": 18
},
"end": {
"line": 143,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3463,
"end": 3464,
"loc": {
"start": {
"line": 143,
"column": 26
},
"end": {
"line": 143,
"column": 27
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3465,
"end": 3466,
"loc": {
"start": {
"line": 143,
"column": 28
},
"end": {
"line": 143,
"column": 29
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "value",
"start": 3466,
"end": 3473,
"loc": {
"start": {
"line": 143,
"column": 29
},
"end": {
"line": 143,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3473,
"end": 3474,
"loc": {
"start": {
"line": 143,
"column": 36
},
"end": {
"line": 143,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 3475,
"end": 3480,
"loc": {
"start": {
"line": 143,
"column": 38
},
"end": {
"line": 143,
"column": 43
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3480,
"end": 3481,
"loc": {
"start": {
"line": 143,
"column": 43
},
"end": {
"line": 143,
"column": 44
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3481,
"end": 3482,
"loc": {
"start": {
"line": 143,
"column": 44
},
"end": {
"line": 143,
"column": 45
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3483,
"end": 3484,
"loc": {
"start": {
"line": 143,
"column": 46
},
"end": {
"line": 143,
"column": 47
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "selected",
"start": 3484,
"end": 3494,
"loc": {
"start": {
"line": 143,
"column": 47
},
"end": {
"line": 143,
"column": 57
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3494,
"end": 3495,
"loc": {
"start": {
"line": 143,
"column": 57
},
"end": {
"line": 143,
"column": 58
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 3496,
"end": 3502,
"loc": {
"start": {
"line": 143,
"column": 59
},
"end": {
"line": 143,
"column": 65
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3502,
"end": 3503,
"loc": {
"start": {
"line": 143,
"column": 65
},
"end": {
"line": 143,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3503,
"end": 3504,
"loc": {
"start": {
"line": 143,
"column": 66
},
"end": {
"line": 143,
"column": 67
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3505,
"end": 3506,
"loc": {
"start": {
"line": 143,
"column": 68
},
"end": {
"line": 143,
"column": 69
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createElm",
"start": 3515,
"end": 3524,
"loc": {
"start": {
"line": 144,
"column": 8
},
"end": {
"line": 144,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3524,
"end": 3525,
"loc": {
"start": {
"line": 144,
"column": 17
},
"end": {
"line": 144,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "option",
"start": 3525,
"end": 3533,
"loc": {
"start": {
"line": 144,
"column": 18
},
"end": {
"line": 144,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3533,
"end": 3534,
"loc": {
"start": {
"line": 144,
"column": 26
},
"end": {
"line": 144,
"column": 27
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3535,
"end": 3536,
"loc": {
"start": {
"line": 144,
"column": 28
},
"end": {
"line": 144,
"column": 29
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "value",
"start": 3536,
"end": 3543,
"loc": {
"start": {
"line": 144,
"column": 29
},
"end": {
"line": 144,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3543,
"end": 3544,
"loc": {
"start": {
"line": 144,
"column": 36
},
"end": {
"line": 144,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "value",
"start": 3545,
"end": 3550,
"loc": {
"start": {
"line": 144,
"column": 38
},
"end": {
"line": 144,
"column": 43
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3550,
"end": 3551,
"loc": {
"start": {
"line": 144,
"column": 43
},
"end": {
"line": 144,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3551,
"end": 3552,
"loc": {
"start": {
"line": 144,
"column": 44
},
"end": {
"line": 144,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3552,
"end": 3553,
"loc": {
"start": {
"line": 144,
"column": 45
},
"end": {
"line": 144,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "opt",
"start": 3558,
"end": 3561,
"loc": {
"start": {
"line": 145,
"column": 4
},
"end": {
"line": 145,
"column": 7
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3561,
"end": 3562,
"loc": {
"start": {
"line": 145,
"column": 7
},
"end": {
"line": 145,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "appendChild",
"start": 3562,
"end": 3573,
"loc": {
"start": {
"line": 145,
"column": 8
},
"end": {
"line": 145,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3573,
"end": 3574,
"loc": {
"start": {
"line": 145,
"column": 19
},
"end": {
"line": 145,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createText",
"start": 3574,
"end": 3584,
"loc": {
"start": {
"line": 145,
"column": 20
},
"end": {
"line": 145,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3584,
"end": 3585,
"loc": {
"start": {
"line": 145,
"column": 30
},
"end": {
"line": 145,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "text",
"start": 3585,
"end": 3589,
"loc": {
"start": {
"line": 145,
"column": 31
},
"end": {
"line": 145,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3589,
"end": 3590,
"loc": {
"start": {
"line": 145,
"column": 35
},
"end": {
"line": 145,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3590,
"end": 3591,
"loc": {
"start": {
"line": 145,
"column": 36
},
"end": {
"line": 145,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3591,
"end": 3592,
"loc": {
"start": {
"line": 145,
"column": 37
},
"end": {
"line": 145,
"column": 38
}
}
},
{
"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": 3597,
"end": 3603,
"loc": {
"start": {
"line": 146,
"column": 4
},
"end": {
"line": 146,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "opt",
"start": 3604,
"end": 3607,
"loc": {
"start": {
"line": 146,
"column": 11
},
"end": {
"line": 146,
"column": 14
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3607,
"end": 3608,
"loc": {
"start": {
"line": 146,
"column": 14
},
"end": {
"line": 146,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3609,
"end": 3610,
"loc": {
"start": {
"line": 147,
"column": 0
},
"end": {
"line": 147,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3610,
"end": 3611,
"loc": {
"start": {
"line": 147,
"column": 1
},
"end": {
"line": 147,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Creates and returns a checklist item\n * @param {String} id index of check item\n * @param {String} chkValue check item value\n * @param {String} labelText check item label text\n * @param {Array} extraAttr array containing attribute name and its value\n * @return {Object} li DOM element\n ",
"start": 3613,
"end": 3924,
"loc": {
"start": {
"line": 149,
"column": 0
},
"end": {
"line": 156,
"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": 3925,
"end": 3931,
"loc": {
"start": {
"line": 157,
"column": 0
},
"end": {
"line": 157,
"column": 6
}
}
},
{
"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": 3932,
"end": 3937,
"loc": {
"start": {
"line": 157,
"column": 7
},
"end": {
"line": 157,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createCheckItem",
"start": 3938,
"end": 3953,
"loc": {
"start": {
"line": 157,
"column": 13
},
"end": {
"line": 157,
"column": 28
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3954,
"end": 3955,
"loc": {
"start": {
"line": 157,
"column": 29
},
"end": {
"line": 157,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3956,
"end": 3957,
"loc": {
"start": {
"line": 157,
"column": 31
},
"end": {
"line": 157,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 3957,
"end": 3959,
"loc": {
"start": {
"line": 157,
"column": 32
},
"end": {
"line": 157,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3959,
"end": 3960,
"loc": {
"start": {
"line": 157,
"column": 34
},
"end": {
"line": 157,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "chkValue",
"start": 3961,
"end": 3969,
"loc": {
"start": {
"line": 157,
"column": 36
},
"end": {
"line": 157,
"column": 44
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3969,
"end": 3970,
"loc": {
"start": {
"line": 157,
"column": 44
},
"end": {
"line": 157,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "labelText",
"start": 3971,
"end": 3980,
"loc": {
"start": {
"line": 157,
"column": 46
},
"end": {
"line": 157,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3980,
"end": 3981,
"loc": {
"start": {
"line": 157,
"column": 55
},
"end": {
"line": 157,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "extraAttr",
"start": 3982,
"end": 3991,
"loc": {
"start": {
"line": 157,
"column": 57
},
"end": {
"line": 157,
"column": 66
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3992,
"end": 3993,
"loc": {
"start": {
"line": 157,
"column": 67
},
"end": {
"line": 157,
"column": 68
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3994,
"end": 3995,
"loc": {
"start": {
"line": 157,
"column": 69
},
"end": {
"line": 157,
"column": 70
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3995,
"end": 3996,
"loc": {
"start": {
"line": 157,
"column": 70
},
"end": {
"line": 157,
"column": 71
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3996,
"end": 3997,
"loc": {
"start": {
"line": 157,
"column": 71
},
"end": {
"line": 157,
"column": 72
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3998,
"end": 4000,
"loc": {
"start": {
"line": 157,
"column": 73
},
"end": {
"line": 157,
"column": 75
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4001,
"end": 4002,
"loc": {
"start": {
"line": 157,
"column": 76
},
"end": {
"line": 157,
"column": 77
}
}
},
{
"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": 4007,
"end": 4010,
"loc": {
"start": {
"line": 158,
"column": 4
},
"end": {
"line": 158,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "li",
"start": 4011,
"end": 4013,
"loc": {
"start": {
"line": 158,
"column": 8
},
"end": {
"line": 158,
"column": 10
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4014,
"end": 4015,
"loc": {
"start": {
"line": 158,
"column": 11
},
"end": {
"line": 158,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createElm",
"start": 4016,
"end": 4025,
"loc": {
"start": {
"line": 158,
"column": 13
},
"end": {
"line": 158,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4025,
"end": 4026,
"loc": {
"start": {
"line": 158,
"column": 22
},
"end": {
"line": 158,
"column": 23
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "li",
"start": 4026,
"end": 4030,
"loc": {
"start": {
"line": 158,
"column": 23
},
"end": {
"line": 158,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4030,
"end": 4031,
"loc": {
"start": {
"line": 158,
"column": 27
},
"end": {
"line": 158,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4031,
"end": 4032,
"loc": {
"start": {
"line": 158,
"column": 28
},
"end": {
"line": 158,
"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": 4037,
"end": 4040,
"loc": {
"start": {
"line": 159,
"column": 4
},
"end": {
"line": 159,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "label",
"start": 4041,
"end": 4046,
"loc": {
"start": {
"line": 159,
"column": 8
},
"end": {
"line": 159,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4047,
"end": 4048,
"loc": {
"start": {
"line": 159,
"column": 14
},
"end": {
"line": 159,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createElm",
"start": 4049,
"end": 4058,
"loc": {
"start": {
"line": 159,
"column": 16
},
"end": {
"line": 159,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4058,
"end": 4059,
"loc": {
"start": {
"line": 159,
"column": 25
},
"end": {
"line": 159,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "label",
"start": 4059,
"end": 4066,
"loc": {
"start": {
"line": 159,
"column": 26
},
"end": {
"line": 159,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4066,
"end": 4067,
"loc": {
"start": {
"line": 159,
"column": 33
},
"end": {
"line": 159,
"column": 34
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4068,
"end": 4069,
"loc": {
"start": {
"line": 159,
"column": 35
},
"end": {
"line": 159,
"column": 36
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "for",
"start": 4069,
"end": 4074,
"loc": {
"start": {
"line": 159,
"column": 36
},
"end": {
"line": 159,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4074,
"end": 4075,
"loc": {
"start": {
"line": 159,
"column": 41
},
"end": {
"line": 159,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 4076,
"end": 4078,
"loc": {
"start": {
"line": 159,
"column": 43
},
"end": {
"line": 159,
"column": 45
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4078,
"end": 4079,
"loc": {
"start": {
"line": 159,
"column": 45
},
"end": {
"line": 159,
"column": 46
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4079,
"end": 4080,
"loc": {
"start": {
"line": 159,
"column": 46
},
"end": {
"line": 159,
"column": 47
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4080,
"end": 4081,
"loc": {
"start": {
"line": 159,
"column": 47
},
"end": {
"line": 159,
"column": 48
}
}
},
{
"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": 4086,
"end": 4089,
"loc": {
"start": {
"line": 160,
"column": 4
},
"end": {
"line": 160,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "check",
"start": 4090,
"end": 4095,
"loc": {
"start": {
"line": 160,
"column": 8
},
"end": {
"line": 160,
"column": 13
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4096,
"end": 4097,
"loc": {
"start": {
"line": 160,
"column": 14
},
"end": {
"line": 160,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createElm",
"start": 4098,
"end": 4107,
"loc": {
"start": {
"line": 160,
"column": 16
},
"end": {
"line": 160,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4107,
"end": 4108,
"loc": {
"start": {
"line": 160,
"column": 25
},
"end": {
"line": 160,
"column": 26
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "input",
"start": 4108,
"end": 4115,
"loc": {
"start": {
"line": 160,
"column": 26
},
"end": {
"line": 160,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4115,
"end": 4116,
"loc": {
"start": {
"line": 160,
"column": 33
},
"end": {
"line": 160,
"column": 34
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4125,
"end": 4126,
"loc": {
"start": {
"line": 161,
"column": 8
},
"end": {
"line": 161,
"column": 9
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "id",
"start": 4126,
"end": 4130,
"loc": {
"start": {
"line": 161,
"column": 9
},
"end": {
"line": 161,
"column": 13
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4130,
"end": 4131,
"loc": {
"start": {
"line": 161,
"column": 13
},
"end": {
"line": 161,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 4132,
"end": 4134,
"loc": {
"start": {
"line": 161,
"column": 15
},
"end": {
"line": 161,
"column": 17
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4134,
"end": 4135,
"loc": {
"start": {
"line": 161,
"column": 17
},
"end": {
"line": 161,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4135,
"end": 4136,
"loc": {
"start": {
"line": 161,
"column": 18
},
"end": {
"line": 161,
"column": 19
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4145,
"end": 4146,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 9
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "name",
"start": 4146,
"end": 4152,
"loc": {
"start": {
"line": 162,
"column": 9
},
"end": {
"line": 162,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4152,
"end": 4153,
"loc": {
"start": {
"line": 162,
"column": 15
},
"end": {
"line": 162,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 4154,
"end": 4156,
"loc": {
"start": {
"line": 162,
"column": 17
},
"end": {
"line": 162,
"column": 19
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4156,
"end": 4157,
"loc": {
"start": {
"line": 162,
"column": 19
},
"end": {
"line": 162,
"column": 20
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4157,
"end": 4158,
"loc": {
"start": {
"line": 162,
"column": 20
},
"end": {
"line": 162,
"column": 21
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4167,
"end": 4168,
"loc": {
"start": {
"line": 163,
"column": 8
},
"end": {
"line": 163,
"column": 9
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "type",
"start": 4168,
"end": 4174,
"loc": {
"start": {
"line": 163,
"column": 9
},
"end": {
"line": 163,
"column": 15
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4174,
"end": 4175,
"loc": {
"start": {
"line": 163,
"column": 15
},
"end": {
"line": 163,
"column": 16
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "checkbox",
"start": 4176,
"end": 4186,
"loc": {
"start": {
"line": 163,
"column": 17
},
"end": {
"line": 163,
"column": 27
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4186,
"end": 4187,
"loc": {
"start": {
"line": 163,
"column": 27
},
"end": {
"line": 163,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4187,
"end": 4188,
"loc": {
"start": {
"line": 163,
"column": 28
},
"end": {
"line": 163,
"column": 29
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4197,
"end": 4198,
"loc": {
"start": {
"line": 164,
"column": 8
},
"end": {
"line": 164,
"column": 9
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "value",
"start": 4198,
"end": 4205,
"loc": {
"start": {
"line": 164,
"column": 9
},
"end": {
"line": 164,
"column": 16
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4205,
"end": 4206,
"loc": {
"start": {
"line": 164,
"column": 16
},
"end": {
"line": 164,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "chkValue",
"start": 4207,
"end": 4215,
"loc": {
"start": {
"line": 164,
"column": 18
},
"end": {
"line": 164,
"column": 26
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4215,
"end": 4216,
"loc": {
"start": {
"line": 164,
"column": 26
},
"end": {
"line": 164,
"column": 27
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4216,
"end": 4217,
"loc": {
"start": {
"line": 164,
"column": 27
},
"end": {
"line": 164,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "extraAttr",
"start": 4226,
"end": 4235,
"loc": {
"start": {
"line": 165,
"column": 8
},
"end": {
"line": 165,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4240,
"end": 4241,
"loc": {
"start": {
"line": 166,
"column": 4
},
"end": {
"line": 166,
"column": 5
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4241,
"end": 4242,
"loc": {
"start": {
"line": 166,
"column": 5
},
"end": {
"line": 166,
"column": 6
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "label",
"start": 4247,
"end": 4252,
"loc": {
"start": {
"line": 167,
"column": 4
},
"end": {
"line": 167,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4252,
"end": 4253,
"loc": {
"start": {
"line": 167,
"column": 9
},
"end": {
"line": 167,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "appendChild",
"start": 4253,
"end": 4264,
"loc": {
"start": {
"line": 167,
"column": 10
},
"end": {
"line": 167,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4264,
"end": 4265,
"loc": {
"start": {
"line": 167,
"column": 21
},
"end": {
"line": 167,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "check",
"start": 4265,
"end": 4270,
"loc": {
"start": {
"line": 167,
"column": 22
},
"end": {
"line": 167,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4270,
"end": 4271,
"loc": {
"start": {
"line": 167,
"column": 27
},
"end": {
"line": 167,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4271,
"end": 4272,
"loc": {
"start": {
"line": 167,
"column": 28
},
"end": {
"line": 167,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "label",
"start": 4277,
"end": 4282,
"loc": {
"start": {
"line": 168,
"column": 4
},
"end": {
"line": 168,
"column": 9
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4282,
"end": 4283,
"loc": {
"start": {
"line": 168,
"column": 9
},
"end": {
"line": 168,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "appendChild",
"start": 4283,
"end": 4294,
"loc": {
"start": {
"line": 168,
"column": 10
},
"end": {
"line": 168,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4294,
"end": 4295,
"loc": {
"start": {
"line": 168,
"column": 21
},
"end": {
"line": 168,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "createText",
"start": 4295,
"end": 4305,
"loc": {
"start": {
"line": 168,
"column": 22
},
"end": {
"line": 168,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4305,
"end": 4306,
"loc": {
"start": {
"line": 168,
"column": 32
},
"end": {
"line": 168,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "labelText",
"start": 4306,
"end": 4315,
"loc": {
"start": {
"line": 168,
"column": 33
},
"end": {
"line": 168,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4315,
"end": 4316,
"loc": {
"start": {
"line": 168,
"column": 42
},
"end": {
"line": 168,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4316,
"end": 4317,
"loc": {
"start": {
"line": 168,
"column": 43
},
"end": {
"line": 168,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4317,
"end": 4318,
"loc": {
"start": {
"line": 168,
"column": 44
},
"end": {
"line": 168,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "li",
"start": 4323,
"end": 4325,
"loc": {
"start": {
"line": 169,
"column": 4
},
"end": {
"line": 169,
"column": 6
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4325,
"end": 4326,
"loc": {
"start": {
"line": 169,
"column": 6
},
"end": {
"line": 169,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "appendChild",
"start": 4326,
"end": 4337,
"loc": {
"start": {
"line": 169,
"column": 7
},
"end": {
"line": 169,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4337,
"end": 4338,
"loc": {
"start": {
"line": 169,
"column": 18
},
"end": {
"line": 169,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "label",
"start": 4338,
"end": 4343,
"loc": {
"start": {
"line": 169,
"column": 19
},
"end": {
"line": 169,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4343,
"end": 4344,
"loc": {
"start": {
"line": 169,
"column": 24
},
"end": {
"line": 169,
"column": 25
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4344,
"end": 4345,
"loc": {
"start": {
"line": 169,
"column": 25
},
"end": {
"line": 169,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "li",
"start": 4350,
"end": 4352,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 170,
"column": 6
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4352,
"end": 4353,
"loc": {
"start": {
"line": 170,
"column": 6
},
"end": {
"line": 170,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "label",
"start": 4353,
"end": 4358,
"loc": {
"start": {
"line": 170,
"column": 7
},
"end": {
"line": 170,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4359,
"end": 4360,
"loc": {
"start": {
"line": 170,
"column": 13
},
"end": {
"line": 170,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "label",
"start": 4361,
"end": 4366,
"loc": {
"start": {
"line": 170,
"column": 15
},
"end": {
"line": 170,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4366,
"end": 4367,
"loc": {
"start": {
"line": 170,
"column": 20
},
"end": {
"line": 170,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "li",
"start": 4372,
"end": 4374,
"loc": {
"start": {
"line": 171,
"column": 4
},
"end": {
"line": 171,
"column": 6
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4374,
"end": 4375,
"loc": {
"start": {
"line": 171,
"column": 6
},
"end": {
"line": 171,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "check",
"start": 4375,
"end": 4380,
"loc": {
"start": {
"line": 171,
"column": 7
},
"end": {
"line": 171,
"column": 12
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4381,
"end": 4382,
"loc": {
"start": {
"line": 171,
"column": 13
},
"end": {
"line": 171,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "check",
"start": 4383,
"end": 4388,
"loc": {
"start": {
"line": 171,
"column": 15
},
"end": {
"line": 171,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4388,
"end": 4389,
"loc": {
"start": {
"line": 171,
"column": 20
},
"end": {
"line": 171,
"column": 21
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 4394,
"end": 4400,
"loc": {
"start": {
"line": 172,
"column": 4
},
"end": {
"line": 172,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "li",
"start": 4401,
"end": 4403,
"loc": {
"start": {
"line": 172,
"column": 11
},
"end": {
"line": 172,
"column": 13
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4403,
"end": 4404,
"loc": {
"start": {
"line": 172,
"column": 13
},
"end": {
"line": 172,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4405,
"end": 4406,
"loc": {
"start": {
"line": 173,
"column": 0
},
"end": {
"line": 173,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4406,
"end": 4407,
"loc": {
"start": {
"line": 173,
"column": 1
},
"end": {
"line": 173,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the element matching the supplied Id\n * @param {String} id Element identifier\n * @return {DOMElement}\n ",
"start": 4409,
"end": 4531,
"loc": {
"start": {
"line": 175,
"column": 0
},
"end": {
"line": 179,
"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": 4532,
"end": 4538,
"loc": {
"start": {
"line": 180,
"column": 0
},
"end": {
"line": 180,
"column": 6
}
}
},
{
"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": 4539,
"end": 4544,
"loc": {
"start": {
"line": 180,
"column": 7
},
"end": {
"line": 180,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "elm",
"start": 4545,
"end": 4548,
"loc": {
"start": {
"line": 180,
"column": 13
},
"end": {
"line": 180,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4549,
"end": 4550,
"loc": {
"start": {
"line": 180,
"column": 17
},
"end": {
"line": 180,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4551,
"end": 4552,
"loc": {
"start": {
"line": 180,
"column": 19
},
"end": {
"line": 180,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 4552,
"end": 4554,
"loc": {
"start": {
"line": 180,
"column": 20
},
"end": {
"line": 180,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4554,
"end": 4555,
"loc": {
"start": {
"line": 180,
"column": 22
},
"end": {
"line": 180,
"column": 23
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4556,
"end": 4558,
"loc": {
"start": {
"line": 180,
"column": 24
},
"end": {
"line": 180,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "doc",
"start": 4559,
"end": 4562,
"loc": {
"start": {
"line": 180,
"column": 27
},
"end": {
"line": 180,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4562,
"end": 4563,
"loc": {
"start": {
"line": 180,
"column": 30
},
"end": {
"line": 180,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getElementById",
"start": 4563,
"end": 4577,
"loc": {
"start": {
"line": 180,
"column": 31
},
"end": {
"line": 180,
"column": 45
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4577,
"end": 4578,
"loc": {
"start": {
"line": 180,
"column": 45
},
"end": {
"line": 180,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "id",
"start": 4578,
"end": 4580,
"loc": {
"start": {
"line": 180,
"column": 46
},
"end": {
"line": 180,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4580,
"end": 4581,
"loc": {
"start": {
"line": 180,
"column": 48
},
"end": {
"line": 180,
"column": 49
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4581,
"end": 4582,
"loc": {
"start": {
"line": 180,
"column": 49
},
"end": {
"line": 180,
"column": 50
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns list of element matching the supplied tag name\n * @param {String} tagname Tag name\n * @return {NodeList}\n ",
"start": 4584,
"end": 4709,
"loc": {
"start": {
"line": 182,
"column": 0
},
"end": {
"line": 186,
"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": 4710,
"end": 4716,
"loc": {
"start": {
"line": 187,
"column": 0
},
"end": {
"line": 187,
"column": 6
}
}
},
{
"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": 4717,
"end": 4722,
"loc": {
"start": {
"line": 187,
"column": 7
},
"end": {
"line": 187,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tag",
"start": 4723,
"end": 4726,
"loc": {
"start": {
"line": 187,
"column": 13
},
"end": {
"line": 187,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4727,
"end": 4728,
"loc": {
"start": {
"line": 187,
"column": 17
},
"end": {
"line": 187,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4729,
"end": 4730,
"loc": {
"start": {
"line": 187,
"column": 19
},
"end": {
"line": 187,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4730,
"end": 4731,
"loc": {
"start": {
"line": 187,
"column": 20
},
"end": {
"line": 187,
"column": 21
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4731,
"end": 4732,
"loc": {
"start": {
"line": 187,
"column": 21
},
"end": {
"line": 187,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tagname",
"start": 4733,
"end": 4740,
"loc": {
"start": {
"line": 187,
"column": 23
},
"end": {
"line": 187,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4740,
"end": 4741,
"loc": {
"start": {
"line": 187,
"column": 30
},
"end": {
"line": 187,
"column": 31
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4742,
"end": 4744,
"loc": {
"start": {
"line": 187,
"column": 32
},
"end": {
"line": 187,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "o",
"start": 4745,
"end": 4746,
"loc": {
"start": {
"line": 187,
"column": 35
},
"end": {
"line": 187,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4746,
"end": 4747,
"loc": {
"start": {
"line": 187,
"column": 36
},
"end": {
"line": 187,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getElementsByTagName",
"start": 4747,
"end": 4767,
"loc": {
"start": {
"line": 187,
"column": 37
},
"end": {
"line": 187,
"column": 57
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4767,
"end": 4768,
"loc": {
"start": {
"line": 187,
"column": 57
},
"end": {
"line": 187,
"column": 58
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tagname",
"start": 4768,
"end": 4775,
"loc": {
"start": {
"line": 187,
"column": 58
},
"end": {
"line": 187,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4775,
"end": 4776,
"loc": {
"start": {
"line": 187,
"column": 65
},
"end": {
"line": 187,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4776,
"end": 4777,
"loc": {
"start": {
"line": 187,
"column": 66
},
"end": {
"line": 187,
"column": 67
}
}
},
{
"type": "CommentLine",
"value": " HTML5 classList API",
"start": 4779,
"end": 4801,
"loc": {
"start": {
"line": 189,
"column": 0
},
"end": {
"line": 189,
"column": 22
}
}
},
{
"type": {
"label": "function",
"keyword": "function",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "function",
"start": 4802,
"end": 4810,
"loc": {
"start": {
"line": 190,
"column": 0
},
"end": {
"line": 190,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "supportsClassList",
"start": 4811,
"end": 4828,
"loc": {
"start": {
"line": 190,
"column": 9
},
"end": {
"line": 190,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4828,
"end": 4829,
"loc": {
"start": {
"line": 190,
"column": 26
},
"end": {
"line": 190,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4829,
"end": 4830,
"loc": {
"start": {
"line": 190,
"column": 27
},
"end": {
"line": 190,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4831,
"end": 4832,
"loc": {
"start": {
"line": 190,
"column": 29
},
"end": {
"line": 190,
"column": 30
}
}
},
{
"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": 4837,
"end": 4843,
"loc": {
"start": {
"line": 191,
"column": 4
},
"end": {
"line": 191,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "doc",
"start": 4844,
"end": 4847,
"loc": {
"start": {
"line": 191,
"column": 11
},
"end": {
"line": 191,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4847,
"end": 4848,
"loc": {
"start": {
"line": 191,
"column": 14
},
"end": {
"line": 191,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "documentElement",
"start": 4848,
"end": 4863,
"loc": {
"start": {
"line": 191,
"column": 15
},
"end": {
"line": 191,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4863,
"end": 4864,
"loc": {
"start": {
"line": 191,
"column": 30
},
"end": {
"line": 191,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "classList",
"start": 4864,
"end": 4873,
"loc": {
"start": {
"line": 191,
"column": 31
},
"end": {
"line": 191,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4873,
"end": 4874,
"loc": {
"start": {
"line": 191,
"column": 40
},
"end": {
"line": 191,
"column": 41
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4875,
"end": 4876,
"loc": {
"start": {
"line": 192,
"column": 0
},
"end": {
"line": 192,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4877,
"end": 4877,
"loc": {
"start": {
"line": 193,
"column": 0
},
"end": {
"line": 193,
"column": 0
}
}
}
]
}