mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-03 14:32:21 +02:00
4481fbe361
branch: master
SHA: c7d6de72f7
range SHA: 81f31a3106fb...c7d6de72f785
build id: 375208741
build number: 1103
10482 lines
261 KiB
JSON
10482 lines
261 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 2881,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 0
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 2881,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "module",
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 0,
|
|
"end": 42,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 42
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 8,
|
|
"end": 24,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 24
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 8,
|
|
"end": 13,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 13
|
|
},
|
|
"identifierName": "parse"
|
|
},
|
|
"name": "parse"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 17,
|
|
"end": 24,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 24
|
|
},
|
|
"identifierName": "parseNb"
|
|
},
|
|
"name": "parseNb"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 31,
|
|
"end": 41,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 41
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./number",
|
|
"raw": "'./number'"
|
|
},
|
|
"value": "./number"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 43,
|
|
"end": 88,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 45
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 51,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 25
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 51,
|
|
"end": 55,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 12
|
|
},
|
|
"identifierName": "Date"
|
|
},
|
|
"name": "Date"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 59,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 25
|
|
},
|
|
"identifierName": "SugarDate"
|
|
},
|
|
"name": "SugarDate"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 75,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 44
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "sugar-date",
|
|
"raw": "'sugar-date'"
|
|
},
|
|
"value": "sugar-date"
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Sorting utilities ",
|
|
"start": 90,
|
|
"end": 114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Case insensitive compare function for passed strings\n * @param {String} First string\n * @param {String} Second string\n * @return {Number} -1 if first string lower than second one\n * 0 if first string same order as second one\n * 1 if first string greater than second one\n ",
|
|
"start": 116,
|
|
"end": 432,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 433,
|
|
"end": 572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 2
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 440,
|
|
"end": 572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 2
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 446,
|
|
"end": 571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 446,
|
|
"end": 456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 23
|
|
},
|
|
"identifierName": "ignoreCase"
|
|
},
|
|
"name": "ignoreCase",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 459,
|
|
"end": 571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 446,
|
|
"end": 456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 23
|
|
},
|
|
"identifierName": "ignoreCase"
|
|
},
|
|
"name": "ignoreCase",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 460,
|
|
"end": 461,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 28
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 463,
|
|
"end": 464,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 31
|
|
},
|
|
"identifierName": "b"
|
|
},
|
|
"name": "b"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 469,
|
|
"end": 571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 475,
|
|
"end": 499,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 28
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 479,
|
|
"end": 498,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 27
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 479,
|
|
"end": 480,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 9
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 483,
|
|
"end": 498,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 27
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 483,
|
|
"end": 496,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 483,
|
|
"end": 484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 13
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 485,
|
|
"end": 496,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 25
|
|
},
|
|
"identifierName": "toLowerCase"
|
|
},
|
|
"name": "toLowerCase"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 504,
|
|
"end": 528,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 28
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 508,
|
|
"end": 527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 27
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 508,
|
|
"end": 509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 9
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 512,
|
|
"end": 527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 27
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 512,
|
|
"end": 525,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 512,
|
|
"end": 513,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 13
|
|
},
|
|
"identifierName": "b"
|
|
},
|
|
"name": "b"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 514,
|
|
"end": 525,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 25
|
|
},
|
|
"identifierName": "toLowerCase"
|
|
},
|
|
"name": "toLowerCase"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 533,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 40
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ConditionalExpression",
|
|
"start": 540,
|
|
"end": 568,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 39
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 540,
|
|
"end": 545,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 16
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 540,
|
|
"end": 541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 12
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"operator": "<",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 544,
|
|
"end": 545,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 16
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "UnaryExpression",
|
|
"start": 548,
|
|
"end": 550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 21
|
|
}
|
|
},
|
|
"operator": "-",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start": 549,
|
|
"end": 550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 21
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "ConditionalExpression",
|
|
"start": 554,
|
|
"end": 567,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 38
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 554,
|
|
"end": 559,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 30
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 554,
|
|
"end": 555,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 26
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"operator": ">",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 558,
|
|
"end": 559,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 30
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "NumericLiteral",
|
|
"start": 562,
|
|
"end": 563,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
},
|
|
"alternate": {
|
|
"type": "NumericLiteral",
|
|
"start": 566,
|
|
"end": 567,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 38
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 553
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Sorting utilities ",
|
|
"start": 90,
|
|
"end": 114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Case insensitive compare function for passed strings\n * @param {String} First string\n * @param {String} Second string\n * @return {Number} -1 if first string lower than second one\n * 0 if first string same order as second one\n * 1 if first string greater than second one\n ",
|
|
"start": 116,
|
|
"end": 432,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in ascending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 574,
|
|
"end": 767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Sorting utilities ",
|
|
"start": 90,
|
|
"end": 114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Case insensitive compare function for passed strings\n * @param {String} First string\n * @param {String} Second string\n * @return {Number} -1 if first string lower than second one\n * 0 if first string same order as second one\n * 1 if first string greater than second one\n ",
|
|
"start": 116,
|
|
"end": 432,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in ascending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 574,
|
|
"end": 767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 768,
|
|
"end": 812,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 44
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 775,
|
|
"end": 812,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 44
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 781,
|
|
"end": 811,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 43
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 781,
|
|
"end": 791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 23
|
|
},
|
|
"identifierName": "numSortAsc"
|
|
},
|
|
"name": "numSortAsc",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 794,
|
|
"end": 811,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 43
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 781,
|
|
"end": 791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 23
|
|
},
|
|
"identifierName": "numSortAsc"
|
|
},
|
|
"name": "numSortAsc",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 795,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 28
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 798,
|
|
"end": 799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 31
|
|
},
|
|
"identifierName": "b"
|
|
},
|
|
"name": "b"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start": 805,
|
|
"end": 810,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 42
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 805,
|
|
"end": 806,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 38
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 809,
|
|
"end": 810,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 42
|
|
},
|
|
"identifierName": "b"
|
|
},
|
|
"name": "b"
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 804
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in ascending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 574,
|
|
"end": 767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in descending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 814,
|
|
"end": 1008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in ascending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 574,
|
|
"end": 767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in descending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 814,
|
|
"end": 1008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 1009,
|
|
"end": 1054,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 45
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 1016,
|
|
"end": 1054,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 45
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1022,
|
|
"end": 1053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1022,
|
|
"end": 1033,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 24
|
|
},
|
|
"identifierName": "numSortDesc"
|
|
},
|
|
"name": "numSortDesc",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 1036,
|
|
"end": 1053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1022,
|
|
"end": 1033,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 24
|
|
},
|
|
"identifierName": "numSortDesc"
|
|
},
|
|
"name": "numSortDesc",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1037,
|
|
"end": 1038,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 29
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1040,
|
|
"end": 1041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 32
|
|
},
|
|
"identifierName": "b"
|
|
},
|
|
"name": "b"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start": 1047,
|
|
"end": 1052,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 43
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1047,
|
|
"end": 1048,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 39
|
|
},
|
|
"identifierName": "b"
|
|
},
|
|
"name": "b"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 1051,
|
|
"end": 1052,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 43
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 1046
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in descending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 814,
|
|
"end": 1008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in ascending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1056,
|
|
"end": 1327,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in descending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 814,
|
|
"end": 1008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in ascending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1056,
|
|
"end": 1327,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 1328,
|
|
"end": 1407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 79
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 1335,
|
|
"end": 1407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 79
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1341,
|
|
"end": 1406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 78
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1341,
|
|
"end": 1352,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 24
|
|
},
|
|
"identifierName": "dateSortAsc"
|
|
},
|
|
"name": "dateSortAsc",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 1355,
|
|
"end": 1406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 78
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1341,
|
|
"end": 1352,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 24
|
|
},
|
|
"identifierName": "dateSortAsc"
|
|
},
|
|
"name": "dateSortAsc",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1356,
|
|
"end": 1361,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 33
|
|
},
|
|
"identifierName": "date1"
|
|
},
|
|
"name": "date1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1363,
|
|
"end": 1368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 40
|
|
},
|
|
"identifierName": "date2"
|
|
},
|
|
"name": "date2"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start": 1373,
|
|
"end": 1406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 78
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"start": 1373,
|
|
"end": 1388,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 60
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1373,
|
|
"end": 1386,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 58
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 1373,
|
|
"end": 1378,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 50
|
|
},
|
|
"identifierName": "date1"
|
|
},
|
|
"name": "date1"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1379,
|
|
"end": 1386,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 58
|
|
},
|
|
"identifierName": "getTime"
|
|
},
|
|
"name": "getTime"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"start": 1391,
|
|
"end": 1406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 78
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1391,
|
|
"end": 1404,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 76
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 1391,
|
|
"end": 1396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 68
|
|
},
|
|
"identifierName": "date2"
|
|
},
|
|
"name": "date2"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1397,
|
|
"end": 1404,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 76
|
|
},
|
|
"identifierName": "getTime"
|
|
},
|
|
"name": "getTime"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in ascending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1056,
|
|
"end": 1327,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in descending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1409,
|
|
"end": 1681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in ascending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1056,
|
|
"end": 1327,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in descending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1409,
|
|
"end": 1681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 1682,
|
|
"end": 1762,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 80
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 1689,
|
|
"end": 1762,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 80
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1695,
|
|
"end": 1761,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 79
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1695,
|
|
"end": 1707,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
},
|
|
"identifierName": "dateSortDesc"
|
|
},
|
|
"name": "dateSortDesc",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 1710,
|
|
"end": 1761,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 79
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1695,
|
|
"end": 1707,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
},
|
|
"identifierName": "dateSortDesc"
|
|
},
|
|
"name": "dateSortDesc",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1711,
|
|
"end": 1716,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 34
|
|
},
|
|
"identifierName": "date1"
|
|
},
|
|
"name": "date1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1718,
|
|
"end": 1723,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 41
|
|
},
|
|
"identifierName": "date2"
|
|
},
|
|
"name": "date2"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BinaryExpression",
|
|
"start": 1728,
|
|
"end": 1761,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 79
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"start": 1728,
|
|
"end": 1743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 61
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1728,
|
|
"end": 1741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 59
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 1728,
|
|
"end": 1733,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 51
|
|
},
|
|
"identifierName": "date2"
|
|
},
|
|
"name": "date2"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1734,
|
|
"end": 1741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 59
|
|
},
|
|
"identifierName": "getTime"
|
|
},
|
|
"name": "getTime"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"start": 1746,
|
|
"end": 1761,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 79
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1746,
|
|
"end": 1759,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 77
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 1746,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 69
|
|
},
|
|
"identifierName": "date1"
|
|
},
|
|
"name": "date1"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1752,
|
|
"end": 1759,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 77
|
|
},
|
|
"identifierName": "getTime"
|
|
},
|
|
"name": "getTime"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in descending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1409,
|
|
"end": 1681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted numbers in desired\n * fashion according to supplied compare function and decimal separator\n * @param {Function} Compare function\n * @param {String} [decimal=','] Decimal separator\n * @return {Function} Compare function receiving parsed numeric arguments\n ",
|
|
"start": 1764,
|
|
"end": 2082,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in descending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1409,
|
|
"end": 1681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted numbers in desired\n * fashion according to supplied compare function and decimal separator\n * @param {Function} Compare function\n * @param {String} [decimal=','] Decimal separator\n * @return {Function} Compare function receiving parsed numeric arguments\n ",
|
|
"start": 1764,
|
|
"end": 2082,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 2083,
|
|
"end": 2318,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 2
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 2090,
|
|
"end": 2318,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 2
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2096,
|
|
"end": 2317,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2096,
|
|
"end": 2109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 26
|
|
},
|
|
"identifierName": "sortNumberStr"
|
|
},
|
|
"name": "sortNumberStr",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2112,
|
|
"end": 2317,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2096,
|
|
"end": 2109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 26
|
|
},
|
|
"identifierName": "sortNumberStr"
|
|
},
|
|
"name": "sortNumberStr",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2113,
|
|
"end": 2122,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 39
|
|
},
|
|
"identifierName": "compareFn"
|
|
},
|
|
"name": "compareFn"
|
|
},
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 2124,
|
|
"end": 2137,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 54
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 2124,
|
|
"end": 2131,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 48
|
|
},
|
|
"identifierName": "decimal"
|
|
},
|
|
"name": "decimal"
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 2134,
|
|
"end": 2137,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 54
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": ",",
|
|
"raw": "','"
|
|
},
|
|
"value": ","
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2142,
|
|
"end": 2317,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2148,
|
|
"end": 2315,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 6
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2155,
|
|
"end": 2314,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 5
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2156,
|
|
"end": 2163,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 19
|
|
},
|
|
"identifierName": "numStr1"
|
|
},
|
|
"name": "numStr1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2165,
|
|
"end": 2172,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 28
|
|
},
|
|
"identifierName": "numStr2"
|
|
},
|
|
"name": "numStr2"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2177,
|
|
"end": 2314,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2187,
|
|
"end": 2224,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 45
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2191,
|
|
"end": 2223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 44
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2191,
|
|
"end": 2195,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 16
|
|
},
|
|
"identifierName": "num1"
|
|
},
|
|
"name": "num1"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 2198,
|
|
"end": 2223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 44
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2198,
|
|
"end": 2205,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 26
|
|
},
|
|
"identifierName": "parseNb"
|
|
},
|
|
"name": "parseNb"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2206,
|
|
"end": 2213,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 34
|
|
},
|
|
"identifierName": "numStr1"
|
|
},
|
|
"name": "numStr1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2215,
|
|
"end": 2222,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 43
|
|
},
|
|
"identifierName": "decimal"
|
|
},
|
|
"name": "decimal"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2233,
|
|
"end": 2270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 45
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2237,
|
|
"end": 2269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 44
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2237,
|
|
"end": 2241,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 16
|
|
},
|
|
"identifierName": "num2"
|
|
},
|
|
"name": "num2"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 2244,
|
|
"end": 2269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 44
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2244,
|
|
"end": 2251,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 26
|
|
},
|
|
"identifierName": "parseNb"
|
|
},
|
|
"name": "parseNb"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2252,
|
|
"end": 2259,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 34
|
|
},
|
|
"identifierName": "numStr2"
|
|
},
|
|
"name": "numStr2"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2261,
|
|
"end": 2268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 43
|
|
},
|
|
"identifierName": "decimal"
|
|
},
|
|
"name": "decimal"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2279,
|
|
"end": 2308,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 37
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 2286,
|
|
"end": 2307,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 36
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2286,
|
|
"end": 2295,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 24
|
|
},
|
|
"identifierName": "compareFn"
|
|
},
|
|
"name": "compareFn"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2296,
|
|
"end": 2300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 29
|
|
},
|
|
"identifierName": "num1"
|
|
},
|
|
"name": "num1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2302,
|
|
"end": 2306,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 35
|
|
},
|
|
"identifierName": "num2"
|
|
},
|
|
"name": "num2"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted numbers in desired\n * fashion according to supplied compare function and decimal separator\n * @param {Function} Compare function\n * @param {String} [decimal=','] Decimal separator\n * @return {Function} Compare function receiving parsed numeric arguments\n ",
|
|
"start": 1764,
|
|
"end": 2082,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted dates in desired\n * fashion according to supplied compare function and locale\n * @param {Function} Compare function\n * @param {String} [locale='en-us'] Locale code\n * @return {Function} Compare function receiving parsed date arguments\n ",
|
|
"start": 2320,
|
|
"end": 2619,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted numbers in desired\n * fashion according to supplied compare function and decimal separator\n * @param {Function} Compare function\n * @param {String} [decimal=','] Decimal separator\n * @return {Function} Compare function receiving parsed numeric arguments\n ",
|
|
"start": 1764,
|
|
"end": 2082,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted dates in desired\n * fashion according to supplied compare function and locale\n * @param {Function} Compare function\n * @param {String} [locale='en-us'] Locale code\n * @return {Function} Compare function receiving parsed date arguments\n ",
|
|
"start": 2320,
|
|
"end": 2619,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 2620,
|
|
"end": 2880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 2
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 2627,
|
|
"end": 2880,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 2
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2633,
|
|
"end": 2879,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2633,
|
|
"end": 2644,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 24
|
|
},
|
|
"identifierName": "sortDateStr"
|
|
},
|
|
"name": "sortDateStr",
|
|
"leadingComments": null
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2647,
|
|
"end": 2879,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2633,
|
|
"end": 2644,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 24
|
|
},
|
|
"identifierName": "sortDateStr"
|
|
},
|
|
"name": "sortDateStr",
|
|
"leadingComments": null
|
|
},
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2648,
|
|
"end": 2657,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 37
|
|
},
|
|
"identifierName": "compareFn"
|
|
},
|
|
"name": "compareFn"
|
|
},
|
|
{
|
|
"type": "AssignmentPattern",
|
|
"start": 2659,
|
|
"end": 2675,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 55
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 2659,
|
|
"end": 2665,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 45
|
|
},
|
|
"identifierName": "locale"
|
|
},
|
|
"name": "locale"
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 2668,
|
|
"end": 2675,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 55
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "en-us",
|
|
"raw": "'en-us'"
|
|
},
|
|
"value": "en-us"
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2680,
|
|
"end": 2879,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2686,
|
|
"end": 2877,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 6
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2693,
|
|
"end": 2876,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2694,
|
|
"end": 2702,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"identifierName": "dateStr1"
|
|
},
|
|
"name": "dateStr1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2704,
|
|
"end": 2712,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 30
|
|
},
|
|
"identifierName": "dateStr2"
|
|
},
|
|
"name": "dateStr2"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2717,
|
|
"end": 2876,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2727,
|
|
"end": 2774,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 55
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2731,
|
|
"end": 2773,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 54
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2731,
|
|
"end": 2736,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 17
|
|
},
|
|
"identifierName": "date1"
|
|
},
|
|
"name": "date1"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 2739,
|
|
"end": 2773,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 54
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2739,
|
|
"end": 2755,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2739,
|
|
"end": 2748,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 29
|
|
},
|
|
"identifierName": "SugarDate"
|
|
},
|
|
"name": "SugarDate"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2749,
|
|
"end": 2755,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 36
|
|
},
|
|
"identifierName": "create"
|
|
},
|
|
"name": "create"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2756,
|
|
"end": 2764,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 45
|
|
},
|
|
"identifierName": "dateStr1"
|
|
},
|
|
"name": "dateStr1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2766,
|
|
"end": 2772,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 53
|
|
},
|
|
"identifierName": "locale"
|
|
},
|
|
"name": "locale"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2783,
|
|
"end": 2830,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 55
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2787,
|
|
"end": 2829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 54
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2787,
|
|
"end": 2792,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 17
|
|
},
|
|
"identifierName": "date2"
|
|
},
|
|
"name": "date2"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 2795,
|
|
"end": 2829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 54
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2795,
|
|
"end": 2811,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2795,
|
|
"end": 2804,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 29
|
|
},
|
|
"identifierName": "SugarDate"
|
|
},
|
|
"name": "SugarDate"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2805,
|
|
"end": 2811,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 36
|
|
},
|
|
"identifierName": "create"
|
|
},
|
|
"name": "create"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2812,
|
|
"end": 2820,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 45
|
|
},
|
|
"identifierName": "dateStr2"
|
|
},
|
|
"name": "dateStr2"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2822,
|
|
"end": 2828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 53
|
|
},
|
|
"identifierName": "locale"
|
|
},
|
|
"name": "locale"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2839,
|
|
"end": 2870,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 39
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 2846,
|
|
"end": 2869,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2846,
|
|
"end": 2855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 24
|
|
},
|
|
"identifierName": "compareFn"
|
|
},
|
|
"name": "compareFn"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2856,
|
|
"end": 2861,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 30
|
|
},
|
|
"identifierName": "date1"
|
|
},
|
|
"name": "date1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2863,
|
|
"end": 2868,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 37
|
|
},
|
|
"identifierName": "date2"
|
|
},
|
|
"name": "date2"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted dates in desired\n * fashion according to supplied compare function and locale\n * @param {Function} Compare function\n * @param {String} [locale='en-us'] Locale code\n * @return {Function} Compare function receiving parsed date arguments\n ",
|
|
"start": 2320,
|
|
"end": 2619,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": []
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted dates in desired\n * fashion according to supplied compare function and locale\n * @param {Function} Compare function\n * @param {String} [locale='en-us'] Locale code\n * @return {Function} Compare function receiving parsed date arguments\n ",
|
|
"start": 2320,
|
|
"end": 2619,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Sorting utilities ",
|
|
"start": 90,
|
|
"end": 114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Case insensitive compare function for passed strings\n * @param {String} First string\n * @param {String} Second string\n * @return {Number} -1 if first string lower than second one\n * 0 if first string same order as second one\n * 1 if first string greater than second one\n ",
|
|
"start": 116,
|
|
"end": 432,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in ascending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 574,
|
|
"end": 767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in descending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 814,
|
|
"end": 1008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in ascending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1056,
|
|
"end": 1327,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in descending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1409,
|
|
"end": 1681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted numbers in desired\n * fashion according to supplied compare function and decimal separator\n * @param {Function} Compare function\n * @param {String} [decimal=','] Decimal separator\n * @return {Function} Compare function receiving parsed numeric arguments\n ",
|
|
"start": 1764,
|
|
"end": 2082,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"column": 3
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted dates in desired\n * fashion according to supplied compare function and locale\n * @param {Function} Compare function\n * @param {String} [locale='en-us'] Locale code\n * @return {Function} Compare function receiving parsed date arguments\n ",
|
|
"start": 2320,
|
|
"end": 2619,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 3
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"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": "parse",
|
|
"start": 8,
|
|
"end": 13,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"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": "as",
|
|
"start": 14,
|
|
"end": 16,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "parseNb",
|
|
"start": 17,
|
|
"end": 24,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 24,
|
|
"end": 25,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 26,
|
|
"end": 30,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./number",
|
|
"start": 31,
|
|
"end": 41,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 41,
|
|
"end": 42,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 43,
|
|
"end": 49,
|
|
"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": 50,
|
|
"end": 51,
|
|
"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": "Date",
|
|
"start": 51,
|
|
"end": 55,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "as",
|
|
"start": 56,
|
|
"end": 58,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "SugarDate",
|
|
"start": 59,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 68,
|
|
"end": 69,
|
|
"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": "from",
|
|
"start": 70,
|
|
"end": 74,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "sugar-date",
|
|
"start": 75,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 87,
|
|
"end": 88,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* Sorting utilities ",
|
|
"start": 90,
|
|
"end": 114,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Case insensitive compare function for passed strings\n * @param {String} First string\n * @param {String} Second string\n * @return {Number} -1 if first string lower than second one\n * 0 if first string same order as second one\n * 1 if first string greater than second one\n ",
|
|
"start": 116,
|
|
"end": 432,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"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": 433,
|
|
"end": 439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"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": 440,
|
|
"end": 445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "ignoreCase",
|
|
"start": 446,
|
|
"end": 456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 457,
|
|
"end": 458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 459,
|
|
"end": 460,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "a",
|
|
"start": 460,
|
|
"end": 461,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 461,
|
|
"end": 462,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "b",
|
|
"start": 463,
|
|
"end": 464,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 464,
|
|
"end": 465,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 466,
|
|
"end": 468,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 469,
|
|
"end": 470,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 475,
|
|
"end": 478,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "x",
|
|
"start": 479,
|
|
"end": 480,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 481,
|
|
"end": 482,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "a",
|
|
"start": 483,
|
|
"end": 484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 484,
|
|
"end": 485,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "toLowerCase",
|
|
"start": 485,
|
|
"end": 496,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 496,
|
|
"end": 497,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 497,
|
|
"end": 498,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 498,
|
|
"end": 499,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 504,
|
|
"end": 507,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "y",
|
|
"start": 508,
|
|
"end": 509,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 510,
|
|
"end": 511,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "b",
|
|
"start": 512,
|
|
"end": 513,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 513,
|
|
"end": 514,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "toLowerCase",
|
|
"start": 514,
|
|
"end": 525,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 525,
|
|
"end": 526,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 526,
|
|
"end": 527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 527,
|
|
"end": 528,
|
|
"loc": {
|
|
"start": {
|
|
"line": 16,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 533,
|
|
"end": 539,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "x",
|
|
"start": 540,
|
|
"end": 541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "</>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 7,
|
|
"updateContext": null
|
|
},
|
|
"value": "<",
|
|
"start": 542,
|
|
"end": 543,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "y",
|
|
"start": 544,
|
|
"end": 545,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 546,
|
|
"end": 547,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 548,
|
|
"end": 549,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 1,
|
|
"start": 549,
|
|
"end": 550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 551,
|
|
"end": 552,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 553,
|
|
"end": 554,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "x",
|
|
"start": 554,
|
|
"end": 555,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "</>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 7,
|
|
"updateContext": null
|
|
},
|
|
"value": ">",
|
|
"start": 556,
|
|
"end": 557,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "y",
|
|
"start": 558,
|
|
"end": 559,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 560,
|
|
"end": 561,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 1,
|
|
"start": 562,
|
|
"end": 563,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 564,
|
|
"end": 565,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 566,
|
|
"end": 567,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 567,
|
|
"end": 568,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 568,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 570,
|
|
"end": 571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 571,
|
|
"end": 572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 1
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in ascending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 574,
|
|
"end": 767,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"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": 768,
|
|
"end": 774,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"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": 775,
|
|
"end": 780,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "numSortAsc",
|
|
"start": 781,
|
|
"end": 791,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 792,
|
|
"end": 793,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 794,
|
|
"end": 795,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "a",
|
|
"start": 795,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 796,
|
|
"end": 797,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "b",
|
|
"start": 798,
|
|
"end": 799,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 799,
|
|
"end": 800,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 801,
|
|
"end": 803,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 804,
|
|
"end": 805,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "a",
|
|
"start": 805,
|
|
"end": 806,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 807,
|
|
"end": 808,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "b",
|
|
"start": 809,
|
|
"end": 810,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 810,
|
|
"end": 811,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 811,
|
|
"end": 812,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed numbers in descending manner\n * @param {Number} First number\n * @param {Number} Second number\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 814,
|
|
"end": 1008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"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": 1009,
|
|
"end": 1015,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"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": 1016,
|
|
"end": 1021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "numSortDesc",
|
|
"start": 1022,
|
|
"end": 1033,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1034,
|
|
"end": 1035,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1036,
|
|
"end": 1037,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "a",
|
|
"start": 1037,
|
|
"end": 1038,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1038,
|
|
"end": 1039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "b",
|
|
"start": 1040,
|
|
"end": 1041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1041,
|
|
"end": 1042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1043,
|
|
"end": 1045,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1046,
|
|
"end": 1047,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "b",
|
|
"start": 1047,
|
|
"end": 1048,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 1049,
|
|
"end": 1050,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "a",
|
|
"start": 1051,
|
|
"end": 1052,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1052,
|
|
"end": 1053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1053,
|
|
"end": 1054,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in ascending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1056,
|
|
"end": 1327,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"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": 1328,
|
|
"end": 1334,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"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": 1335,
|
|
"end": 1340,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dateSortAsc",
|
|
"start": 1341,
|
|
"end": 1352,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1353,
|
|
"end": 1354,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1355,
|
|
"end": 1356,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date1",
|
|
"start": 1356,
|
|
"end": 1361,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1361,
|
|
"end": 1362,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date2",
|
|
"start": 1363,
|
|
"end": 1368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1368,
|
|
"end": 1369,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1370,
|
|
"end": 1372,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date1",
|
|
"start": 1373,
|
|
"end": 1378,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1378,
|
|
"end": 1379,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getTime",
|
|
"start": 1379,
|
|
"end": 1386,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1386,
|
|
"end": 1387,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1387,
|
|
"end": 1388,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 1389,
|
|
"end": 1390,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date2",
|
|
"start": 1391,
|
|
"end": 1396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1396,
|
|
"end": 1397,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getTime",
|
|
"start": 1397,
|
|
"end": 1404,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 76
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1404,
|
|
"end": 1405,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1405,
|
|
"end": 1406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 77
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 78
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1406,
|
|
"end": 1407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Compare function for sorting passed dates in descending manner according to\n * the corresponding UTC numeric value (returned by getTime)\n * @param {Date} First date object\n * @param {Date} Second date object\n * @return {Number} Negative, zero or positive number\n ",
|
|
"start": 1409,
|
|
"end": 1681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 45,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"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": 1682,
|
|
"end": 1688,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"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": 1689,
|
|
"end": 1694,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dateSortDesc",
|
|
"start": 1695,
|
|
"end": 1707,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1708,
|
|
"end": 1709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1710,
|
|
"end": 1711,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date1",
|
|
"start": 1711,
|
|
"end": 1716,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1716,
|
|
"end": 1717,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date2",
|
|
"start": 1718,
|
|
"end": 1723,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1723,
|
|
"end": 1724,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1725,
|
|
"end": 1727,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date2",
|
|
"start": 1728,
|
|
"end": 1733,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1733,
|
|
"end": 1734,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getTime",
|
|
"start": 1734,
|
|
"end": 1741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 52,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1742,
|
|
"end": 1743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "-",
|
|
"start": 1744,
|
|
"end": 1745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date1",
|
|
"start": 1746,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1751,
|
|
"end": 1752,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getTime",
|
|
"start": 1752,
|
|
"end": 1759,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 77
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1759,
|
|
"end": 1760,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 77
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 78
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1760,
|
|
"end": 1761,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1761,
|
|
"end": 1762,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 79
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted numbers in desired\n * fashion according to supplied compare function and decimal separator\n * @param {Function} Compare function\n * @param {String} [decimal=','] Decimal separator\n * @return {Function} Compare function receiving parsed numeric arguments\n ",
|
|
"start": 1764,
|
|
"end": 2082,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 60,
|
|
"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": 2083,
|
|
"end": 2089,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"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": 2090,
|
|
"end": 2095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sortNumberStr",
|
|
"start": 2096,
|
|
"end": 2109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2110,
|
|
"end": 2111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2112,
|
|
"end": 2113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "compareFn",
|
|
"start": 2113,
|
|
"end": 2122,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2122,
|
|
"end": 2123,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "decimal",
|
|
"start": 2124,
|
|
"end": 2131,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2132,
|
|
"end": 2133,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": ",",
|
|
"start": 2134,
|
|
"end": 2137,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2137,
|
|
"end": 2138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2139,
|
|
"end": 2141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2142,
|
|
"end": 2143,
|
|
"loc": {
|
|
"start": {
|
|
"line": 61,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 60
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2148,
|
|
"end": 2154,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2155,
|
|
"end": 2156,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "numStr1",
|
|
"start": 2156,
|
|
"end": 2163,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2163,
|
|
"end": 2164,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "numStr2",
|
|
"start": 2165,
|
|
"end": 2172,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2172,
|
|
"end": 2173,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2174,
|
|
"end": 2176,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2177,
|
|
"end": 2178,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2187,
|
|
"end": 2190,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "num1",
|
|
"start": 2191,
|
|
"end": 2195,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2196,
|
|
"end": 2197,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "parseNb",
|
|
"start": 2198,
|
|
"end": 2205,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2205,
|
|
"end": 2206,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "numStr1",
|
|
"start": 2206,
|
|
"end": 2213,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2213,
|
|
"end": 2214,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "decimal",
|
|
"start": 2215,
|
|
"end": 2222,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2222,
|
|
"end": 2223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2223,
|
|
"end": 2224,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2233,
|
|
"end": 2236,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "num2",
|
|
"start": 2237,
|
|
"end": 2241,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2242,
|
|
"end": 2243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "parseNb",
|
|
"start": 2244,
|
|
"end": 2251,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2251,
|
|
"end": 2252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "numStr2",
|
|
"start": 2252,
|
|
"end": 2259,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2259,
|
|
"end": 2260,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "decimal",
|
|
"start": 2261,
|
|
"end": 2268,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2268,
|
|
"end": 2269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2269,
|
|
"end": 2270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 2279,
|
|
"end": 2285,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "compareFn",
|
|
"start": 2286,
|
|
"end": 2295,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2295,
|
|
"end": 2296,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "num1",
|
|
"start": 2296,
|
|
"end": 2300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2300,
|
|
"end": 2301,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "num2",
|
|
"start": 2302,
|
|
"end": 2306,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2306,
|
|
"end": 2307,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2307,
|
|
"end": 2308,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2313,
|
|
"end": 2314,
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2314,
|
|
"end": 2315,
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2316,
|
|
"end": 2317,
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2317,
|
|
"end": 2318,
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 1
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\n * Curried compare function for sorting passed formatted dates in desired\n * fashion according to supplied compare function and locale\n * @param {Function} Compare function\n * @param {String} [locale='en-us'] Locale code\n * @return {Function} Compare function receiving parsed date arguments\n ",
|
|
"start": 2320,
|
|
"end": 2619,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"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": 2620,
|
|
"end": 2626,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"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": 2627,
|
|
"end": 2632,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sortDateStr",
|
|
"start": 2633,
|
|
"end": 2644,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2645,
|
|
"end": 2646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2647,
|
|
"end": 2648,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "compareFn",
|
|
"start": 2648,
|
|
"end": 2657,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 76,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "locale",
|
|
"start": 2659,
|
|
"end": 2665,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2666,
|
|
"end": 2667,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "en-us",
|
|
"start": 2668,
|
|
"end": 2675,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2675,
|
|
"end": 2676,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2677,
|
|
"end": 2679,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2680,
|
|
"end": 2681,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2686,
|
|
"end": 2692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2693,
|
|
"end": 2694,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dateStr1",
|
|
"start": 2694,
|
|
"end": 2702,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2702,
|
|
"end": 2703,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dateStr2",
|
|
"start": 2704,
|
|
"end": 2712,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2712,
|
|
"end": 2713,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2714,
|
|
"end": 2716,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2717,
|
|
"end": 2718,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2727,
|
|
"end": 2730,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date1",
|
|
"start": 2731,
|
|
"end": 2736,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2737,
|
|
"end": 2738,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "SugarDate",
|
|
"start": 2739,
|
|
"end": 2748,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2748,
|
|
"end": 2749,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "create",
|
|
"start": 2749,
|
|
"end": 2755,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2755,
|
|
"end": 2756,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dateStr1",
|
|
"start": 2756,
|
|
"end": 2764,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2764,
|
|
"end": 2765,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "locale",
|
|
"start": 2766,
|
|
"end": 2772,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2772,
|
|
"end": 2773,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2773,
|
|
"end": 2774,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2783,
|
|
"end": 2786,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date2",
|
|
"start": 2787,
|
|
"end": 2792,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2793,
|
|
"end": 2794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "SugarDate",
|
|
"start": 2795,
|
|
"end": 2804,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2804,
|
|
"end": 2805,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "create",
|
|
"start": 2805,
|
|
"end": 2811,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2811,
|
|
"end": 2812,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dateStr2",
|
|
"start": 2812,
|
|
"end": 2820,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2820,
|
|
"end": 2821,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "locale",
|
|
"start": 2822,
|
|
"end": 2828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2828,
|
|
"end": 2829,
|
|
"loc": {
|
|
"start": {
|
|
"line": 79,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 79,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 79,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2839,
|
|
"end": 2845,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "compareFn",
|
|
"start": 2846,
|
|
"end": 2855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2855,
|
|
"end": 2856,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date1",
|
|
"start": 2856,
|
|
"end": 2861,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2861,
|
|
"end": 2862,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "date2",
|
|
"start": 2863,
|
|
"end": 2868,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2868,
|
|
"end": 2869,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2869,
|
|
"end": 2870,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2875,
|
|
"end": 2876,
|
|
"loc": {
|
|
"start": {
|
|
"line": 81,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2876,
|
|
"end": 2877,
|
|
"loc": {
|
|
"start": {
|
|
"line": 81,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 81,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2878,
|
|
"end": 2879,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 82,
|
|
"column": 1
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "eof",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2881,
|
|
"end": 2881,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |