{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Dom", "range": [ 7, 10 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 10 } } }, "range": [ 7, 10 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 10 } } } ], "source": { "type": "Literal", "value": "../dom", "raw": "'../dom'", "range": [ 16, 24 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 24 } } }, "range": [ 0, 25 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 25 } } }, { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Str", "range": [ 34, 37 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 10 } } }, "range": [ 34, 37 ], "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 10 } } } ], "source": { "type": "Literal", "value": "../string", "raw": "'../string'", "range": [ 43, 54 ], "loc": { "start": { "line": 2, "column": 16 }, "end": { "line": 2, "column": 27 } } }, "range": [ 27, 55 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 28 } } }, { "type": "ExportNamedDeclaration", "declaration": { "type": "ClassDeclaration", "id": { "type": "Identifier", "name": "HighlightKeyword", "range": [ 72, 88 ], "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 4, "column": 29 } } }, "superClass": null, "body": { "type": "ClassBody", "body": [ { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "constructor", "range": [ 215, 226 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 15 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "tf", "range": [ 227, 229 ], "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 18 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "f", "range": [ 246, 247 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "tf", "range": [ 250, 252 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 18 } } }, "property": { "type": "Identifier", "name": "config", "range": [ 253, 259 ], "loc": { "start": { "line": 11, "column": 19 }, "end": { "line": 11, "column": 25 } } }, "range": [ 250, 259 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 25 } } }, "arguments": [], "range": [ 250, 261 ], "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 27 } } }, "range": [ 246, 261 ], "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 27 } } } ], "kind": "var", "range": [ 242, 262 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 28 } }, "trailingComments": [ { "type": "Line", "value": "defines css class for highlighting", "range": [ 272, 308 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 44 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 318, 322 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "name": "highlightCssClass", "range": [ 323, 340 ], "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 30 } } }, "range": [ 318, 340 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 30 } } }, "right": { "type": "LogicalExpression", "operator": "||", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "f", "range": [ 343, 344 ], "loc": { "start": { "line": 13, "column": 33 }, "end": { "line": 13, "column": 34 } } }, "property": { "type": "Identifier", "name": "highlight_css_class", "range": [ 345, 364 ], "loc": { "start": { "line": 13, "column": 35 }, "end": { "line": 13, "column": 54 } } }, "range": [ 343, 364 ], "loc": { "start": { "line": 13, "column": 33 }, "end": { "line": 13, "column": 54 } } }, "right": { "type": "Literal", "value": "keyword", "raw": "'keyword'", "range": [ 368, 377 ], "loc": { "start": { "line": 13, "column": 58 }, "end": { "line": 13, "column": 67 } } }, "range": [ 343, 377 ], "loc": { "start": { "line": 13, "column": 33 }, "end": { "line": 13, "column": 67 } } }, "range": [ 318, 377 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 67 } } }, "range": [ 318, 378 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 68 } }, "leadingComments": [ { "type": "Line", "value": "defines css class for highlighting", "range": [ 272, 308 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 44 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 388, 392 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "name": "highlightedNodes", "range": [ 393, 409 ], "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 29 } } }, "range": [ 388, 409 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 29 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 412, 414 ], "loc": { "start": { "line": 14, "column": 32 }, "end": { "line": 14, "column": 34 } } }, "range": [ 388, 414 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 34 } } }, "range": [ 388, 415 ], "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 35 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 427, 431 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "name": "tf", "range": [ 432, 434 ], "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 15 } } }, "range": [ 427, 434 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 15 } } }, "right": { "type": "Identifier", "name": "tf", "range": [ 437, 439 ], "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 20 } } }, "range": [ 427, 439 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 20 } } }, "range": [ 427, 440 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 21 } } } ], "range": [ 231, 447 ], "loc": { "start": { "line": 10, "column": 20 }, "end": { "line": 17, "column": 5 } } }, "generator": false, "expression": false, "range": [ 226, 447 ], "loc": { "start": { "line": 10, "column": 15 }, "end": { "line": 17, "column": 5 } } }, "kind": "constructor", "computed": false, "range": [ 215, 447 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 17, "column": 5 } }, "leadingComments": [ { "type": "Block", "value": "*\r\n * HighlightKeyword, highlight matched keyword\r\n * @param {Object} tf TableFilter instance\r\n ", "range": [ 97, 209 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 9, "column": 7 } } } ], "trailingComments": [ { "type": "Block", "value": "*\r\n * highlight occurences of searched term in passed node\r\n * @param {Node} node\r\n * @param {String} word Searched term\r\n * @param {String} cssClass Css class name\r\n ", "range": [ 455, 653 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 24, "column": 7 } } } ], "static": false }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "highlight", "range": [ 659, 668 ], "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 13 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "node", "range": [ 669, 673 ], "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 18 } } }, { "type": "Identifier", "name": "word", "range": [ 675, 679 ], "loc": { "start": { "line": 25, "column": 20 }, "end": { "line": 25, "column": 24 } } }, { "type": "Identifier", "name": "cssClass", "range": [ 681, 689 ], "loc": { "start": { "line": 25, "column": 26 }, "end": { "line": 25, "column": 34 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "node", "range": [ 751, 755 ], "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 15 } } }, "property": { "type": "Identifier", "name": "hasChildNodes", "range": [ 756, 769 ], "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 29 } } }, "range": [ 751, 769 ], "loc": { "start": { "line": 27, "column": 11 }, "end": { "line": 27, "column": 29 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "children", "range": [ 789, 797 ], "loc": { "start": { "line": 28, "column": 16 }, "end": { "line": 28, "column": 24 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "node", "range": [ 800, 804 ], "loc": { "start": { "line": 28, "column": 27 }, "end": { "line": 28, "column": 31 } } }, "property": { "type": "Identifier", "name": "childNodes", "range": [ 805, 815 ], "loc": { "start": { "line": 28, "column": 32 }, "end": { "line": 28, "column": 42 } } }, "range": [ 800, 815 ], "loc": { "start": { "line": 28, "column": 27 }, "end": { "line": 28, "column": 42 } } }, "range": [ 789, 815 ], "loc": { "start": { "line": 28, "column": 16 }, "end": { "line": 28, "column": 42 } } } ], "kind": "var", "range": [ 785, 816 ], "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 43 } } }, { "type": "ForStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "range": [ 838, 839 ], "loc": { "start": { "line": 29, "column": 20 }, "end": { "line": 29, "column": 21 } } }, "init": { "type": "Literal", "value": 0, "raw": "0", "range": [ 840, 841 ], "loc": { "start": { "line": 29, "column": 22 }, "end": { "line": 29, "column": 23 } } }, "range": [ 838, 841 ], "loc": { "start": { "line": 29, "column": 20 }, "end": { "line": 29, "column": 23 } } } ], "kind": "var", "range": [ 834, 841 ], "loc": { "start": { "line": 29, "column": 16 }, "end": { "line": 29, "column": 23 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "range": [ 843, 844 ], "loc": { "start": { "line": 29, "column": 25 }, "end": { "line": 29, "column": 26 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "children", "range": [ 845, 853 ], "loc": { "start": { "line": 29, "column": 27 }, "end": { "line": 29, "column": 35 } } }, "property": { "type": "Identifier", "name": "length", "range": [ 854, 860 ], "loc": { "start": { "line": 29, "column": 36 }, "end": { "line": 29, "column": 42 } } }, "range": [ 845, 860 ], "loc": { "start": { "line": 29, "column": 27 }, "end": { "line": 29, "column": 42 } } }, "range": [ 843, 860 ], "loc": { "start": { "line": 29, "column": 25 }, "end": { "line": 29, "column": 42 } } }, "update": { "type": "UpdateExpression", "operator": "++", "argument": { "type": "Identifier", "name": "i", "range": [ 862, 863 ], "loc": { "start": { "line": 29, "column": 44 }, "end": { "line": 29, "column": 45 } } }, "prefix": false, "range": [ 862, 865 ], "loc": { "start": { "line": 29, "column": 44 }, "end": { "line": 29, "column": 47 } } }, "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 885, 889 ], "loc": { "start": { "line": 30, "column": 16 }, "end": { "line": 30, "column": 20 } } }, "property": { "type": "Identifier", "name": "highlight", "range": [ 890, 899 ], "loc": { "start": { "line": 30, "column": 21 }, "end": { "line": 30, "column": 30 } } }, "range": [ 885, 899 ], "loc": { "start": { "line": 30, "column": 16 }, "end": { "line": 30, "column": 30 } } }, "arguments": [ { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "children", "range": [ 900, 908 ], "loc": { "start": { "line": 30, "column": 31 }, "end": { "line": 30, "column": 39 } } }, "property": { "type": "Identifier", "name": "i", "range": [ 909, 910 ], "loc": { "start": { "line": 30, "column": 40 }, "end": { "line": 30, "column": 41 } } }, "range": [ 900, 911 ], "loc": { "start": { "line": 30, "column": 31 }, "end": { "line": 30, "column": 42 } } }, { "type": "Identifier", "name": "word", "range": [ 913, 917 ], "loc": { "start": { "line": 30, "column": 44 }, "end": { "line": 30, "column": 48 } } }, { "type": "Identifier", "name": "cssClass", "range": [ 919, 927 ], "loc": { "start": { "line": 30, "column": 50 }, "end": { "line": 30, "column": 58 } } } ], "range": [ 885, 928 ], "loc": { "start": { "line": 30, "column": 16 }, "end": { "line": 30, "column": 59 } } }, "range": [ 885, 929 ], "loc": { "start": { "line": 30, "column": 16 }, "end": { "line": 30, "column": 60 } } } ], "range": [ 866, 944 ], "loc": { "start": { "line": 29, "column": 48 }, "end": { "line": 31, "column": 13 } } }, "range": [ 830, 944 ], "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 31, "column": 13 } } } ], "range": [ 770, 955 ], "loc": { "start": { "line": 27, "column": 30 }, "end": { "line": 32, "column": 9 } } }, "alternate": null, "range": [ 748, 955 ], "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 32, "column": 9 } }, "leadingComments": [ { "type": "Line", "value": " Iterate into this nodes childNodes", "range": [ 701, 738 ], "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 45 } } } ] }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "===", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "node", "range": [ 970, 974 ], "loc": { "start": { "line": 34, "column": 11 }, "end": { "line": 34, "column": 15 } } }, "property": { "type": "Identifier", "name": "nodeType", "range": [ 975, 983 ], "loc": { "start": { "line": 34, "column": 16 }, "end": { "line": 34, "column": 24 } } }, "range": [ 970, 983 ], "loc": { "start": { "line": 34, "column": 11 }, "end": { "line": 34, "column": 24 } } }, "right": { "type": "Literal", "value": 3, "raw": "3", "range": [ 988, 989 ], "loc": { "start": { "line": 34, "column": 29 }, "end": { "line": 34, "column": 30 } } }, "range": [ 970, 989 ], "loc": { "start": { "line": 34, "column": 11 }, "end": { "line": 34, "column": 30 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "tempNodeVal", "range": [ 1009, 1020 ], "loc": { "start": { "line": 35, "column": 16 }, "end": { "line": 35, "column": 27 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Str", "range": [ 1023, 1026 ], "loc": { "start": { "line": 35, "column": 30 }, "end": { "line": 35, "column": 33 } } }, "property": { "type": "Identifier", "name": "lower", "range": [ 1027, 1032 ], "loc": { "start": { "line": 35, "column": 34 }, "end": { "line": 35, "column": 39 } } }, "range": [ 1023, 1032 ], "loc": { "start": { "line": 35, "column": 30 }, "end": { "line": 35, "column": 39 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "node", "range": [ 1033, 1037 ], "loc": { "start": { "line": 35, "column": 40 }, "end": { "line": 35, "column": 44 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 1038, 1047 ], "loc": { "start": { "line": 35, "column": 45 }, "end": { "line": 35, "column": 54 } } }, "range": [ 1033, 1047 ], "loc": { "start": { "line": 35, "column": 40 }, "end": { "line": 35, "column": 54 } } } ], "range": [ 1023, 1048 ], "loc": { "start": { "line": 35, "column": 30 }, "end": { "line": 35, "column": 55 } } }, "range": [ 1009, 1048 ], "loc": { "start": { "line": 35, "column": 16 }, "end": { "line": 35, "column": 55 } } } ], "kind": "var", "range": [ 1005, 1049 ], "loc": { "start": { "line": 35, "column": 12 }, "end": { "line": 35, "column": 56 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "tempWordVal", "range": [ 1067, 1078 ], "loc": { "start": { "line": 36, "column": 16 }, "end": { "line": 36, "column": 27 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Str", "range": [ 1081, 1084 ], "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 33 } } }, "property": { "type": "Identifier", "name": "lower", "range": [ 1085, 1090 ], "loc": { "start": { "line": 36, "column": 34 }, "end": { "line": 36, "column": 39 } } }, "range": [ 1081, 1090 ], "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 39 } } }, "arguments": [ { "type": "Identifier", "name": "word", "range": [ 1091, 1095 ], "loc": { "start": { "line": 36, "column": 40 }, "end": { "line": 36, "column": 44 } } } ], "range": [ 1081, 1096 ], "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 45 } } }, "range": [ 1067, 1096 ], "loc": { "start": { "line": 36, "column": 16 }, "end": { "line": 36, "column": 45 } } } ], "kind": "var", "range": [ 1063, 1097 ], "loc": { "start": { "line": 36, "column": 12 }, "end": { "line": 36, "column": 46 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "!=", "left": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "tempNodeVal", "range": [ 1114, 1125 ], "loc": { "start": { "line": 37, "column": 15 }, "end": { "line": 37, "column": 26 } } }, "property": { "type": "Identifier", "name": "indexOf", "range": [ 1126, 1133 ], "loc": { "start": { "line": 37, "column": 27 }, "end": { "line": 37, "column": 34 } } }, "range": [ 1114, 1133 ], "loc": { "start": { "line": 37, "column": 15 }, "end": { "line": 37, "column": 34 } } }, "arguments": [ { "type": "Identifier", "name": "tempWordVal", "range": [ 1134, 1145 ], "loc": { "start": { "line": 37, "column": 35 }, "end": { "line": 37, "column": 46 } } } ], "range": [ 1114, 1146 ], "loc": { "start": { "line": 37, "column": 15 }, "end": { "line": 37, "column": 47 } } }, "right": { "type": "UnaryExpression", "operator": "-", "argument": { "type": "Literal", "value": 1, "raw": "1", "range": [ 1151, 1152 ], "loc": { "start": { "line": 37, "column": 52 }, "end": { "line": 37, "column": 53 } } }, "prefix": true, "range": [ 1150, 1152 ], "loc": { "start": { "line": 37, "column": 51 }, "end": { "line": 37, "column": 53 } } }, "range": [ 1114, 1152 ], "loc": { "start": { "line": 37, "column": 15 }, "end": { "line": 37, "column": 53 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "pn", "range": [ 1176, 1178 ], "loc": { "start": { "line": 38, "column": 20 }, "end": { "line": 38, "column": 22 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "node", "range": [ 1181, 1185 ], "loc": { "start": { "line": 38, "column": 25 }, "end": { "line": 38, "column": 29 } } }, "property": { "type": "Identifier", "name": "parentNode", "range": [ 1186, 1196 ], "loc": { "start": { "line": 38, "column": 30 }, "end": { "line": 38, "column": 40 } } }, "range": [ 1181, 1196 ], "loc": { "start": { "line": 38, "column": 25 }, "end": { "line": 38, "column": 40 } } }, "range": [ 1176, 1196 ], "loc": { "start": { "line": 38, "column": 20 }, "end": { "line": 38, "column": 40 } } } ], "kind": "var", "range": [ 1172, 1197 ], "loc": { "start": { "line": 38, "column": 16 }, "end": { "line": 38, "column": 41 } } }, { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "pn", "range": [ 1218, 1220 ], "loc": { "start": { "line": 39, "column": 19 }, "end": { "line": 39, "column": 21 } } }, "right": { "type": "BinaryExpression", "operator": "!=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 1224, 1226 ], "loc": { "start": { "line": 39, "column": 25 }, "end": { "line": 39, "column": 27 } } }, "property": { "type": "Identifier", "name": "className", "range": [ 1227, 1236 ], "loc": { "start": { "line": 39, "column": 28 }, "end": { "line": 39, "column": 37 } } }, "range": [ 1224, 1236 ], "loc": { "start": { "line": 39, "column": 25 }, "end": { "line": 39, "column": 37 } } }, "right": { "type": "Identifier", "name": "cssClass", "range": [ 1240, 1248 ], "loc": { "start": { "line": 39, "column": 41 }, "end": { "line": 39, "column": 49 } } }, "range": [ 1224, 1248 ], "loc": { "start": { "line": 39, "column": 25 }, "end": { "line": 39, "column": 49 } } }, "range": [ 1218, 1248 ], "loc": { "start": { "line": 39, "column": 19 }, "end": { "line": 39, "column": 49 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "nv", "range": [ 1325, 1327 ], "loc": { "start": { "line": 41, "column": 24 }, "end": { "line": 41, "column": 26 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "node", "range": [ 1330, 1334 ], "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 33 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 1335, 1344 ], "loc": { "start": { "line": 41, "column": 34 }, "end": { "line": 41, "column": 43 } } }, "range": [ 1330, 1344 ], "loc": { "start": { "line": 41, "column": 29 }, "end": { "line": 41, "column": 43 } } }, "range": [ 1325, 1344 ], "loc": { "start": { "line": 41, "column": 24 }, "end": { "line": 41, "column": 43 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "ni", "range": [ 1371, 1373 ], "loc": { "start": { "line": 42, "column": 24 }, "end": { "line": 42, "column": 26 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "tempNodeVal", "range": [ 1376, 1387 ], "loc": { "start": { "line": 42, "column": 29 }, "end": { "line": 42, "column": 40 } } }, "property": { "type": "Identifier", "name": "indexOf", "range": [ 1388, 1395 ], "loc": { "start": { "line": 42, "column": 41 }, "end": { "line": 42, "column": 48 } } }, "range": [ 1376, 1395 ], "loc": { "start": { "line": 42, "column": 29 }, "end": { "line": 42, "column": 48 } } }, "arguments": [ { "type": "Identifier", "name": "tempWordVal", "range": [ 1396, 1407 ], "loc": { "start": { "line": 42, "column": 49 }, "end": { "line": 42, "column": 60 } } } ], "range": [ 1376, 1408 ], "loc": { "start": { "line": 42, "column": 29 }, "end": { "line": 42, "column": 61 } } }, "range": [ 1371, 1408 ], "loc": { "start": { "line": 42, "column": 24 }, "end": { "line": 42, "column": 61 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "before", "range": [ 1498, 1504 ], "loc": { "start": { "line": 44, "column": 24 }, "end": { "line": 44, "column": 30 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Dom", "range": [ 1507, 1510 ], "loc": { "start": { "line": 44, "column": 33 }, "end": { "line": 44, "column": 36 } } }, "property": { "type": "Identifier", "name": "text", "range": [ 1511, 1515 ], "loc": { "start": { "line": 44, "column": 37 }, "end": { "line": 44, "column": 41 } } }, "range": [ 1507, 1515 ], "loc": { "start": { "line": 44, "column": 33 }, "end": { "line": 44, "column": 41 } } }, "arguments": [ { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "nv", "range": [ 1516, 1518 ], "loc": { "start": { "line": 44, "column": 42 }, "end": { "line": 44, "column": 44 } } }, "property": { "type": "Identifier", "name": "substr", "range": [ 1519, 1525 ], "loc": { "start": { "line": 44, "column": 45 }, "end": { "line": 44, "column": 51 } } }, "range": [ 1516, 1525 ], "loc": { "start": { "line": 44, "column": 42 }, "end": { "line": 44, "column": 51 } } }, "arguments": [ { "type": "Literal", "value": 0, "raw": "0", "range": [ 1526, 1527 ], "loc": { "start": { "line": 44, "column": 52 }, "end": { "line": 44, "column": 53 } } }, { "type": "Identifier", "name": "ni", "range": [ 1529, 1531 ], "loc": { "start": { "line": 44, "column": 55 }, "end": { "line": 44, "column": 57 } } } ], "range": [ 1516, 1532 ], "loc": { "start": { "line": 44, "column": 42 }, "end": { "line": 44, "column": 58 } } } ], "range": [ 1507, 1533 ], "loc": { "start": { "line": 44, "column": 33 }, "end": { "line": 44, "column": 59 } } }, "range": [ 1498, 1533 ], "loc": { "start": { "line": 44, "column": 24 }, "end": { "line": 44, "column": 59 } }, "leadingComments": [ { "type": "Line", "value": " Create a load of replacement nodes", "range": [ 1435, 1472 ], "loc": { "start": { "line": 43, "column": 24 }, "end": { "line": 43, "column": 61 } } } ] }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "docWordVal", "range": [ 1560, 1570 ], "loc": { "start": { "line": 45, "column": 24 }, "end": { "line": 45, "column": 34 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "nv", "range": [ 1573, 1575 ], "loc": { "start": { "line": 45, "column": 37 }, "end": { "line": 45, "column": 39 } } }, "property": { "type": "Identifier", "name": "substr", "range": [ 1576, 1582 ], "loc": { "start": { "line": 45, "column": 40 }, "end": { "line": 45, "column": 46 } } }, "range": [ 1573, 1582 ], "loc": { "start": { "line": 45, "column": 37 }, "end": { "line": 45, "column": 46 } } }, "arguments": [ { "type": "Identifier", "name": "ni", "range": [ 1583, 1585 ], "loc": { "start": { "line": 45, "column": 47 }, "end": { "line": 45, "column": 49 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "word", "range": [ 1586, 1590 ], "loc": { "start": { "line": 45, "column": 50 }, "end": { "line": 45, "column": 54 } } }, "property": { "type": "Identifier", "name": "length", "range": [ 1591, 1597 ], "loc": { "start": { "line": 45, "column": 55 }, "end": { "line": 45, "column": 61 } } }, "range": [ 1586, 1597 ], "loc": { "start": { "line": 45, "column": 50 }, "end": { "line": 45, "column": 61 } } } ], "range": [ 1573, 1598 ], "loc": { "start": { "line": 45, "column": 37 }, "end": { "line": 45, "column": 62 } } }, "range": [ 1560, 1598 ], "loc": { "start": { "line": 45, "column": 24 }, "end": { "line": 45, "column": 62 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "after", "range": [ 1625, 1630 ], "loc": { "start": { "line": 46, "column": 24 }, "end": { "line": 46, "column": 29 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Dom", "range": [ 1633, 1636 ], "loc": { "start": { "line": 46, "column": 32 }, "end": { "line": 46, "column": 35 } } }, "property": { "type": "Identifier", "name": "text", "range": [ 1637, 1641 ], "loc": { "start": { "line": 46, "column": 36 }, "end": { "line": 46, "column": 40 } } }, "range": [ 1633, 1641 ], "loc": { "start": { "line": 46, "column": 32 }, "end": { "line": 46, "column": 40 } } }, "arguments": [ { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "nv", "range": [ 1642, 1644 ], "loc": { "start": { "line": 46, "column": 41 }, "end": { "line": 46, "column": 43 } } }, "property": { "type": "Identifier", "name": "substr", "range": [ 1645, 1651 ], "loc": { "start": { "line": 46, "column": 44 }, "end": { "line": 46, "column": 50 } } }, "range": [ 1642, 1651 ], "loc": { "start": { "line": 46, "column": 41 }, "end": { "line": 46, "column": 50 } } }, "arguments": [ { "type": "BinaryExpression", "operator": "+", "left": { "type": "Identifier", "name": "ni", "range": [ 1652, 1654 ], "loc": { "start": { "line": 46, "column": 51 }, "end": { "line": 46, "column": 53 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "word", "range": [ 1655, 1659 ], "loc": { "start": { "line": 46, "column": 54 }, "end": { "line": 46, "column": 58 } } }, "property": { "type": "Identifier", "name": "length", "range": [ 1660, 1666 ], "loc": { "start": { "line": 46, "column": 59 }, "end": { "line": 46, "column": 65 } } }, "range": [ 1655, 1666 ], "loc": { "start": { "line": 46, "column": 54 }, "end": { "line": 46, "column": 65 } } }, "range": [ 1652, 1666 ], "loc": { "start": { "line": 46, "column": 51 }, "end": { "line": 46, "column": 65 } } } ], "range": [ 1642, 1667 ], "loc": { "start": { "line": 46, "column": 41 }, "end": { "line": 46, "column": 66 } } } ], "range": [ 1633, 1668 ], "loc": { "start": { "line": 46, "column": 32 }, "end": { "line": 46, "column": 67 } } }, "range": [ 1625, 1668 ], "loc": { "start": { "line": 46, "column": 24 }, "end": { "line": 46, "column": 67 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "hiwordtext", "range": [ 1695, 1705 ], "loc": { "start": { "line": 47, "column": 24 }, "end": { "line": 47, "column": 34 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Dom", "range": [ 1708, 1711 ], "loc": { "start": { "line": 47, "column": 37 }, "end": { "line": 47, "column": 40 } } }, "property": { "type": "Identifier", "name": "text", "range": [ 1712, 1716 ], "loc": { "start": { "line": 47, "column": 41 }, "end": { "line": 47, "column": 45 } } }, "range": [ 1708, 1716 ], "loc": { "start": { "line": 47, "column": 37 }, "end": { "line": 47, "column": 45 } } }, "arguments": [ { "type": "Identifier", "name": "docWordVal", "range": [ 1717, 1727 ], "loc": { "start": { "line": 47, "column": 46 }, "end": { "line": 47, "column": 56 } } } ], "range": [ 1708, 1728 ], "loc": { "start": { "line": 47, "column": 37 }, "end": { "line": 47, "column": 57 } } }, "range": [ 1695, 1728 ], "loc": { "start": { "line": 47, "column": 24 }, "end": { "line": 47, "column": 57 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "hiword", "range": [ 1755, 1761 ], "loc": { "start": { "line": 48, "column": 24 }, "end": { "line": 48, "column": 30 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Dom", "range": [ 1764, 1767 ], "loc": { "start": { "line": 48, "column": 33 }, "end": { "line": 48, "column": 36 } } }, "property": { "type": "Identifier", "name": "create", "range": [ 1768, 1774 ], "loc": { "start": { "line": 48, "column": 37 }, "end": { "line": 48, "column": 43 } } }, "range": [ 1764, 1774 ], "loc": { "start": { "line": 48, "column": 33 }, "end": { "line": 48, "column": 43 } } }, "arguments": [ { "type": "Literal", "value": "span", "raw": "'span'", "range": [ 1775, 1781 ], "loc": { "start": { "line": 48, "column": 44 }, "end": { "line": 48, "column": 50 } } } ], "range": [ 1764, 1782 ], "loc": { "start": { "line": 48, "column": 33 }, "end": { "line": 48, "column": 51 } } }, "range": [ 1755, 1782 ], "loc": { "start": { "line": 48, "column": 24 }, "end": { "line": 48, "column": 51 } } } ], "kind": "var", "range": [ 1321, 1783 ], "loc": { "start": { "line": 41, "column": 20 }, "end": { "line": 48, "column": 52 } }, "leadingComments": [ { "type": "Line", "value": " word not highlighted yet", "range": [ 1272, 1299 ], "loc": { "start": { "line": 40, "column": 20 }, "end": { "line": 40, "column": 47 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "hiword", "range": [ 1805, 1811 ], "loc": { "start": { "line": 49, "column": 20 }, "end": { "line": 49, "column": 26 } } }, "property": { "type": "Identifier", "name": "className", "range": [ 1812, 1821 ], "loc": { "start": { "line": 49, "column": 27 }, "end": { "line": 49, "column": 36 } } }, "range": [ 1805, 1821 ], "loc": { "start": { "line": 49, "column": 20 }, "end": { "line": 49, "column": 36 } } }, "right": { "type": "Identifier", "name": "cssClass", "range": [ 1824, 1832 ], "loc": { "start": { "line": 49, "column": 39 }, "end": { "line": 49, "column": 47 } } }, "range": [ 1805, 1832 ], "loc": { "start": { "line": 49, "column": 20 }, "end": { "line": 49, "column": 47 } } }, "range": [ 1805, 1833 ], "loc": { "start": { "line": 49, "column": 20 }, "end": { "line": 49, "column": 48 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "hiword", "range": [ 1855, 1861 ], "loc": { "start": { "line": 50, "column": 20 }, "end": { "line": 50, "column": 26 } } }, "property": { "type": "Identifier", "name": "appendChild", "range": [ 1862, 1873 ], "loc": { "start": { "line": 50, "column": 27 }, "end": { "line": 50, "column": 38 } } }, "range": [ 1855, 1873 ], "loc": { "start": { "line": 50, "column": 20 }, "end": { "line": 50, "column": 38 } } }, "arguments": [ { "type": "Identifier", "name": "hiwordtext", "range": [ 1874, 1884 ], "loc": { "start": { "line": 50, "column": 39 }, "end": { "line": 50, "column": 49 } } } ], "range": [ 1855, 1885 ], "loc": { "start": { "line": 50, "column": 20 }, "end": { "line": 50, "column": 50 } } }, "range": [ 1855, 1886 ], "loc": { "start": { "line": 50, "column": 20 }, "end": { "line": 50, "column": 51 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 1908, 1910 ], "loc": { "start": { "line": 51, "column": 20 }, "end": { "line": 51, "column": 22 } } }, "property": { "type": "Identifier", "name": "insertBefore", "range": [ 1911, 1923 ], "loc": { "start": { "line": 51, "column": 23 }, "end": { "line": 51, "column": 35 } } }, "range": [ 1908, 1923 ], "loc": { "start": { "line": 51, "column": 20 }, "end": { "line": 51, "column": 35 } } }, "arguments": [ { "type": "Identifier", "name": "before", "range": [ 1924, 1930 ], "loc": { "start": { "line": 51, "column": 36 }, "end": { "line": 51, "column": 42 } } }, { "type": "Identifier", "name": "node", "range": [ 1931, 1935 ], "loc": { "start": { "line": 51, "column": 43 }, "end": { "line": 51, "column": 47 } } } ], "range": [ 1908, 1936 ], "loc": { "start": { "line": 51, "column": 20 }, "end": { "line": 51, "column": 48 } } }, "range": [ 1908, 1937 ], "loc": { "start": { "line": 51, "column": 20 }, "end": { "line": 51, "column": 49 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 1959, 1961 ], "loc": { "start": { "line": 52, "column": 20 }, "end": { "line": 52, "column": 22 } } }, "property": { "type": "Identifier", "name": "insertBefore", "range": [ 1962, 1974 ], "loc": { "start": { "line": 52, "column": 23 }, "end": { "line": 52, "column": 35 } } }, "range": [ 1959, 1974 ], "loc": { "start": { "line": 52, "column": 20 }, "end": { "line": 52, "column": 35 } } }, "arguments": [ { "type": "Identifier", "name": "hiword", "range": [ 1975, 1981 ], "loc": { "start": { "line": 52, "column": 36 }, "end": { "line": 52, "column": 42 } } }, { "type": "Identifier", "name": "node", "range": [ 1982, 1986 ], "loc": { "start": { "line": 52, "column": 43 }, "end": { "line": 52, "column": 47 } } } ], "range": [ 1959, 1987 ], "loc": { "start": { "line": 52, "column": 20 }, "end": { "line": 52, "column": 48 } } }, "range": [ 1959, 1988 ], "loc": { "start": { "line": 52, "column": 20 }, "end": { "line": 52, "column": 49 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 2010, 2012 ], "loc": { "start": { "line": 53, "column": 20 }, "end": { "line": 53, "column": 22 } } }, "property": { "type": "Identifier", "name": "insertBefore", "range": [ 2013, 2025 ], "loc": { "start": { "line": 53, "column": 23 }, "end": { "line": 53, "column": 35 } } }, "range": [ 2010, 2025 ], "loc": { "start": { "line": 53, "column": 20 }, "end": { "line": 53, "column": 35 } } }, "arguments": [ { "type": "Identifier", "name": "after", "range": [ 2026, 2031 ], "loc": { "start": { "line": 53, "column": 36 }, "end": { "line": 53, "column": 41 } } }, { "type": "Identifier", "name": "node", "range": [ 2032, 2036 ], "loc": { "start": { "line": 53, "column": 42 }, "end": { "line": 53, "column": 46 } } } ], "range": [ 2010, 2037 ], "loc": { "start": { "line": 53, "column": 20 }, "end": { "line": 53, "column": 47 } } }, "range": [ 2010, 2038 ], "loc": { "start": { "line": 53, "column": 20 }, "end": { "line": 53, "column": 48 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 2060, 2062 ], "loc": { "start": { "line": 54, "column": 20 }, "end": { "line": 54, "column": 22 } } }, "property": { "type": "Identifier", "name": "removeChild", "range": [ 2063, 2074 ], "loc": { "start": { "line": 54, "column": 23 }, "end": { "line": 54, "column": 34 } } }, "range": [ 2060, 2074 ], "loc": { "start": { "line": 54, "column": 20 }, "end": { "line": 54, "column": 34 } } }, "arguments": [ { "type": "Identifier", "name": "node", "range": [ 2075, 2079 ], "loc": { "start": { "line": 54, "column": 35 }, "end": { "line": 54, "column": 39 } } } ], "range": [ 2060, 2080 ], "loc": { "start": { "line": 54, "column": 20 }, "end": { "line": 54, "column": 40 } } }, "range": [ 2060, 2081 ], "loc": { "start": { "line": 54, "column": 20 }, "end": { "line": 54, "column": 41 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 2103, 2107 ], "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 24 } } }, "property": { "type": "Identifier", "name": "highlightedNodes", "range": [ 2108, 2124 ], "loc": { "start": { "line": 55, "column": 25 }, "end": { "line": 55, "column": 41 } } }, "range": [ 2103, 2124 ], "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 41 } } }, "property": { "type": "Identifier", "name": "push", "range": [ 2125, 2129 ], "loc": { "start": { "line": 55, "column": 42 }, "end": { "line": 55, "column": 46 } } }, "range": [ 2103, 2129 ], "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 46 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "hiword", "range": [ 2130, 2136 ], "loc": { "start": { "line": 55, "column": 47 }, "end": { "line": 55, "column": 53 } } }, "property": { "type": "Identifier", "name": "firstChild", "range": [ 2137, 2147 ], "loc": { "start": { "line": 55, "column": 54 }, "end": { "line": 55, "column": 64 } } }, "range": [ 2130, 2147 ], "loc": { "start": { "line": 55, "column": 47 }, "end": { "line": 55, "column": 64 } } } ], "range": [ 2103, 2148 ], "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 65 } } }, "range": [ 2103, 2149 ], "loc": { "start": { "line": 55, "column": 20 }, "end": { "line": 55, "column": 66 } } } ], "range": [ 1249, 2168 ], "loc": { "start": { "line": 39, "column": 50 }, "end": { "line": 56, "column": 17 } } }, "alternate": null, "range": [ 1215, 2168 ], "loc": { "start": { "line": 39, "column": 16 }, "end": { "line": 56, "column": 17 } } } ], "range": [ 1153, 2183 ], "loc": { "start": { "line": 37, "column": 54 }, "end": { "line": 57, "column": 13 } } }, "alternate": null, "range": [ 1111, 2183 ], "loc": { "start": { "line": 37, "column": 12 }, "end": { "line": 57, "column": 13 } } } ], "range": [ 990, 2194 ], "loc": { "start": { "line": 34, "column": 31 }, "end": { "line": 58, "column": 9 } } }, "alternate": null, "range": [ 967, 2194 ], "loc": { "start": { "line": 34, "column": 8 }, "end": { "line": 58, "column": 9 } } } ], "range": [ 690, 2201 ], "loc": { "start": { "line": 25, "column": 35 }, "end": { "line": 59, "column": 5 } } }, "generator": false, "expression": false, "range": [ 668, 2201 ], "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 59, "column": 5 } } }, "kind": "method", "computed": false, "range": [ 659, 2201 ], "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 59, "column": 5 } }, "leadingComments": [ { "type": "Block", "value": "*\r\n * highlight occurences of searched term in passed node\r\n * @param {Node} node\r\n * @param {String} word Searched term\r\n * @param {String} cssClass Css class name\r\n ", "range": [ 455, 653 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 24, "column": 7 } } } ], "trailingComments": [ { "type": "Block", "value": "*\r\n * Removes highlight to nodes matching passed string\r\n * @param {String} word\r\n * @param {String} cssClass Css class to remove\r\n ", "range": [ 2209, 2363 ], "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 65, "column": 7 } } } ], "static": false }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "unhighlight", "range": [ 2369, 2380 ], "loc": { "start": { "line": 66, "column": 4 }, "end": { "line": 66, "column": 15 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "word", "range": [ 2381, 2385 ], "loc": { "start": { "line": 66, "column": 16 }, "end": { "line": 66, "column": 20 } } }, { "type": "Identifier", "name": "cssClass", "range": [ 2387, 2395 ], "loc": { "start": { "line": 66, "column": 22 }, "end": { "line": 66, "column": 30 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "arrRemove", "range": [ 2411, 2420 ], "loc": { "start": { "line": 67, "column": 12 }, "end": { "line": 67, "column": 21 } } }, "init": { "type": "ArrayExpression", "elements": [], "range": [ 2423, 2425 ], "loc": { "start": { "line": 67, "column": 24 }, "end": { "line": 67, "column": 26 } } }, "range": [ 2411, 2425 ], "loc": { "start": { "line": 67, "column": 12 }, "end": { "line": 67, "column": 26 } } } ], "kind": "var", "range": [ 2407, 2426 ], "loc": { "start": { "line": 67, "column": 8 }, "end": { "line": 67, "column": 27 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "highlightedNodes", "range": [ 2440, 2456 ], "loc": { "start": { "line": 68, "column": 12 }, "end": { "line": 68, "column": 28 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 2459, 2463 ], "loc": { "start": { "line": 68, "column": 31 }, "end": { "line": 68, "column": 35 } } }, "property": { "type": "Identifier", "name": "highlightedNodes", "range": [ 2464, 2480 ], "loc": { "start": { "line": 68, "column": 36 }, "end": { "line": 68, "column": 52 } } }, "range": [ 2459, 2480 ], "loc": { "start": { "line": 68, "column": 31 }, "end": { "line": 68, "column": 52 } } }, "range": [ 2440, 2480 ], "loc": { "start": { "line": 68, "column": 12 }, "end": { "line": 68, "column": 52 } } } ], "kind": "var", "range": [ 2436, 2481 ], "loc": { "start": { "line": 68, "column": 8 }, "end": { "line": 68, "column": 53 } } }, { "type": "ForStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "i", "range": [ 2499, 2500 ], "loc": { "start": { "line": 69, "column": 16 }, "end": { "line": 69, "column": 17 } } }, "init": { "type": "Literal", "value": 0, "raw": "0", "range": [ 2501, 2502 ], "loc": { "start": { "line": 69, "column": 18 }, "end": { "line": 69, "column": 19 } } }, "range": [ 2499, 2502 ], "loc": { "start": { "line": 69, "column": 16 }, "end": { "line": 69, "column": 19 } } } ], "kind": "var", "range": [ 2495, 2502 ], "loc": { "start": { "line": 69, "column": 12 }, "end": { "line": 69, "column": 19 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "i", "range": [ 2504, 2505 ], "loc": { "start": { "line": 69, "column": 21 }, "end": { "line": 69, "column": 22 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "highlightedNodes", "range": [ 2506, 2522 ], "loc": { "start": { "line": 69, "column": 23 }, "end": { "line": 69, "column": 39 } } }, "property": { "type": "Identifier", "name": "length", "range": [ 2523, 2529 ], "loc": { "start": { "line": 69, "column": 40 }, "end": { "line": 69, "column": 46 } } }, "range": [ 2506, 2529 ], "loc": { "start": { "line": 69, "column": 23 }, "end": { "line": 69, "column": 46 } } }, "range": [ 2504, 2529 ], "loc": { "start": { "line": 69, "column": 21 }, "end": { "line": 69, "column": 46 } } }, "update": { "type": "UpdateExpression", "operator": "++", "argument": { "type": "Identifier", "name": "i", "range": [ 2531, 2532 ], "loc": { "start": { "line": 69, "column": 48 }, "end": { "line": 69, "column": 49 } } }, "prefix": false, "range": [ 2531, 2534 ], "loc": { "start": { "line": 69, "column": 48 }, "end": { "line": 69, "column": 51 } } }, "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "n", "range": [ 2554, 2555 ], "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "column": 17 } } }, "init": { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "highlightedNodes", "range": [ 2558, 2574 ], "loc": { "start": { "line": 70, "column": 20 }, "end": { "line": 70, "column": 36 } } }, "property": { "type": "Identifier", "name": "i", "range": [ 2575, 2576 ], "loc": { "start": { "line": 70, "column": 37 }, "end": { "line": 70, "column": 38 } } }, "range": [ 2558, 2577 ], "loc": { "start": { "line": 70, "column": 20 }, "end": { "line": 70, "column": 39 } } }, "range": [ 2554, 2577 ], "loc": { "start": { "line": 70, "column": 16 }, "end": { "line": 70, "column": 39 } } } ], "kind": "var", "range": [ 2550, 2578 ], "loc": { "start": { "line": 70, "column": 12 }, "end": { "line": 70, "column": 40 } } }, { "type": "IfStatement", "test": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Identifier", "name": "n", "range": [ 2596, 2597 ], "loc": { "start": { "line": 71, "column": 16 }, "end": { "line": 71, "column": 17 } } }, "prefix": true, "range": [ 2595, 2597 ], "loc": { "start": { "line": 71, "column": 15 }, "end": { "line": 71, "column": 17 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ContinueStatement", "label": null, "range": [ 2617, 2626 ], "loc": { "start": { "line": 72, "column": 16 }, "end": { "line": 72, "column": 25 } } } ], "range": [ 2598, 2641 ], "loc": { "start": { "line": 71, "column": 18 }, "end": { "line": 73, "column": 13 } } }, "alternate": null, "range": [ 2592, 2641 ], "loc": { "start": { "line": 71, "column": 12 }, "end": { "line": 73, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "tempNodeVal", "range": [ 2659, 2670 ], "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 27 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Str", "range": [ 2673, 2676 ], "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 33 } } }, "property": { "type": "Identifier", "name": "lower", "range": [ 2677, 2682 ], "loc": { "start": { "line": 74, "column": 34 }, "end": { "line": 74, "column": 39 } } }, "range": [ 2673, 2682 ], "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 39 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "n", "range": [ 2683, 2684 ], "loc": { "start": { "line": 74, "column": 40 }, "end": { "line": 74, "column": 41 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 2685, 2694 ], "loc": { "start": { "line": 74, "column": 42 }, "end": { "line": 74, "column": 51 } } }, "range": [ 2683, 2694 ], "loc": { "start": { "line": 74, "column": 40 }, "end": { "line": 74, "column": 51 } } } ], "range": [ 2673, 2695 ], "loc": { "start": { "line": 74, "column": 30 }, "end": { "line": 74, "column": 52 } } }, "range": [ 2659, 2695 ], "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 52 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "tempWordVal", "range": [ 2714, 2725 ], "loc": { "start": { "line": 75, "column": 16 }, "end": { "line": 75, "column": 27 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Str", "range": [ 2728, 2731 ], "loc": { "start": { "line": 75, "column": 30 }, "end": { "line": 75, "column": 33 } } }, "property": { "type": "Identifier", "name": "lower", "range": [ 2732, 2737 ], "loc": { "start": { "line": 75, "column": 34 }, "end": { "line": 75, "column": 39 } } }, "range": [ 2728, 2737 ], "loc": { "start": { "line": 75, "column": 30 }, "end": { "line": 75, "column": 39 } } }, "arguments": [ { "type": "Identifier", "name": "word", "range": [ 2738, 2742 ], "loc": { "start": { "line": 75, "column": 40 }, "end": { "line": 75, "column": 44 } } } ], "range": [ 2728, 2743 ], "loc": { "start": { "line": 75, "column": 30 }, "end": { "line": 75, "column": 45 } } }, "range": [ 2714, 2743 ], "loc": { "start": { "line": 75, "column": 16 }, "end": { "line": 75, "column": 45 } } } ], "kind": "var", "range": [ 2655, 2744 ], "loc": { "start": { "line": 74, "column": 12 }, "end": { "line": 75, "column": 46 } } }, { "type": "IfStatement", "test": { "type": "BinaryExpression", "operator": "!==", "left": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "tempNodeVal", "range": [ 2761, 2772 ], "loc": { "start": { "line": 76, "column": 15 }, "end": { "line": 76, "column": 26 } } }, "property": { "type": "Identifier", "name": "indexOf", "range": [ 2773, 2780 ], "loc": { "start": { "line": 76, "column": 27 }, "end": { "line": 76, "column": 34 } } }, "range": [ 2761, 2780 ], "loc": { "start": { "line": 76, "column": 15 }, "end": { "line": 76, "column": 34 } } }, "arguments": [ { "type": "Identifier", "name": "tempWordVal", "range": [ 2781, 2792 ], "loc": { "start": { "line": 76, "column": 35 }, "end": { "line": 76, "column": 46 } } } ], "range": [ 2761, 2793 ], "loc": { "start": { "line": 76, "column": 15 }, "end": { "line": 76, "column": 47 } } }, "right": { "type": "UnaryExpression", "operator": "-", "argument": { "type": "Literal", "value": 1, "raw": "1", "range": [ 2799, 2800 ], "loc": { "start": { "line": 76, "column": 53 }, "end": { "line": 76, "column": 54 } } }, "prefix": true, "range": [ 2798, 2800 ], "loc": { "start": { "line": 76, "column": 52 }, "end": { "line": 76, "column": 54 } } }, "range": [ 2761, 2800 ], "loc": { "start": { "line": 76, "column": 15 }, "end": { "line": 76, "column": 54 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "pn", "range": [ 2824, 2826 ], "loc": { "start": { "line": 77, "column": 20 }, "end": { "line": 77, "column": 22 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "n", "range": [ 2829, 2830 ], "loc": { "start": { "line": 77, "column": 25 }, "end": { "line": 77, "column": 26 } } }, "property": { "type": "Identifier", "name": "parentNode", "range": [ 2831, 2841 ], "loc": { "start": { "line": 77, "column": 27 }, "end": { "line": 77, "column": 37 } } }, "range": [ 2829, 2841 ], "loc": { "start": { "line": 77, "column": 25 }, "end": { "line": 77, "column": 37 } } }, "range": [ 2824, 2841 ], "loc": { "start": { "line": 77, "column": 20 }, "end": { "line": 77, "column": 37 } } } ], "kind": "var", "range": [ 2820, 2842 ], "loc": { "start": { "line": 77, "column": 16 }, "end": { "line": 77, "column": 38 } } }, { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "&&", "left": { "type": "Identifier", "name": "pn", "range": [ 2863, 2865 ], "loc": { "start": { "line": 78, "column": 19 }, "end": { "line": 78, "column": 21 } } }, "right": { "type": "BinaryExpression", "operator": "===", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 2869, 2871 ], "loc": { "start": { "line": 78, "column": 25 }, "end": { "line": 78, "column": 27 } } }, "property": { "type": "Identifier", "name": "className", "range": [ 2872, 2881 ], "loc": { "start": { "line": 78, "column": 28 }, "end": { "line": 78, "column": 37 } } }, "range": [ 2869, 2881 ], "loc": { "start": { "line": 78, "column": 25 }, "end": { "line": 78, "column": 37 } } }, "right": { "type": "Identifier", "name": "cssClass", "range": [ 2886, 2894 ], "loc": { "start": { "line": 78, "column": 42 }, "end": { "line": 78, "column": 50 } } }, "range": [ 2869, 2894 ], "loc": { "start": { "line": 78, "column": 25 }, "end": { "line": 78, "column": 50 } } }, "range": [ 2863, 2894 ], "loc": { "start": { "line": 78, "column": 19 }, "end": { "line": 78, "column": 50 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "prevSib", "range": [ 2922, 2929 ], "loc": { "start": { "line": 79, "column": 24 }, "end": { "line": 79, "column": 31 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 2932, 2934 ], "loc": { "start": { "line": 79, "column": 34 }, "end": { "line": 79, "column": 36 } } }, "property": { "type": "Identifier", "name": "previousSibling", "range": [ 2935, 2950 ], "loc": { "start": { "line": 79, "column": 37 }, "end": { "line": 79, "column": 52 } } }, "range": [ 2932, 2950 ], "loc": { "start": { "line": 79, "column": 34 }, "end": { "line": 79, "column": 52 } } }, "range": [ 2922, 2950 ], "loc": { "start": { "line": 79, "column": 24 }, "end": { "line": 79, "column": 52 } } }, { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "nextSib", "range": [ 2977, 2984 ], "loc": { "start": { "line": 80, "column": 24 }, "end": { "line": 80, "column": 31 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "pn", "range": [ 2987, 2989 ], "loc": { "start": { "line": 80, "column": 34 }, "end": { "line": 80, "column": 36 } } }, "property": { "type": "Identifier", "name": "nextSibling", "range": [ 2990, 3001 ], "loc": { "start": { "line": 80, "column": 37 }, "end": { "line": 80, "column": 48 } } }, "range": [ 2987, 3001 ], "loc": { "start": { "line": 80, "column": 34 }, "end": { "line": 80, "column": 48 } } }, "range": [ 2977, 3001 ], "loc": { "start": { "line": 80, "column": 24 }, "end": { "line": 80, "column": 48 } } } ], "kind": "var", "range": [ 2918, 3002 ], "loc": { "start": { "line": 79, "column": 20 }, "end": { "line": 80, "column": 49 } } }, { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "||", "left": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Identifier", "name": "prevSib", "range": [ 3028, 3035 ], "loc": { "start": { "line": 81, "column": 24 }, "end": { "line": 81, "column": 31 } } }, "prefix": true, "range": [ 3027, 3035 ], "loc": { "start": { "line": 81, "column": 23 }, "end": { "line": 81, "column": 31 } } }, "right": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "Identifier", "name": "nextSib", "range": [ 3040, 3047 ], "loc": { "start": { "line": 81, "column": 36 }, "end": { "line": 81, "column": 43 } } }, "prefix": true, "range": [ 3039, 3047 ], "loc": { "start": { "line": 81, "column": 35 }, "end": { "line": 81, "column": 43 } } }, "range": [ 3027, 3047 ], "loc": { "start": { "line": 81, "column": 23 }, "end": { "line": 81, "column": 43 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ContinueStatement", "label": null, "range": [ 3050, 3059 ], "loc": { "start": { "line": 81, "column": 46 }, "end": { "line": 81, "column": 55 } } } ], "range": [ 3048, 3061 ], "loc": { "start": { "line": 81, "column": 44 }, "end": { "line": 81, "column": 57 } } }, "alternate": null, "range": [ 3024, 3061 ], "loc": { "start": { "line": 81, "column": 20 }, "end": { "line": 81, "column": 57 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "nextSib", "range": [ 3083, 3090 ], "loc": { "start": { "line": 82, "column": 20 }, "end": { "line": 82, "column": 27 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 3091, 3100 ], "loc": { "start": { "line": 82, "column": 28 }, "end": { "line": 82, "column": 37 } } }, "range": [ 3083, 3100 ], "loc": { "start": { "line": 82, "column": 20 }, "end": { "line": 82, "column": 37 } } }, "right": { "type": "BinaryExpression", "operator": "+", "left": { "type": "BinaryExpression", "operator": "+", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "prevSib", "range": [ 3103, 3110 ], "loc": { "start": { "line": 82, "column": 40 }, "end": { "line": 82, "column": 47 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 3111, 3120 ], "loc": { "start": { "line": 82, "column": 48 }, "end": { "line": 82, "column": 57 } } }, "range": [ 3103, 3120 ], "loc": { "start": { "line": 82, "column": 40 }, "end": { "line": 82, "column": 57 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "n", "range": [ 3123, 3124 ], "loc": { "start": { "line": 82, "column": 60 }, "end": { "line": 82, "column": 61 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 3125, 3134 ], "loc": { "start": { "line": 82, "column": 62 }, "end": { "line": 82, "column": 71 } } }, "range": [ 3123, 3134 ], "loc": { "start": { "line": 82, "column": 60 }, "end": { "line": 82, "column": 71 } } }, "range": [ 3103, 3134 ], "loc": { "start": { "line": 82, "column": 40 }, "end": { "line": 82, "column": 71 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "nextSib", "range": [ 3162, 3169 ], "loc": { "start": { "line": 83, "column": 24 }, "end": { "line": 83, "column": 31 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 3170, 3179 ], "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 41 } } }, "range": [ 3162, 3179 ], "loc": { "start": { "line": 83, "column": 24 }, "end": { "line": 83, "column": 41 } } }, "range": [ 3103, 3179 ], "loc": { "start": { "line": 82, "column": 40 }, "end": { "line": 83, "column": 41 } } }, "range": [ 3083, 3179 ], "loc": { "start": { "line": 82, "column": 20 }, "end": { "line": 83, "column": 41 } } }, "range": [ 3083, 3180 ], "loc": { "start": { "line": 82, "column": 20 }, "end": { "line": 83, "column": 42 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "prevSib", "range": [ 3202, 3209 ], "loc": { "start": { "line": 84, "column": 20 }, "end": { "line": 84, "column": 27 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 3210, 3219 ], "loc": { "start": { "line": 84, "column": 28 }, "end": { "line": 84, "column": 37 } } }, "range": [ 3202, 3219 ], "loc": { "start": { "line": 84, "column": 20 }, "end": { "line": 84, "column": 37 } } }, "right": { "type": "Literal", "value": "", "raw": "''", "range": [ 3222, 3224 ], "loc": { "start": { "line": 84, "column": 40 }, "end": { "line": 84, "column": 42 } } }, "range": [ 3202, 3224 ], "loc": { "start": { "line": 84, "column": 20 }, "end": { "line": 84, "column": 42 } } }, "range": [ 3202, 3225 ], "loc": { "start": { "line": 84, "column": 20 }, "end": { "line": 84, "column": 43 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "n", "range": [ 3247, 3248 ], "loc": { "start": { "line": 85, "column": 20 }, "end": { "line": 85, "column": 21 } } }, "property": { "type": "Identifier", "name": "nodeValue", "range": [ 3249, 3258 ], "loc": { "start": { "line": 85, "column": 22 }, "end": { "line": 85, "column": 31 } } }, "range": [ 3247, 3258 ], "loc": { "start": { "line": 85, "column": 20 }, "end": { "line": 85, "column": 31 } } }, "right": { "type": "Literal", "value": "", "raw": "''", "range": [ 3261, 3263 ], "loc": { "start": { "line": 85, "column": 34 }, "end": { "line": 85, "column": 36 } } }, "range": [ 3247, 3263 ], "loc": { "start": { "line": 85, "column": 20 }, "end": { "line": 85, "column": 36 } } }, "range": [ 3247, 3264 ], "loc": { "start": { "line": 85, "column": 20 }, "end": { "line": 85, "column": 37 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "arrRemove", "range": [ 3286, 3295 ], "loc": { "start": { "line": 86, "column": 20 }, "end": { "line": 86, "column": 29 } } }, "property": { "type": "Identifier", "name": "push", "range": [ 3296, 3300 ], "loc": { "start": { "line": 86, "column": 30 }, "end": { "line": 86, "column": 34 } } }, "range": [ 3286, 3300 ], "loc": { "start": { "line": 86, "column": 20 }, "end": { "line": 86, "column": 34 } } }, "arguments": [ { "type": "Identifier", "name": "i", "range": [ 3301, 3302 ], "loc": { "start": { "line": 86, "column": 35 }, "end": { "line": 86, "column": 36 } } } ], "range": [ 3286, 3303 ], "loc": { "start": { "line": 86, "column": 20 }, "end": { "line": 86, "column": 37 } } }, "range": [ 3286, 3304 ], "loc": { "start": { "line": 86, "column": 20 }, "end": { "line": 86, "column": 38 } } } ], "range": [ 2895, 3323 ], "loc": { "start": { "line": 78, "column": 51 }, "end": { "line": 87, "column": 17 } } }, "alternate": null, "range": [ 2860, 3323 ], "loc": { "start": { "line": 78, "column": 16 }, "end": { "line": 87, "column": 17 } } } ], "range": [ 2801, 3338 ], "loc": { "start": { "line": 76, "column": 55 }, "end": { "line": 88, "column": 13 } } }, "alternate": null, "range": [ 2758, 3338 ], "loc": { "start": { "line": 76, "column": 12 }, "end": { "line": 88, "column": 13 } } } ], "range": [ 2535, 3349 ], "loc": { "start": { "line": 69, "column": 52 }, "end": { "line": 89, "column": 9 } } }, "range": [ 2491, 3349 ], "loc": { "start": { "line": 69, "column": 8 }, "end": { "line": 89, "column": 9 } } }, { "type": "ForStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "k", "range": [ 3367, 3368 ], "loc": { "start": { "line": 90, "column": 16 }, "end": { "line": 90, "column": 17 } } }, "init": { "type": "Literal", "value": 0, "raw": "0", "range": [ 3369, 3370 ], "loc": { "start": { "line": 90, "column": 18 }, "end": { "line": 90, "column": 19 } } }, "range": [ 3367, 3370 ], "loc": { "start": { "line": 90, "column": 16 }, "end": { "line": 90, "column": 19 } } } ], "kind": "var", "range": [ 3363, 3370 ], "loc": { "start": { "line": 90, "column": 12 }, "end": { "line": 90, "column": 19 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "k", "range": [ 3372, 3373 ], "loc": { "start": { "line": 90, "column": 21 }, "end": { "line": 90, "column": 22 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "arrRemove", "range": [ 3374, 3383 ], "loc": { "start": { "line": 90, "column": 23 }, "end": { "line": 90, "column": 32 } } }, "property": { "type": "Identifier", "name": "length", "range": [ 3384, 3390 ], "loc": { "start": { "line": 90, "column": 33 }, "end": { "line": 90, "column": 39 } } }, "range": [ 3374, 3390 ], "loc": { "start": { "line": 90, "column": 23 }, "end": { "line": 90, "column": 39 } } }, "range": [ 3372, 3390 ], "loc": { "start": { "line": 90, "column": 21 }, "end": { "line": 90, "column": 39 } } }, "update": { "type": "UpdateExpression", "operator": "++", "argument": { "type": "Identifier", "name": "k", "range": [ 3392, 3393 ], "loc": { "start": { "line": 90, "column": 41 }, "end": { "line": 90, "column": 42 } } }, "prefix": false, "range": [ 3392, 3395 ], "loc": { "start": { "line": 90, "column": 41 }, "end": { "line": 90, "column": 44 } } }, "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "highlightedNodes", "range": [ 3411, 3427 ], "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 28 } } }, "property": { "type": "Identifier", "name": "splice", "range": [ 3428, 3434 ], "loc": { "start": { "line": 91, "column": 29 }, "end": { "line": 91, "column": 35 } } }, "range": [ 3411, 3434 ], "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 35 } } }, "arguments": [ { "type": "MemberExpression", "computed": true, "object": { "type": "Identifier", "name": "arrRemove", "range": [ 3435, 3444 ], "loc": { "start": { "line": 91, "column": 36 }, "end": { "line": 91, "column": 45 } } }, "property": { "type": "Identifier", "name": "k", "range": [ 3445, 3446 ], "loc": { "start": { "line": 91, "column": 46 }, "end": { "line": 91, "column": 47 } } }, "range": [ 3435, 3447 ], "loc": { "start": { "line": 91, "column": 36 }, "end": { "line": 91, "column": 48 } } }, { "type": "Literal", "value": 1, "raw": "1", "range": [ 3449, 3450 ], "loc": { "start": { "line": 91, "column": 50 }, "end": { "line": 91, "column": 51 } } } ], "range": [ 3411, 3451 ], "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 52 } } }, "range": [ 3411, 3452 ], "loc": { "start": { "line": 91, "column": 12 }, "end": { "line": 91, "column": 53 } } } ], "range": [ 3396, 3463 ], "loc": { "start": { "line": 90, "column": 45 }, "end": { "line": 92, "column": 9 } } }, "range": [ 3359, 3463 ], "loc": { "start": { "line": 90, "column": 8 }, "end": { "line": 92, "column": 9 } } } ], "range": [ 2396, 3470 ], "loc": { "start": { "line": 66, "column": 31 }, "end": { "line": 93, "column": 5 } } }, "generator": false, "expression": false, "range": [ 2380, 3470 ], "loc": { "start": { "line": 66, "column": 15 }, "end": { "line": 93, "column": 5 } } }, "kind": "method", "computed": false, "range": [ 2369, 3470 ], "loc": { "start": { "line": 66, "column": 4 }, "end": { "line": 93, "column": 5 } }, "leadingComments": [ { "type": "Block", "value": "*\r\n * Removes highlight to nodes matching passed string\r\n * @param {String} word\r\n * @param {String} cssClass Css class to remove\r\n ", "range": [ 2209, 2363 ], "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 65, "column": 7 } } } ], "trailingComments": [ { "type": "Block", "value": "*\r\n * Clear all occurrences of highlighted nodes\r\n ", "range": [ 3478, 3541 ], "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 97, "column": 7 } } } ], "static": false }, { "type": "MethodDefinition", "key": { "type": "Identifier", "name": "unhighlightAll", "range": [ 3547, 3561 ], "loc": { "start": { "line": 98, "column": 4 }, "end": { "line": 98, "column": 18 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "IfStatement", "test": { "type": "LogicalExpression", "operator": "||", "left": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 3578, 3582 ], "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 16 } } }, "property": { "type": "Identifier", "name": "tf", "range": [ 3583, 3585 ], "loc": { "start": { "line": 99, "column": 17 }, "end": { "line": 99, "column": 19 } } }, "range": [ 3578, 3585 ], "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 19 } } }, "property": { "type": "Identifier", "name": "highlightKeywords", "range": [ 3586, 3603 ], "loc": { "start": { "line": 99, "column": 20 }, "end": { "line": 99, "column": 37 } } }, "range": [ 3578, 3603 ], "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 37 } } }, "prefix": true, "range": [ 3577, 3603 ], "loc": { "start": { "line": 99, "column": 11 }, "end": { "line": 99, "column": 37 } } }, "right": { "type": "UnaryExpression", "operator": "!", "argument": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 3608, 3612 ], "loc": { "start": { "line": 99, "column": 42 }, "end": { "line": 99, "column": 46 } } }, "property": { "type": "Identifier", "name": "tf", "range": [ 3613, 3615 ], "loc": { "start": { "line": 99, "column": 47 }, "end": { "line": 99, "column": 49 } } }, "range": [ 3608, 3615 ], "loc": { "start": { "line": 99, "column": 42 }, "end": { "line": 99, "column": 49 } } }, "property": { "type": "Identifier", "name": "searchArgs", "range": [ 3616, 3626 ], "loc": { "start": { "line": 99, "column": 50 }, "end": { "line": 99, "column": 60 } } }, "range": [ 3608, 3626 ], "loc": { "start": { "line": 99, "column": 42 }, "end": { "line": 99, "column": 60 } } }, "prefix": true, "range": [ 3607, 3626 ], "loc": { "start": { "line": 99, "column": 41 }, "end": { "line": 99, "column": 60 } } }, "range": [ 3577, 3626 ], "loc": { "start": { "line": 99, "column": 11 }, "end": { "line": 99, "column": 60 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ReturnStatement", "argument": null, "range": [ 3642, 3649 ], "loc": { "start": { "line": 100, "column": 12 }, "end": { "line": 100, "column": 19 } } } ], "range": [ 3627, 3660 ], "loc": { "start": { "line": 99, "column": 61 }, "end": { "line": 101, "column": 9 } } }, "alternate": null, "range": [ 3574, 3660 ], "loc": { "start": { "line": 99, "column": 8 }, "end": { "line": 101, "column": 9 } } }, { "type": "ForStatement", "init": { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "y", "range": [ 3678, 3679 ], "loc": { "start": { "line": 102, "column": 16 }, "end": { "line": 102, "column": 17 } } }, "init": { "type": "Literal", "value": 0, "raw": "0", "range": [ 3680, 3681 ], "loc": { "start": { "line": 102, "column": 18 }, "end": { "line": 102, "column": 19 } } }, "range": [ 3678, 3681 ], "loc": { "start": { "line": 102, "column": 16 }, "end": { "line": 102, "column": 19 } } } ], "kind": "var", "range": [ 3674, 3681 ], "loc": { "start": { "line": 102, "column": 12 }, "end": { "line": 102, "column": 19 } } }, "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "y", "range": [ 3683, 3684 ], "loc": { "start": { "line": 102, "column": 21 }, "end": { "line": 102, "column": 22 } } }, "right": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 3685, 3689 ], "loc": { "start": { "line": 102, "column": 23 }, "end": { "line": 102, "column": 27 } } }, "property": { "type": "Identifier", "name": "tf", "range": [ 3690, 3692 ], "loc": { "start": { "line": 102, "column": 28 }, "end": { "line": 102, "column": 30 } } }, "range": [ 3685, 3692 ], "loc": { "start": { "line": 102, "column": 23 }, "end": { "line": 102, "column": 30 } } }, "property": { "type": "Identifier", "name": "searchArgs", "range": [ 3693, 3703 ], "loc": { "start": { "line": 102, "column": 31 }, "end": { "line": 102, "column": 41 } } }, "range": [ 3685, 3703 ], "loc": { "start": { "line": 102, "column": 23 }, "end": { "line": 102, "column": 41 } } }, "property": { "type": "Identifier", "name": "length", "range": [ 3704, 3710 ], "loc": { "start": { "line": 102, "column": 42 }, "end": { "line": 102, "column": 48 } } }, "range": [ 3685, 3710 ], "loc": { "start": { "line": 102, "column": 23 }, "end": { "line": 102, "column": 48 } } }, "range": [ 3683, 3710 ], "loc": { "start": { "line": 102, "column": 21 }, "end": { "line": 102, "column": 48 } } }, "update": { "type": "UpdateExpression", "operator": "++", "argument": { "type": "Identifier", "name": "y", "range": [ 3712, 3713 ], "loc": { "start": { "line": 102, "column": 50 }, "end": { "line": 102, "column": 51 } } }, "prefix": false, "range": [ 3712, 3715 ], "loc": { "start": { "line": 102, "column": 50 }, "end": { "line": 102, "column": 53 } } }, "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 3731, 3735 ], "loc": { "start": { "line": 103, "column": 12 }, "end": { "line": 103, "column": 16 } } }, "property": { "type": "Identifier", "name": "unhighlight", "range": [ 3736, 3747 ], "loc": { "start": { "line": 103, "column": 17 }, "end": { "line": 103, "column": 28 } } }, "range": [ 3731, 3747 ], "loc": { "start": { "line": 103, "column": 12 }, "end": { "line": 103, "column": 28 } } }, "arguments": [ { "type": "MemberExpression", "computed": true, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 3766, 3770 ], "loc": { "start": { "line": 104, "column": 16 }, "end": { "line": 104, "column": 20 } } }, "property": { "type": "Identifier", "name": "tf", "range": [ 3771, 3773 ], "loc": { "start": { "line": 104, "column": 21 }, "end": { "line": 104, "column": 23 } } }, "range": [ 3766, 3773 ], "loc": { "start": { "line": 104, "column": 16 }, "end": { "line": 104, "column": 23 } } }, "property": { "type": "Identifier", "name": "searchArgs", "range": [ 3774, 3784 ], "loc": { "start": { "line": 104, "column": 24 }, "end": { "line": 104, "column": 34 } } }, "range": [ 3766, 3784 ], "loc": { "start": { "line": 104, "column": 16 }, "end": { "line": 104, "column": 34 } } }, "property": { "type": "Identifier", "name": "y", "range": [ 3785, 3786 ], "loc": { "start": { "line": 104, "column": 35 }, "end": { "line": 104, "column": 36 } } }, "range": [ 3766, 3787 ], "loc": { "start": { "line": 104, "column": 16 }, "end": { "line": 104, "column": 37 } } }, { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 3789, 3793 ], "loc": { "start": { "line": 104, "column": 39 }, "end": { "line": 104, "column": 43 } } }, "property": { "type": "Identifier", "name": "highlightCssClass", "range": [ 3794, 3811 ], "loc": { "start": { "line": 104, "column": 44 }, "end": { "line": 104, "column": 61 } } }, "range": [ 3789, 3811 ], "loc": { "start": { "line": 104, "column": 39 }, "end": { "line": 104, "column": 61 } } } ], "range": [ 3731, 3812 ], "loc": { "start": { "line": 103, "column": 12 }, "end": { "line": 104, "column": 62 } } }, "range": [ 3731, 3813 ], "loc": { "start": { "line": 103, "column": 12 }, "end": { "line": 104, "column": 63 } } } ], "range": [ 3716, 3824 ], "loc": { "start": { "line": 102, "column": 54 }, "end": { "line": 105, "column": 9 } } }, "range": [ 3670, 3824 ], "loc": { "start": { "line": 102, "column": 8 }, "end": { "line": 105, "column": 9 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "ThisExpression", "range": [ 3834, 3838 ], "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 12 } } }, "property": { "type": "Identifier", "name": "highlightedNodes", "range": [ 3839, 3855 ], "loc": { "start": { "line": 106, "column": 13 }, "end": { "line": 106, "column": 29 } } }, "range": [ 3834, 3855 ], "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 29 } } }, "right": { "type": "ArrayExpression", "elements": [], "range": [ 3858, 3860 ], "loc": { "start": { "line": 106, "column": 32 }, "end": { "line": 106, "column": 34 } } }, "range": [ 3834, 3860 ], "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 34 } } }, "range": [ 3834, 3861 ], "loc": { "start": { "line": 106, "column": 8 }, "end": { "line": 106, "column": 35 } } } ], "range": [ 3563, 3868 ], "loc": { "start": { "line": 98, "column": 20 }, "end": { "line": 107, "column": 5 } } }, "generator": false, "expression": false, "range": [ 3561, 3868 ], "loc": { "start": { "line": 98, "column": 18 }, "end": { "line": 107, "column": 5 } } }, "kind": "method", "computed": false, "range": [ 3547, 3868 ], "loc": { "start": { "line": 98, "column": 4 }, "end": { "line": 107, "column": 5 } }, "leadingComments": [ { "type": "Block", "value": "*\r\n * Clear all occurrences of highlighted nodes\r\n ", "range": [ 3478, 3541 ], "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 97, "column": 7 } } } ], "static": false } ], "range": [ 88, 3871 ], "loc": { "start": { "line": 4, "column": 29 }, "end": { "line": 108, "column": 1 } } }, "range": [ 66, 3871 ], "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 108, "column": 1 } }, "leadingComments": [], "trailingComments": [] }, "specifiers": [], "source": null, "range": [ 59, 3871 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 108, "column": 1 } } } ], "sourceType": "module", "range": [ 0, 3871 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 108, "column": 1 } }, "comments": [ { "type": "Block", "value": "*\r\n * HighlightKeyword, highlight matched keyword\r\n * @param {Object} tf TableFilter instance\r\n ", "range": [ 97, 209 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 9, "column": 7 } } }, { "type": "Line", "value": "defines css class for highlighting", "range": [ 272, 308 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 44 } } }, { "type": "Block", "value": "*\r\n * highlight occurences of searched term in passed node\r\n * @param {Node} node\r\n * @param {String} word Searched term\r\n * @param {String} cssClass Css class name\r\n ", "range": [ 455, 653 ], "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 24, "column": 7 } } }, { "type": "Line", "value": " Iterate into this nodes childNodes", "range": [ 701, 738 ], "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 45 } } }, { "type": "Line", "value": " word not highlighted yet", "range": [ 1272, 1299 ], "loc": { "start": { "line": 40, "column": 20 }, "end": { "line": 40, "column": 47 } } }, { "type": "Line", "value": " Create a load of replacement nodes", "range": [ 1435, 1472 ], "loc": { "start": { "line": 43, "column": 24 }, "end": { "line": 43, "column": 61 } } }, { "type": "Block", "value": "*\r\n * Removes highlight to nodes matching passed string\r\n * @param {String} word\r\n * @param {String} cssClass Css class to remove\r\n ", "range": [ 2209, 2363 ], "loc": { "start": { "line": 61, "column": 4 }, "end": { "line": 65, "column": 7 } } }, { "type": "Block", "value": "*\r\n * Clear all occurrences of highlighted nodes\r\n ", "range": [ 3478, 3541 ], "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 97, "column": 7 } } } ] }