From ad859c80db80d79d8ac12080cd469c605d87bfe0 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again Date: Thu, 29 Jul 2021 10:10:34 +0000 Subject: [PATCH 1/2] Initial gh-pages commit From b509b815827cb497094a98e85362b797747e9606 Mon Sep 17 00:00:00 2001 From: make-github-pseudonymous-again Date: Thu, 29 Jul 2021 10:10:34 +0000 Subject: [PATCH 2/2] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20arra?= =?UTF-8?q?y-like/reduce@ff215d65100503a39912c6496db1d926afc75c00=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ast/source/.external-ecmascript.js.json | 2802 ++++++++++++++ ast/source/all.js.json | 2248 +++++++++++ ast/source/any.js.json | 2181 +++++++++++ ast/source/argmax.js.json | 4537 +++++++++++++++++++++++ ast/source/argmin.js.json | 4537 +++++++++++++++++++++++ ast/source/index.js.json | 2655 +++++++++++++ ast/source/max.js.json | 4035 ++++++++++++++++++++ ast/source/min.js.json | 4035 ++++++++++++++++++++ ast/source/reduce.js.json | 2937 +++++++++++++++ ast/source/sum.js.json | 3280 ++++++++++++++++ badge.svg | 17 + coverage.json | 47 + css/github.css | 83 + css/identifiers.css | 37 + css/manual.css | 134 + css/prettify-tomorrow.css | 132 + css/search.css | 84 + css/source.css | 55 + css/style.css | 608 +++ css/test.css | 58 + file/src/all.js.html | 80 + file/src/any.js.html | 80 + file/src/argmax.js.html | 91 + file/src/argmin.js.html | 91 + file/src/index.js.html | 69 + file/src/max.js.html | 89 + file/src/min.js.html | 89 + file/src/reduce.js.html | 89 + file/src/sum.js.html | 85 + function/index.html | 1019 +++++ identifiers.html | 309 ++ image/badge.svg | 17 + image/esdoc-logo-mini-black.png | Bin 0 -> 5651 bytes image/esdoc-logo-mini.png | Bin 0 -> 6504 bytes image/github.png | Bin 0 -> 4268 bytes image/manual-badge.svg | 17 + image/search.png | Bin 0 -> 12704 bytes index.html | 87 + index.json | 1241 +++++++ inject/css/0-style.css | 52 + inject/script/0-header.js | 30 + lint.json | 1 + manual/example.html | 79 + manual/index.html | 119 + manual/installation.html | 86 + manual/overview.html | 76 + manual/usage.html | 81 + script/inherited-summary.js | 28 + script/inner-link.js | 32 + script/manual.js | 12 + script/patch-for-local.js | 8 + script/prettify/Apache-License-2.0.txt | 202 + script/prettify/prettify.js | 46 + script/pretty-print.js | 25 + script/search.js | 117 + script/search_index.js | 386 ++ script/test-summary.js | 54 + source.html | 147 + 58 files changed, 39536 insertions(+) create mode 100644 ast/source/.external-ecmascript.js.json create mode 100644 ast/source/all.js.json create mode 100644 ast/source/any.js.json create mode 100644 ast/source/argmax.js.json create mode 100644 ast/source/argmin.js.json create mode 100644 ast/source/index.js.json create mode 100644 ast/source/max.js.json create mode 100644 ast/source/min.js.json create mode 100644 ast/source/reduce.js.json create mode 100644 ast/source/sum.js.json create mode 100644 badge.svg create mode 100644 coverage.json create mode 100644 css/github.css create mode 100644 css/identifiers.css create mode 100644 css/manual.css create mode 100644 css/prettify-tomorrow.css create mode 100644 css/search.css create mode 100644 css/source.css create mode 100644 css/style.css create mode 100644 css/test.css create mode 100644 file/src/all.js.html create mode 100644 file/src/any.js.html create mode 100644 file/src/argmax.js.html create mode 100644 file/src/argmin.js.html create mode 100644 file/src/index.js.html create mode 100644 file/src/max.js.html create mode 100644 file/src/min.js.html create mode 100644 file/src/reduce.js.html create mode 100644 file/src/sum.js.html create mode 100644 function/index.html create mode 100644 identifiers.html create mode 100644 image/badge.svg create mode 100644 image/esdoc-logo-mini-black.png create mode 100644 image/esdoc-logo-mini.png create mode 100644 image/github.png create mode 100644 image/manual-badge.svg create mode 100644 image/search.png create mode 100644 index.html create mode 100644 index.json create mode 100644 inject/css/0-style.css create mode 100644 inject/script/0-header.js create mode 100644 lint.json create mode 100644 manual/example.html create mode 100644 manual/index.html create mode 100644 manual/installation.html create mode 100644 manual/overview.html create mode 100644 manual/usage.html create mode 100644 script/inherited-summary.js create mode 100644 script/inner-link.js create mode 100644 script/manual.js create mode 100644 script/patch-for-local.js create mode 100644 script/prettify/Apache-License-2.0.txt create mode 100755 script/prettify/prettify.js create mode 100644 script/pretty-print.js create mode 100644 script/search.js create mode 100644 script/search_index.js create mode 100644 script/test-summary.js create mode 100644 source.html diff --git a/ast/source/.external-ecmascript.js.json b/ast/source/.external-ecmascript.js.json new file mode 100644 index 0000000..21893b9 --- /dev/null +++ b/ast/source/.external-ecmascript.js.json @@ -0,0 +1,2802 @@ +{ + "type": "File", + "start": 0, + "end": 6058, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 6058, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + }, + "sourceType": "module", + "body": [], + "directives": [], + "leadingComments": null, + "innerComments": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + } + ] + }, + "comments": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6058, + "end": 6058, + "loc": { + "start": { + "line": 193, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/all.js.json b/ast/source/all.js.json new file mode 100644 index 0000000..fc9edcc --- /dev/null +++ b/ast/source/all.js.json @@ -0,0 +1,2248 @@ +{ + "type": "File", + "start": 0, + "end": 233, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 20, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 233, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 20, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 106, + "end": 211, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 17, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 112, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + }, + "identifierName": "all" + }, + "name": "all", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 118, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 122, + "end": 123, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 125, + "end": 126, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 20 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 131, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "body": [ + { + "type": "ForStatement", + "start": 134, + "end": 193, + "loc": { + "start": { + "line": 10, + "column": 1 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "init": null, + "test": { + "type": "BinaryExpression", + "start": 141, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "left": { + "type": "Identifier", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 148, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 18 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 153, + "end": 193, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 157, + "end": 190, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "test": { + "type": "UnaryExpression", + "start": 161, + "end": 166, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 162, + "end": 166, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "object": { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 8 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 164, + "end": 165, + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 10 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 168, + "end": 190, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 173, + "end": 186, + "loc": { + "start": { + "line": 12, + "column": 3 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 180, + "end": 185, + "loc": { + "start": { + "line": 12, + "column": 10 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "value": false + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 196, + "end": 208, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 203, + "end": 207, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 12 + } + }, + "value": true + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 213, + "end": 232, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 228, + "end": 231, + "loc": { + "start": { + "line": 19, + "column": 15 + }, + "end": { + "line": 19, + "column": 18 + }, + "identifierName": "all" + }, + "name": "all" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 213, + "end": 232, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 19 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 106, + "end": 211, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 17, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 112, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + }, + "identifierName": "all" + }, + "name": "all", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 118, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + }, + "identifierName": "all" + }, + "name": "all", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 122, + "end": 123, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 125, + "end": 126, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 20 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 131, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "body": [ + { + "type": "ForStatement", + "start": 134, + "end": 193, + "loc": { + "start": { + "line": 10, + "column": 1 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "init": null, + "test": { + "type": "BinaryExpression", + "start": 141, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "left": { + "type": "Identifier", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 148, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 18 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 153, + "end": 193, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 157, + "end": 190, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "test": { + "type": "UnaryExpression", + "start": 161, + "end": 166, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 162, + "end": 166, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "object": { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 8 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 164, + "end": 165, + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 10 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 168, + "end": 190, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 173, + "end": 186, + "loc": { + "start": { + "line": 12, + "column": 3 + }, + "end": { + "line": 12, + "column": 16 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 180, + "end": 185, + "loc": { + "start": { + "line": 12, + "column": 10 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "value": false + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 196, + "end": 208, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 203, + "end": 207, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 12 + } + }, + "value": true + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * All.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n ", + "start": 0, + "end": 105, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * All.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n ", + "start": 0, + "end": 105, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * All.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n ", + "start": 0, + "end": 105, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 106, + "end": 111, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "all", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 116, + "end": 117, + "loc": { + "start": { + "line": 9, + "column": 10 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 118, + "end": 119, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 9, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 120, + "end": 121, + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 122, + "end": 123, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 123, + "end": 124, + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 125, + "end": 126, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 126, + "end": 127, + "loc": { + "start": { + "line": 9, + "column": 20 + }, + "end": { + "line": 9, + "column": 21 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 128, + "end": 130, + "loc": { + "start": { + "line": 9, + "column": 22 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 131, + "end": 132, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 9, + "column": 26 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 134, + "end": 137, + "loc": { + "start": { + "line": 10, + "column": 1 + }, + "end": { + "line": 10, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 138, + "end": 139, + "loc": { + "start": { + "line": 10, + "column": 5 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 139, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 143, + "end": 144, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 146, + "end": 147, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 148, + "end": 150, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 151, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 18 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 157, + "end": 159, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 160, + "end": 161, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 161, + "end": 162, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 8 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 164, + "end": 165, + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 10 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 166, + "end": 167, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 173, + "end": 179, + "loc": { + "start": { + "line": 12, + "column": 3 + }, + "end": { + "line": 12, + "column": 9 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 180, + "end": 185, + "loc": { + "start": { + "line": 12, + "column": 10 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 185, + "end": 186, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 189, + "end": 190, + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 192, + "end": 193, + "loc": { + "start": { + "line": 14, + "column": 1 + }, + "end": { + "line": 14, + "column": 2 + } + } + }, + { + "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": 196, + "end": 202, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 7 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 203, + "end": 207, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 12 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 207, + "end": 208, + "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 + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 210, + "end": 211, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 17, + "column": 2 + } + } + }, + { + "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": 213, + "end": 219, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 220, + "end": 227, + "loc": { + "start": { + "line": 19, + "column": 7 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "all", + "start": 228, + "end": 231, + "loc": { + "start": { + "line": 19, + "column": 15 + }, + "end": { + "line": 19, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 231, + "end": 232, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 19 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 233, + "end": 233, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/any.js.json b/ast/source/any.js.json new file mode 100644 index 0000000..8d30b2f --- /dev/null +++ b/ast/source/any.js.json @@ -0,0 +1,2181 @@ +{ + "type": "File", + "start": 0, + "end": 232, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 20, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 232, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 20, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 106, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 17, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 112, + "end": 209, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + }, + "identifierName": "any" + }, + "name": "any", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 118, + "end": 209, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 122, + "end": 123, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 125, + "end": 126, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 20 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 131, + "end": 209, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "body": [ + { + "type": "ForStatement", + "start": 134, + "end": 191, + "loc": { + "start": { + "line": 10, + "column": 1 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "init": null, + "test": { + "type": "BinaryExpression", + "start": 141, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "left": { + "type": "Identifier", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 148, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 18 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 153, + "end": 191, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 157, + "end": 188, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "test": { + "type": "MemberExpression", + "start": 161, + "end": 165, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 10 + } + }, + "object": { + "type": "Identifier", + "start": 161, + "end": 162, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 7 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + }, + "consequent": { + "type": "BlockStatement", + "start": 167, + "end": 188, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 172, + "end": 184, + "loc": { + "start": { + "line": 12, + "column": 3 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 179, + "end": 183, + "loc": { + "start": { + "line": 12, + "column": 10 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 194, + "end": 207, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 14 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 201, + "end": 206, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "value": false + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 212, + "end": 231, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 227, + "end": 230, + "loc": { + "start": { + "line": 19, + "column": 15 + }, + "end": { + "line": 19, + "column": 18 + }, + "identifierName": "any" + }, + "name": "any" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 212, + "end": 231, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 19 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 106, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 17, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 112, + "end": 209, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + }, + "identifierName": "any" + }, + "name": "any", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 118, + "end": 209, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + }, + "identifierName": "any" + }, + "name": "any", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 122, + "end": 123, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 125, + "end": 126, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 20 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 131, + "end": 209, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 17, + "column": 1 + } + }, + "body": [ + { + "type": "ForStatement", + "start": 134, + "end": 191, + "loc": { + "start": { + "line": 10, + "column": 1 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "init": null, + "test": { + "type": "BinaryExpression", + "start": 141, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 13 + } + }, + "left": { + "type": "Identifier", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 148, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 18 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 153, + "end": 191, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 14, + "column": 2 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 157, + "end": 188, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "test": { + "type": "MemberExpression", + "start": 161, + "end": 165, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 10 + } + }, + "object": { + "type": "Identifier", + "start": 161, + "end": 162, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 7 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + }, + "consequent": { + "type": "BlockStatement", + "start": 167, + "end": 188, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 172, + "end": 184, + "loc": { + "start": { + "line": 12, + "column": 3 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 179, + "end": 183, + "loc": { + "start": { + "line": 12, + "column": 10 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 194, + "end": 207, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 14 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 201, + "end": 206, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 13 + } + }, + "value": false + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Any.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n ", + "start": 0, + "end": 105, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Any.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n ", + "start": 0, + "end": 105, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Any.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n ", + "start": 0, + "end": 105, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 8, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 106, + "end": 111, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "any", + "start": 112, + "end": 115, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 116, + "end": 117, + "loc": { + "start": { + "line": 9, + "column": 10 + }, + "end": { + "line": 9, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 118, + "end": 119, + "loc": { + "start": { + "line": 9, + "column": 12 + }, + "end": { + "line": 9, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 119, + "end": 120, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 120, + "end": 121, + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 122, + "end": 123, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 123, + "end": 124, + "loc": { + "start": { + "line": 9, + "column": 17 + }, + "end": { + "line": 9, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 125, + "end": 126, + "loc": { + "start": { + "line": 9, + "column": 19 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 126, + "end": 127, + "loc": { + "start": { + "line": 9, + "column": 20 + }, + "end": { + "line": 9, + "column": 21 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 128, + "end": 130, + "loc": { + "start": { + "line": 9, + "column": 22 + }, + "end": { + "line": 9, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 131, + "end": 132, + "loc": { + "start": { + "line": 9, + "column": 25 + }, + "end": { + "line": 9, + "column": 26 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 134, + "end": 137, + "loc": { + "start": { + "line": 10, + "column": 1 + }, + "end": { + "line": 10, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 138, + "end": 139, + "loc": { + "start": { + "line": 10, + "column": 5 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 139, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 8 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 143, + "end": 144, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 146, + "end": 147, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 148, + "end": 150, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 151, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 18 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 157, + "end": 159, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 160, + "end": 161, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 161, + "end": 162, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 164, + "end": 165, + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 10 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 167, + "end": 168, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 13 + } + } + }, + { + "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": 172, + "end": 178, + "loc": { + "start": { + "line": 12, + "column": 3 + }, + "end": { + "line": 12, + "column": 9 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 179, + "end": 183, + "loc": { + "start": { + "line": 12, + "column": 10 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 183, + "end": 184, + "loc": { + "start": { + "line": 12, + "column": 14 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 187, + "end": 188, + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 190, + "end": 191, + "loc": { + "start": { + "line": 14, + "column": 1 + }, + "end": { + "line": 14, + "column": 2 + } + } + }, + { + "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": 194, + "end": 200, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 7 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 201, + "end": 206, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 206, + "end": 207, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 14 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 208, + "end": 209, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 17, + "column": 2 + } + } + }, + { + "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": 212, + "end": 218, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 219, + "end": 226, + "loc": { + "start": { + "line": 19, + "column": 7 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "any", + "start": 227, + "end": 230, + "loc": { + "start": { + "line": 19, + "column": 15 + }, + "end": { + "line": 19, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 230, + "end": 231, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 19 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 232, + "end": 232, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/argmax.js.json b/ast/source/argmax.js.json new file mode 100644 index 0000000..d83dcca --- /dev/null +++ b/ast/source/argmax.js.json @@ -0,0 +1,4537 @@ +{ + "type": "File", + "start": 0, + "end": 465, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 31, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 465, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 31, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 137, + "end": 440, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 28, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 143, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + }, + "identifierName": "argmax" + }, + "name": "argmax", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 152, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 153, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 32 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 174, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 177, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 181, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 186, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 189, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 193, + "end": 210, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 200, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 216, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 220, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 220, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 16 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + }, + "init": { + "type": "Identifier", + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + }, + "identifierName": "i" + }, + "name": "i" + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 238, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 31 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 242, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 242, + "end": 250, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 13 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 253, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 255, + "end": 266, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 29 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 271, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 276, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 281, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 281, + "end": 282, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 285, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 288, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 293, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 297, + "end": 320, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 303, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 303, + "end": 312, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 315, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 19, + "column": 22 + }, + "end": { + "line": 19, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 324, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 328, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 328, + "end": 356, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 328, + "end": 335, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 336, + "end": 345, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 347, + "end": 355, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 33 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + } + ] + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 359, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 362, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 367, + "end": 383, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 367, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 367, + "end": 378, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 14 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + }, + "right": { + "type": "Identifier", + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + } + } + }, + { + "type": "ExpressionStatement", + "start": 387, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 387, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 387, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 11 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "right": { + "type": "Identifier", + "start": 398, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 418, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 1 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 425, + "end": 436, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 442, + "end": 464, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 457, + "end": 463, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 21 + }, + "identifierName": "argmax" + }, + "name": "argmax" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 442, + "end": 464, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 137, + "end": 440, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 28, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 143, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + }, + "identifierName": "argmax" + }, + "name": "argmax", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 152, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + }, + "identifierName": "argmax" + }, + "name": "argmax", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 153, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 32 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 174, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 177, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 181, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 186, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 189, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 193, + "end": 210, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 200, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 216, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 220, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 220, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 16 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + }, + "init": { + "type": "Identifier", + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + }, + "identifierName": "i" + }, + "name": "i" + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 238, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 31 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 242, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 242, + "end": 250, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 13 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 253, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 255, + "end": 266, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 29 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 271, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 276, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 281, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 281, + "end": 282, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 285, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 288, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 293, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 297, + "end": 320, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 303, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 303, + "end": 312, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 315, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 19, + "column": 22 + }, + "end": { + "line": 19, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 324, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 328, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 328, + "end": 356, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 328, + "end": 335, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 336, + "end": 345, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 347, + "end": 355, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 33 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + } + ] + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 359, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 362, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 367, + "end": 383, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 367, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 367, + "end": 378, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 14 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + }, + "right": { + "type": "Identifier", + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + } + } + }, + { + "type": "ExpressionStatement", + "start": 387, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 387, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 387, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 11 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "right": { + "type": "Identifier", + "start": 398, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 418, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 1 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 425, + "end": 436, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + }, + "identifierName": "argmaxSoFar" + }, + "name": "argmaxSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Argmax.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n ", + "start": 0, + "end": 136, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Argmax.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n ", + "start": 0, + "end": 136, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Argmax.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n ", + "start": 0, + "end": 136, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 137, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmax", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 152, + "end": 153, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 153, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 160, + "end": 161, + "loc": { + "start": { + "line": 10, + "column": 23 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 10, + "column": 26 + }, + "end": { + "line": 10, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 166, + "end": 167, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 169, + "end": 170, + "loc": { + "start": { + "line": 10, + "column": 32 + }, + "end": { + "line": 10, + "column": 33 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 171, + "end": 173, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 10, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 174, + "end": 175, + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 10, + "column": 38 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 177, + "end": 179, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 180, + "end": 181, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 183, + "end": 185, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 186, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 187, + "end": 188, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 189, + "end": 190, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 193, + "end": 199, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 200, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 212, + "end": 213, + "loc": { + "start": { + "line": 13, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + } + }, + { + "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": 216, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmaxSoFar", + "start": 220, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 232, + "end": 233, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 235, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "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": 238, + "end": 241, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxSoFar", + "start": 242, + "end": 250, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 251, + "end": 252, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 17 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 254, + "end": 255, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmaxSoFar", + "start": 255, + "end": 266, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 29 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 266, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 267, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 271, + "end": 274, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 18, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 275, + "end": 276, + "loc": { + "start": { + "line": 18, + "column": 5 + }, + "end": { + "line": 18, + "column": 6 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 276, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 279, + "end": 280, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 281, + "end": 282, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 283, + "end": 284, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 285, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 286, + "end": 287, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 288, + "end": 290, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 291, + "end": 292, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 293, + "end": 294, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + { + "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": 297, + "end": 302, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 303, + "end": 312, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 313, + "end": 314, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 316, + "end": 317, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 19, + "column": 22 + }, + "end": { + "line": 19, + "column": 23 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 318, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 319, + "end": 320, + "loc": { + "start": { + "line": 19, + "column": 24 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 324, + "end": 326, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 327, + "end": 328, + "loc": { + "start": { + "line": 21, + "column": 5 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 328, + "end": 335, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 335, + "end": 336, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 336, + "end": 345, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 345, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxSoFar", + "start": 347, + "end": 355, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 355, + "end": 356, + "loc": { + "start": { + "line": 21, + "column": 33 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 357, + "end": 358, + "loc": { + "start": { + "line": 21, + "column": 35 + }, + "end": { + "line": 21, + "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": 359, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 360, + "end": 361, + "loc": { + "start": { + "line": 21, + "column": 38 + }, + "end": { + "line": 21, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 362, + "end": 363, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmaxSoFar", + "start": 367, + "end": 378, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 379, + "end": 380, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 382, + "end": 383, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxSoFar", + "start": 387, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 396, + "end": 397, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 398, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 407, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 24 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 411, + "end": 412, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 414, + "end": 415, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 2 + } + } + }, + { + "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": 418, + "end": 424, + "loc": { + "start": { + "line": 27, + "column": 1 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmaxSoFar", + "start": 425, + "end": 436, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 436, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 438, + "end": 439, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 439, + "end": 440, + "loc": { + "start": { + "line": 28, + "column": 1 + }, + "end": { + "line": 28, + "column": 2 + } + } + }, + { + "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": 442, + "end": 448, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 449, + "end": 456, + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 30, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmax", + "start": 457, + "end": 463, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 463, + "end": 464, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 465, + "end": 465, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 31, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/argmin.js.json b/ast/source/argmin.js.json new file mode 100644 index 0000000..b68a141 --- /dev/null +++ b/ast/source/argmin.js.json @@ -0,0 +1,4537 @@ +{ + "type": "File", + "start": 0, + "end": 465, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 31, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 465, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 31, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 137, + "end": 440, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 28, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 143, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + }, + "identifierName": "argmin" + }, + "name": "argmin", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 152, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 153, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 32 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 174, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 177, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 181, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 186, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 189, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 193, + "end": 210, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 200, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 216, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 220, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 220, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 16 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + }, + "init": { + "type": "Identifier", + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + }, + "identifierName": "i" + }, + "name": "i" + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 238, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 31 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 242, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 242, + "end": 250, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 13 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 253, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 255, + "end": 266, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 29 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 271, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 276, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 281, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 281, + "end": 282, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 285, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 288, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 293, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 297, + "end": 320, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 303, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 303, + "end": 312, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 315, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 19, + "column": 22 + }, + "end": { + "line": 19, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 324, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 328, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 328, + "end": 356, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 328, + "end": 335, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 336, + "end": 345, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 347, + "end": 355, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 33 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + } + ] + }, + "operator": "<", + "right": { + "type": "NumericLiteral", + "start": 359, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 362, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 367, + "end": 383, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 367, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 367, + "end": 378, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 14 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + }, + "right": { + "type": "Identifier", + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + } + } + }, + { + "type": "ExpressionStatement", + "start": 387, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 387, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 387, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 11 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "right": { + "type": "Identifier", + "start": 398, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 418, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 1 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 425, + "end": 436, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 442, + "end": 464, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 457, + "end": 463, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 21 + }, + "identifierName": "argmin" + }, + "name": "argmin" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 442, + "end": 464, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 22 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 137, + "end": 440, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 28, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 143, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + }, + "identifierName": "argmin" + }, + "name": "argmin", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 152, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + }, + "identifierName": "argmin" + }, + "name": "argmin", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 153, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 32 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 174, + "end": 439, + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 177, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 181, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 186, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 189, + "end": 213, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 193, + "end": 210, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 200, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 216, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 220, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 220, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 16 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + }, + "init": { + "type": "Identifier", + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + }, + "identifierName": "i" + }, + "name": "i" + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 238, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 31 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 242, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "id": { + "type": "Identifier", + "start": 242, + "end": 250, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 13 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 253, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 255, + "end": 266, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 29 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 271, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 276, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 281, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 281, + "end": 282, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 285, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 288, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 293, + "end": 415, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 25, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 297, + "end": 320, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 303, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 303, + "end": 312, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 315, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 19, + "column": 22 + }, + "end": { + "line": 19, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 324, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 328, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 328, + "end": 356, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 328, + "end": 335, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 336, + "end": 345, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 347, + "end": 355, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 33 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + } + ] + }, + "operator": "<", + "right": { + "type": "NumericLiteral", + "start": 359, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 362, + "end": 412, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 24, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 367, + "end": 383, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 19 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 367, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 367, + "end": 378, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 14 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + }, + "right": { + "type": "Identifier", + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + } + } + }, + { + "type": "ExpressionStatement", + "start": 387, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 387, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 387, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 11 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "right": { + "type": "Identifier", + "start": 398, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 418, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 1 + }, + "end": { + "line": 27, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 425, + "end": 436, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + }, + "identifierName": "argminSoFar" + }, + "name": "argminSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Argmin.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n ", + "start": 0, + "end": 136, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Argmin.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n ", + "start": 0, + "end": 136, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Argmin.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n ", + "start": 0, + "end": 136, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 137, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmin", + "start": 143, + "end": 149, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 152, + "end": 153, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 153, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 160, + "end": 161, + "loc": { + "start": { + "line": 10, + "column": 23 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 10, + "column": 26 + }, + "end": { + "line": 10, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 166, + "end": 167, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 169, + "end": 170, + "loc": { + "start": { + "line": 10, + "column": 32 + }, + "end": { + "line": 10, + "column": 33 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 171, + "end": 173, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 10, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 174, + "end": 175, + "loc": { + "start": { + "line": 10, + "column": 37 + }, + "end": { + "line": 10, + "column": 38 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 177, + "end": 179, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 180, + "end": 181, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 183, + "end": 185, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 186, + "end": 187, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 187, + "end": 188, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 189, + "end": 190, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 193, + "end": 199, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 200, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 212, + "end": 213, + "loc": { + "start": { + "line": 13, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + } + }, + { + "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": 216, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argminSoFar", + "start": 220, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 232, + "end": 233, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 235, + "end": 236, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "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": 238, + "end": 241, + "loc": { + "start": { + "line": 16, + "column": 1 + }, + "end": { + "line": 16, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minSoFar", + "start": 242, + "end": 250, + "loc": { + "start": { + "line": 16, + "column": 5 + }, + "end": { + "line": 16, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 251, + "end": 252, + "loc": { + "start": { + "line": 16, + "column": 14 + }, + "end": { + "line": 16, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 253, + "end": 254, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 17 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 254, + "end": 255, + "loc": { + "start": { + "line": 16, + "column": 17 + }, + "end": { + "line": 16, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argminSoFar", + "start": 255, + "end": 266, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 29 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 266, + "end": 267, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 267, + "end": 268, + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 271, + "end": 274, + "loc": { + "start": { + "line": 18, + "column": 1 + }, + "end": { + "line": 18, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 275, + "end": 276, + "loc": { + "start": { + "line": 18, + "column": 5 + }, + "end": { + "line": 18, + "column": 6 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 276, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 279, + "end": 280, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 281, + "end": 282, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 283, + "end": 284, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 285, + "end": 286, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 286, + "end": 287, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 288, + "end": 290, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 291, + "end": 292, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 293, + "end": 294, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + { + "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": 297, + "end": 302, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 303, + "end": 312, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 313, + "end": 314, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 19, + "column": 20 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 316, + "end": 317, + "loc": { + "start": { + "line": 19, + "column": 21 + }, + "end": { + "line": 19, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 19, + "column": 22 + }, + "end": { + "line": 19, + "column": 23 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 318, + "end": 319, + "loc": { + "start": { + "line": 19, + "column": 23 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 319, + "end": 320, + "loc": { + "start": { + "line": 19, + "column": 24 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 324, + "end": 326, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 327, + "end": 328, + "loc": { + "start": { + "line": 21, + "column": 5 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 328, + "end": 335, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 335, + "end": 336, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 336, + "end": 345, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 345, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minSoFar", + "start": 347, + "end": 355, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 355, + "end": 356, + "loc": { + "start": { + "line": 21, + "column": 33 + }, + "end": { + "line": 21, + "column": 34 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 357, + "end": 358, + "loc": { + "start": { + "line": 21, + "column": 35 + }, + "end": { + "line": 21, + "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": 359, + "end": 360, + "loc": { + "start": { + "line": 21, + "column": 37 + }, + "end": { + "line": 21, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 360, + "end": 361, + "loc": { + "start": { + "line": 21, + "column": 38 + }, + "end": { + "line": 21, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 362, + "end": 363, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argminSoFar", + "start": 367, + "end": 378, + "loc": { + "start": { + "line": 22, + "column": 3 + }, + "end": { + "line": 22, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 379, + "end": 380, + "loc": { + "start": { + "line": 22, + "column": 15 + }, + "end": { + "line": 22, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 22, + "column": 17 + }, + "end": { + "line": 22, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 382, + "end": 383, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minSoFar", + "start": 387, + "end": 395, + "loc": { + "start": { + "line": 23, + "column": 3 + }, + "end": { + "line": 23, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 396, + "end": 397, + "loc": { + "start": { + "line": 23, + "column": 12 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 398, + "end": 407, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 407, + "end": 408, + "loc": { + "start": { + "line": 23, + "column": 23 + }, + "end": { + "line": 23, + "column": 24 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 411, + "end": 412, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 414, + "end": 415, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 2 + } + } + }, + { + "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": 418, + "end": 424, + "loc": { + "start": { + "line": 27, + "column": 1 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argminSoFar", + "start": 425, + "end": 436, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 436, + "end": 437, + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 438, + "end": 439, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 439, + "end": 440, + "loc": { + "start": { + "line": 28, + "column": 1 + }, + "end": { + "line": 28, + "column": 2 + } + } + }, + { + "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": 442, + "end": 448, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 449, + "end": 456, + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 30, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmin", + "start": 457, + "end": 463, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 463, + "end": 464, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 465, + "end": 465, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 31, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/index.js.json b/ast/source/index.js.json new file mode 100644 index 0000000..c0f88c6 --- /dev/null +++ b/ast/source/index.js.json @@ -0,0 +1,2655 @@ +{ + "type": "File", + "start": 0, + "end": 346, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 346, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportNamedDeclaration", + "start": 0, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 40 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 8, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 22 + } + }, + "local": { + "type": "Identifier", + "start": 8, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 19, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 22 + }, + "identifierName": "all" + }, + "name": "all" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 29, + "end": 39, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 39 + } + }, + "extra": { + "rawValue": "./all.js", + "raw": "'./all.js'" + }, + "value": "./all.js" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 41, + "end": 81, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 40 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 49, + "end": 63, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 22 + } + }, + "local": { + "type": "Identifier", + "start": 49, + "end": 56, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "end": { + "line": 2, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 60, + "end": 63, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 22 + }, + "identifierName": "any" + }, + "name": "any" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 70, + "end": 80, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 39 + } + }, + "extra": { + "rawValue": "./any.js", + "raw": "'./any.js'" + }, + "value": "./any.js" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 82, + "end": 128, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 46 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 90, + "end": 107, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 25 + } + }, + "local": { + "type": "Identifier", + "start": 90, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 101, + "end": 107, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 25 + }, + "identifierName": "argmax" + }, + "name": "argmax" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 114, + "end": 127, + "loc": { + "start": { + "line": 3, + "column": 32 + }, + "end": { + "line": 3, + "column": 45 + } + }, + "extra": { + "rawValue": "./argmax.js", + "raw": "'./argmax.js'" + }, + "value": "./argmax.js" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 129, + "end": 175, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 46 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 137, + "end": 154, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 25 + } + }, + "local": { + "type": "Identifier", + "start": 137, + "end": 144, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 148, + "end": 154, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 25 + }, + "identifierName": "argmin" + }, + "name": "argmin" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 161, + "end": 174, + "loc": { + "start": { + "line": 4, + "column": 32 + }, + "end": { + "line": 4, + "column": 45 + } + }, + "extra": { + "rawValue": "./argmin.js", + "raw": "'./argmin.js'" + }, + "value": "./argmin.js" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 176, + "end": 216, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 40 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 184, + "end": 198, + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 5, + "column": 22 + } + }, + "local": { + "type": "Identifier", + "start": 184, + "end": 191, + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 5, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 195, + "end": 198, + "loc": { + "start": { + "line": 5, + "column": 19 + }, + "end": { + "line": 5, + "column": 22 + }, + "identifierName": "max" + }, + "name": "max" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 205, + "end": 215, + "loc": { + "start": { + "line": 5, + "column": 29 + }, + "end": { + "line": 5, + "column": 39 + } + }, + "extra": { + "rawValue": "./max.js", + "raw": "'./max.js'" + }, + "value": "./max.js" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 217, + "end": 257, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 40 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 225, + "end": 239, + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 22 + } + }, + "local": { + "type": "Identifier", + "start": 225, + "end": 232, + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 236, + "end": 239, + "loc": { + "start": { + "line": 6, + "column": 19 + }, + "end": { + "line": 6, + "column": 22 + }, + "identifierName": "min" + }, + "name": "min" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 246, + "end": 256, + "loc": { + "start": { + "line": 6, + "column": 29 + }, + "end": { + "line": 6, + "column": 39 + } + }, + "extra": { + "rawValue": "./min.js", + "raw": "'./min.js'" + }, + "value": "./min.js" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 258, + "end": 304, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 46 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 266, + "end": 283, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 25 + } + }, + "local": { + "type": "Identifier", + "start": 266, + "end": 273, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 277, + "end": 283, + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 25 + }, + "identifierName": "reduce" + }, + "name": "reduce" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 290, + "end": 303, + "loc": { + "start": { + "line": 7, + "column": 32 + }, + "end": { + "line": 7, + "column": 45 + } + }, + "extra": { + "rawValue": "./reduce.js", + "raw": "'./reduce.js'" + }, + "value": "./reduce.js" + } + }, + { + "type": "ExportNamedDeclaration", + "start": 305, + "end": 345, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 40 + } + }, + "declaration": null, + "specifiers": [ + { + "type": "ExportSpecifier", + "start": 313, + "end": 327, + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 22 + } + }, + "local": { + "type": "Identifier", + "start": 313, + "end": 320, + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + }, + "identifierName": "default" + }, + "name": "default" + }, + "exported": { + "type": "Identifier", + "start": 324, + "end": 327, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 22 + }, + "identifierName": "sum" + }, + "name": "sum" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 334, + "end": 344, + "loc": { + "start": { + "line": 8, + "column": 29 + }, + "end": { + "line": 8, + "column": 39 + } + }, + "extra": { + "rawValue": "./sum.js", + "raw": "'./sum.js'" + }, + "value": "./sum.js" + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "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": 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": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 8, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 8 + }, + "end": { + "line": 1, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 16, + "end": 18, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "all", + "start": 19, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 19 + }, + "end": { + "line": 1, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 22, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 24, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 24 + }, + "end": { + "line": 1, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./all.js", + "start": 29, + "end": 39, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 39, + "end": 40, + "loc": { + "start": { + "line": 1, + "column": 39 + }, + "end": { + "line": 1, + "column": 40 + } + } + }, + { + "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": 41, + "end": 47, + "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": 48, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 8 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 49, + "end": 56, + "loc": { + "start": { + "line": 2, + "column": 8 + }, + "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": "as", + "start": 57, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 16 + }, + "end": { + "line": 2, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "any", + "start": 60, + "end": 63, + "loc": { + "start": { + "line": 2, + "column": 19 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 63, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 22 + }, + "end": { + "line": 2, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 65, + "end": 69, + "loc": { + "start": { + "line": 2, + "column": 24 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./any.js", + "start": 70, + "end": 80, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 80, + "end": 81, + "loc": { + "start": { + "line": 2, + "column": 39 + }, + "end": { + "line": 2, + "column": 40 + } + } + }, + { + "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": 82, + "end": 88, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 89, + "end": 90, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 8 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 90, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 8 + }, + "end": { + "line": 3, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 98, + "end": 100, + "loc": { + "start": { + "line": 3, + "column": 16 + }, + "end": { + "line": 3, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmax", + "start": 101, + "end": 107, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 107, + "end": 108, + "loc": { + "start": { + "line": 3, + "column": 25 + }, + "end": { + "line": 3, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 109, + "end": 113, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./argmax.js", + "start": 114, + "end": 127, + "loc": { + "start": { + "line": 3, + "column": 32 + }, + "end": { + "line": 3, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 127, + "end": 128, + "loc": { + "start": { + "line": 3, + "column": 45 + }, + "end": { + "line": 3, + "column": 46 + } + } + }, + { + "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": 129, + "end": 135, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 136, + "end": 137, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 8 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 137, + "end": 144, + "loc": { + "start": { + "line": 4, + "column": 8 + }, + "end": { + "line": 4, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 145, + "end": 147, + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "argmin", + "start": 148, + "end": 154, + "loc": { + "start": { + "line": 4, + "column": 19 + }, + "end": { + "line": 4, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 154, + "end": 155, + "loc": { + "start": { + "line": 4, + "column": 25 + }, + "end": { + "line": 4, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 156, + "end": 160, + "loc": { + "start": { + "line": 4, + "column": 27 + }, + "end": { + "line": 4, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./argmin.js", + "start": 161, + "end": 174, + "loc": { + "start": { + "line": 4, + "column": 32 + }, + "end": { + "line": 4, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 174, + "end": 175, + "loc": { + "start": { + "line": 4, + "column": 45 + }, + "end": { + "line": 4, + "column": 46 + } + } + }, + { + "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": 176, + "end": 182, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 183, + "end": 184, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 8 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 184, + "end": 191, + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 5, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 192, + "end": 194, + "loc": { + "start": { + "line": 5, + "column": 16 + }, + "end": { + "line": 5, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "max", + "start": 195, + "end": 198, + "loc": { + "start": { + "line": 5, + "column": 19 + }, + "end": { + "line": 5, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 198, + "end": 199, + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 200, + "end": 204, + "loc": { + "start": { + "line": 5, + "column": 24 + }, + "end": { + "line": 5, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./max.js", + "start": 205, + "end": 215, + "loc": { + "start": { + "line": 5, + "column": 29 + }, + "end": { + "line": 5, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 215, + "end": 216, + "loc": { + "start": { + "line": 5, + "column": 39 + }, + "end": { + "line": 5, + "column": 40 + } + } + }, + { + "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": 217, + "end": 223, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 8 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 225, + "end": 232, + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 233, + "end": 235, + "loc": { + "start": { + "line": 6, + "column": 16 + }, + "end": { + "line": 6, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "min", + "start": 236, + "end": 239, + "loc": { + "start": { + "line": 6, + "column": 19 + }, + "end": { + "line": 6, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 239, + "end": 240, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 241, + "end": 245, + "loc": { + "start": { + "line": 6, + "column": 24 + }, + "end": { + "line": 6, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./min.js", + "start": 246, + "end": 256, + "loc": { + "start": { + "line": 6, + "column": 29 + }, + "end": { + "line": 6, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 256, + "end": 257, + "loc": { + "start": { + "line": 6, + "column": 39 + }, + "end": { + "line": 6, + "column": 40 + } + } + }, + { + "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": 258, + "end": 264, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 265, + "end": 266, + "loc": { + "start": { + "line": 7, + "column": 7 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 266, + "end": 273, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 274, + "end": 276, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reduce", + "start": 277, + "end": 283, + "loc": { + "start": { + "line": 7, + "column": 19 + }, + "end": { + "line": 7, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 283, + "end": 284, + "loc": { + "start": { + "line": 7, + "column": 25 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 285, + "end": 289, + "loc": { + "start": { + "line": 7, + "column": 27 + }, + "end": { + "line": 7, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./reduce.js", + "start": 290, + "end": 303, + "loc": { + "start": { + "line": 7, + "column": 32 + }, + "end": { + "line": 7, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 303, + "end": 304, + "loc": { + "start": { + "line": 7, + "column": 45 + }, + "end": { + "line": 7, + "column": 46 + } + } + }, + { + "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": 305, + "end": 311, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 312, + "end": 313, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 8 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 313, + "end": 320, + "loc": { + "start": { + "line": 8, + "column": 8 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "as", + "start": 321, + "end": 323, + "loc": { + "start": { + "line": 8, + "column": 16 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sum", + "start": 324, + "end": 327, + "loc": { + "start": { + "line": 8, + "column": 19 + }, + "end": { + "line": 8, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 327, + "end": 328, + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 329, + "end": 333, + "loc": { + "start": { + "line": 8, + "column": 24 + }, + "end": { + "line": 8, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./sum.js", + "start": 334, + "end": 344, + "loc": { + "start": { + "line": 8, + "column": 29 + }, + "end": { + "line": 8, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 344, + "end": 345, + "loc": { + "start": { + "line": 8, + "column": 39 + }, + "end": { + "line": 8, + "column": 40 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 346, + "end": 346, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/max.js.json b/ast/source/max.js.json new file mode 100644 index 0000000..2d43ec7 --- /dev/null +++ b/ast/source/max.js.json @@ -0,0 +1,4035 @@ +{ + "type": "File", + "start": 0, + "end": 398, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 398, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 131, + "end": 376, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 26, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 137, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "max" + }, + "name": "max", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 143, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 144, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 165, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 168, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 172, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 177, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 180, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 184, + "end": 201, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 191, + "end": 200, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 207, + "end": 227, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 211, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 211, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 13 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 222, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 222, + "end": 223, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 15, + "column": 18 + }, + "end": { + "line": 15, + "column": 19 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 230, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 235, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 237, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 240, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 240, + "end": 241, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 244, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 247, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 252, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 256, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 262, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 262, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 274, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 283, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 287, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 287, + "end": 315, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 287, + "end": 294, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 295, + "end": 304, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 306, + "end": 314, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 33 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + } + ] + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 318, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 321, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 326, + "end": 347, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 326, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 11 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "right": { + "type": "Identifier", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 357, + "end": 373, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 17 + } + }, + "argument": { + "type": "Identifier", + "start": 364, + "end": 372, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 16 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 378, + "end": 397, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 393, + "end": 396, + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 28, + "column": 18 + }, + "identifierName": "max" + }, + "name": "max" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 378, + "end": 397, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 19 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 131, + "end": 376, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 26, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 137, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "max" + }, + "name": "max", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 143, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "max" + }, + "name": "max", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 144, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 165, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 168, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 172, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 177, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 180, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 184, + "end": 201, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 191, + "end": 200, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 207, + "end": 227, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 211, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 211, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 13 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 222, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 222, + "end": 223, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 15, + "column": 18 + }, + "end": { + "line": 15, + "column": 19 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 230, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 235, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 237, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 240, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 240, + "end": 241, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 244, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 247, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 252, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 256, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 262, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 262, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 274, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 283, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 287, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 287, + "end": 315, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 287, + "end": 294, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 295, + "end": 304, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 306, + "end": 314, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 33 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + } + ] + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 318, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 321, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 326, + "end": 347, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 326, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 11 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + }, + "right": { + "type": "Identifier", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 357, + "end": 373, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 17 + } + }, + "argument": { + "type": "Identifier", + "start": 364, + "end": 372, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 16 + }, + "identifierName": "maxSoFar" + }, + "name": "maxSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Max.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n ", + "start": 0, + "end": 130, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Max.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n ", + "start": 0, + "end": 130, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Max.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n ", + "start": 0, + "end": 130, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 131, + "end": 136, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "max", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 143, + "end": 144, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 144, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 151, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 154, + "end": 155, + "loc": { + "start": { + "line": 10, + "column": 23 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 157, + "end": 158, + "loc": { + "start": { + "line": 10, + "column": 26 + }, + "end": { + "line": 10, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 160, + "end": 161, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 162, + "end": 164, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 10, + "column": 35 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 168, + "end": 170, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 171, + "end": 172, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 174, + "end": 176, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 177, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 178, + "end": 179, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 180, + "end": 181, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 184, + "end": 190, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 191, + "end": 200, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 200, + "end": 201, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 203, + "end": 204, + "loc": { + "start": { + "line": 13, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + } + }, + { + "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": 207, + "end": 210, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxSoFar", + "start": 211, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 220, + "end": 221, + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 222, + "end": 223, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 17 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 223, + "end": 224, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 15, + "column": 18 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 225, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 226, + "end": 227, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 230, + "end": 233, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 17, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 6 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 235, + "end": 237, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 237, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 238, + "end": 239, + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "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": "i", + "start": 240, + "end": 241, + "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": 242, + "end": 243, + "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": "j", + "start": 244, + "end": 245, + "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": 245, + "end": 246, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 247, + "end": 249, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 250, + "end": 251, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 252, + "end": 253, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "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": 256, + "end": 261, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 262, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 272, + "end": 273, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 275, + "end": 276, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 283, + "end": 285, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 286, + "end": 287, + "loc": { + "start": { + "line": 20, + "column": 5 + }, + "end": { + "line": 20, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 287, + "end": 294, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 294, + "end": 295, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 295, + "end": 304, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 304, + "end": 305, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxSoFar", + "start": 306, + "end": 314, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 314, + "end": 315, + "loc": { + "start": { + "line": 20, + "column": 33 + }, + "end": { + "line": 20, + "column": 34 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 316, + "end": 317, + "loc": { + "start": { + "line": 20, + "column": 35 + }, + "end": { + "line": 20, + "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": 318, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 319, + "end": 320, + "loc": { + "start": { + "line": 20, + "column": 38 + }, + "end": { + "line": 20, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 321, + "end": 322, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxSoFar", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 335, + "end": 336, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 346, + "end": 347, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 350, + "end": 351, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 353, + "end": 354, + "loc": { + "start": { + "line": 23, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + } + }, + { + "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": 357, + "end": 363, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxSoFar", + "start": 364, + "end": 372, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 372, + "end": 373, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 374, + "end": 375, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 375, + "end": 376, + "loc": { + "start": { + "line": 26, + "column": 1 + }, + "end": { + "line": 26, + "column": 2 + } + } + }, + { + "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": 378, + "end": 384, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 385, + "end": 392, + "loc": { + "start": { + "line": 28, + "column": 7 + }, + "end": { + "line": 28, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "max", + "start": 393, + "end": 396, + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 396, + "end": 397, + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 19 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 398, + "end": 398, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/min.js.json b/ast/source/min.js.json new file mode 100644 index 0000000..1b9f138 --- /dev/null +++ b/ast/source/min.js.json @@ -0,0 +1,4035 @@ +{ + "type": "File", + "start": 0, + "end": 398, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 398, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 131, + "end": 376, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 26, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 137, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "min" + }, + "name": "min", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 143, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 144, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 165, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 168, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 172, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 177, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 180, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 184, + "end": 201, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 191, + "end": 200, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 207, + "end": 227, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 211, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 211, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 13 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 222, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 222, + "end": 223, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 15, + "column": 18 + }, + "end": { + "line": 15, + "column": 19 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 230, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 235, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 237, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 240, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 240, + "end": 241, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 244, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 247, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 252, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 256, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 262, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 262, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 274, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 283, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 287, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 287, + "end": 315, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 287, + "end": 294, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 295, + "end": 304, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 306, + "end": 314, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 33 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + } + ] + }, + "operator": "<", + "right": { + "type": "NumericLiteral", + "start": 318, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 321, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 326, + "end": 347, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 326, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 11 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "right": { + "type": "Identifier", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 357, + "end": 373, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 17 + } + }, + "argument": { + "type": "Identifier", + "start": 364, + "end": 372, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 16 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 378, + "end": 397, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 393, + "end": 396, + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 28, + "column": 18 + }, + "identifierName": "min" + }, + "name": "min" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 378, + "end": 397, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 19 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 131, + "end": 376, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 26, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 137, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "min" + }, + "name": "min", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 143, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "min" + }, + "name": "min", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 144, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + { + "type": "Identifier", + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 23 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + }, + "identifierName": "j" + }, + "name": "j" + } + ], + "body": { + "type": "BlockStatement", + "start": 165, + "end": 375, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 168, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 172, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 177, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 180, + "end": 204, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 184, + "end": 201, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 19 + } + }, + "argument": { + "type": "Identifier", + "start": 191, + "end": 200, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + }, + "identifierName": "undefined" + }, + "name": "undefined" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 207, + "end": 227, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 211, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 211, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 13 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "init": { + "type": "MemberExpression", + "start": 222, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 222, + "end": 223, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 17 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 15, + "column": 18 + }, + "end": { + "line": 15, + "column": 19 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 230, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 235, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 237, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 240, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 240, + "end": 241, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 244, + "end": 245, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 247, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 252, + "end": 354, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 256, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 25 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 262, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "id": { + "type": "Identifier", + "start": 262, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + "init": { + "type": "MemberExpression", + "start": 274, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 283, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "test": { + "type": "BinaryExpression", + "start": 287, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "left": { + "type": "CallExpression", + "start": 287, + "end": 315, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 34 + } + }, + "callee": { + "type": "Identifier", + "start": 287, + "end": 294, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 13 + }, + "identifierName": "compare" + }, + "name": "compare" + }, + "arguments": [ + { + "type": "Identifier", + "start": 295, + "end": 304, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + }, + { + "type": "Identifier", + "start": 306, + "end": 314, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 33 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + } + ] + }, + "operator": "<", + "right": { + "type": "NumericLiteral", + "start": 318, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 38 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 321, + "end": 351, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 326, + "end": 347, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 326, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 11 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + }, + "right": { + "type": "Identifier", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + }, + "identifierName": "candidate" + }, + "name": "candidate" + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 357, + "end": 373, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 17 + } + }, + "argument": { + "type": "Identifier", + "start": 364, + "end": 372, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 16 + }, + "identifierName": "minSoFar" + }, + "name": "minSoFar" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Min.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n ", + "start": 0, + "end": 130, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Min.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n ", + "start": 0, + "end": 130, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Min.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n ", + "start": 0, + "end": 130, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 131, + "end": 136, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "min", + "start": 137, + "end": 140, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 143, + "end": 144, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 144, + "end": 151, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 151, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 154, + "end": 155, + "loc": { + "start": { + "line": 10, + "column": 23 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 157, + "end": 158, + "loc": { + "start": { + "line": 10, + "column": 26 + }, + "end": { + "line": 10, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 160, + "end": 161, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 162, + "end": 164, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 165, + "end": 166, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 10, + "column": 35 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 168, + "end": 170, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 171, + "end": 172, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 174, + "end": 176, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 177, + "end": 178, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 178, + "end": 179, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 180, + "end": 181, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 184, + "end": 190, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "undefined", + "start": 191, + "end": 200, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 200, + "end": 201, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 203, + "end": 204, + "loc": { + "start": { + "line": 13, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + } + }, + { + "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": 207, + "end": 210, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minSoFar", + "start": 211, + "end": 219, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 220, + "end": 221, + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 222, + "end": 223, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 17 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 223, + "end": 224, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 15, + "column": 18 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 225, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 226, + "end": 227, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 21 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 230, + "end": 233, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 17, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 6 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 235, + "end": 237, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 237, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 238, + "end": 239, + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "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": "i", + "start": 240, + "end": 241, + "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": 242, + "end": 243, + "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": "j", + "start": 244, + "end": 245, + "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": 245, + "end": 246, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 247, + "end": 249, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 250, + "end": 251, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 252, + "end": 253, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "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": 256, + "end": 261, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 262, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 272, + "end": 273, + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 275, + "end": 276, + "loc": { + "start": { + "line": 18, + "column": 21 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 18, + "column": 24 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 283, + "end": 285, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 286, + "end": 287, + "loc": { + "start": { + "line": 20, + "column": 5 + }, + "end": { + "line": 20, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compare", + "start": 287, + "end": 294, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 294, + "end": 295, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 295, + "end": 304, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 304, + "end": 305, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minSoFar", + "start": 306, + "end": 314, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 314, + "end": 315, + "loc": { + "start": { + "line": 20, + "column": 33 + }, + "end": { + "line": 20, + "column": 34 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 316, + "end": 317, + "loc": { + "start": { + "line": 20, + "column": 35 + }, + "end": { + "line": 20, + "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": 318, + "end": 319, + "loc": { + "start": { + "line": 20, + "column": 37 + }, + "end": { + "line": 20, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 319, + "end": 320, + "loc": { + "start": { + "line": 20, + "column": 38 + }, + "end": { + "line": 20, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 321, + "end": 322, + "loc": { + "start": { + "line": 20, + "column": 40 + }, + "end": { + "line": 20, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minSoFar", + "start": 326, + "end": 334, + "loc": { + "start": { + "line": 21, + "column": 3 + }, + "end": { + "line": 21, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 335, + "end": 336, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "candidate", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 346, + "end": 347, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 350, + "end": 351, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 353, + "end": 354, + "loc": { + "start": { + "line": 23, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + } + }, + { + "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": 357, + "end": 363, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minSoFar", + "start": 364, + "end": 372, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 16 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 372, + "end": 373, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 374, + "end": 375, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 375, + "end": 376, + "loc": { + "start": { + "line": 26, + "column": 1 + }, + "end": { + "line": 26, + "column": 2 + } + } + }, + { + "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": 378, + "end": 384, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 385, + "end": 392, + "loc": { + "start": { + "line": 28, + "column": 7 + }, + "end": { + "line": 28, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "min", + "start": 393, + "end": 396, + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 28, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 396, + "end": 397, + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 19 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 398, + "end": 398, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/reduce.js.json b/ast/source/reduce.js.json new file mode 100644 index 0000000..db5b978 --- /dev/null +++ b/ast/source/reduce.js.json @@ -0,0 +1,2937 @@ +{ + "type": "File", + "start": 0, + "end": 604, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 604, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 385, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 26, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 391, + "end": 578, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 391, + "end": 397, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 12 + }, + "identifierName": "reduce" + }, + "name": "reduce", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 400, + "end": 578, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 401, + "end": 412, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 27 + }, + "identifierName": "accumulator" + }, + "name": "accumulator" + }, + { + "type": "Identifier", + "start": 414, + "end": 415, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 30 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 417, + "end": 418, + "loc": { + "start": { + "line": 16, + "column": 32 + }, + "end": { + "line": 16, + "column": 33 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 420, + "end": 421, + "loc": { + "start": { + "line": 16, + "column": 35 + }, + "end": { + "line": 16, + "column": 36 + }, + "identifierName": "j" + }, + "name": "j" + }, + { + "type": "Identifier", + "start": 423, + "end": 434, + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 16, + "column": 49 + }, + "identifierName": "initializer" + }, + "name": "initializer" + } + ], + "body": { + "type": "BlockStatement", + "start": 439, + "end": 578, + "loc": { + "start": { + "line": 16, + "column": 54 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 442, + "end": 480, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 446, + "end": 452, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 446, + "end": 447, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 451, + "end": 452, + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 454, + "end": 480, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 458, + "end": 477, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "argument": { + "type": "Identifier", + "start": 465, + "end": 476, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 20 + }, + "identifierName": "initializer" + }, + "name": "initializer" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ForStatement", + "start": 483, + "end": 554, + "loc": { + "start": { + "line": 21, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "init": null, + "test": { + "type": "BinaryExpression", + "start": 490, + "end": 495, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 13 + } + }, + "left": { + "type": "Identifier", + "start": 490, + "end": 491, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 494, + "end": 495, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 497, + "end": 500, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 499, + "end": 500, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 502, + "end": 554, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 506, + "end": 551, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 506, + "end": 550, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 506, + "end": 517, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 13 + }, + "identifierName": "initializer" + }, + "name": "initializer" + }, + "right": { + "type": "CallExpression", + "start": 520, + "end": 550, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 520, + "end": 531, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 27 + }, + "identifierName": "accumulator" + }, + "name": "accumulator" + }, + "arguments": [ + { + "type": "Identifier", + "start": 532, + "end": 543, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 39 + }, + "identifierName": "initializer" + }, + "name": "initializer" + }, + { + "type": "MemberExpression", + "start": 545, + "end": 549, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 22, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 545, + "end": 546, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 22, + "column": 42 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 547, + "end": 548, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 44 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + ] + } + } + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 557, + "end": 576, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 564, + "end": 575, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 19 + }, + "identifierName": "initializer" + }, + "name": "initializer" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "declaration": { + "type": "Identifier", + "start": 596, + "end": 602, + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 28, + "column": 21 + }, + "identifierName": "reduce" + }, + "name": "reduce" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 22 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 385, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 26, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 391, + "end": 578, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 391, + "end": 397, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 12 + }, + "identifierName": "reduce" + }, + "name": "reduce", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 400, + "end": 578, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 391, + "end": 397, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 12 + }, + "identifierName": "reduce" + }, + "name": "reduce", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 401, + "end": 412, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 27 + }, + "identifierName": "accumulator" + }, + "name": "accumulator" + }, + { + "type": "Identifier", + "start": 414, + "end": 415, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 30 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 417, + "end": 418, + "loc": { + "start": { + "line": 16, + "column": 32 + }, + "end": { + "line": 16, + "column": 33 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 420, + "end": 421, + "loc": { + "start": { + "line": 16, + "column": 35 + }, + "end": { + "line": 16, + "column": 36 + }, + "identifierName": "j" + }, + "name": "j" + }, + { + "type": "Identifier", + "start": 423, + "end": 434, + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 16, + "column": 49 + }, + "identifierName": "initializer" + }, + "name": "initializer" + } + ], + "body": { + "type": "BlockStatement", + "start": 439, + "end": 578, + "loc": { + "start": { + "line": 16, + "column": 54 + }, + "end": { + "line": 26, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 442, + "end": 480, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 446, + "end": 452, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 446, + "end": 447, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 451, + "end": 452, + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 454, + "end": 480, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 458, + "end": 477, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 21 + } + }, + "argument": { + "type": "Identifier", + "start": 465, + "end": 476, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 20 + }, + "identifierName": "initializer" + }, + "name": "initializer" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ForStatement", + "start": 483, + "end": 554, + "loc": { + "start": { + "line": 21, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "init": null, + "test": { + "type": "BinaryExpression", + "start": 490, + "end": 495, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 13 + } + }, + "left": { + "type": "Identifier", + "start": 490, + "end": 491, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 494, + "end": 495, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 497, + "end": 500, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 18 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 499, + "end": 500, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 18 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 502, + "end": 554, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 23, + "column": 2 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 506, + "end": 551, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 506, + "end": 550, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 506, + "end": 517, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 13 + }, + "identifierName": "initializer" + }, + "name": "initializer" + }, + "right": { + "type": "CallExpression", + "start": 520, + "end": 550, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "callee": { + "type": "Identifier", + "start": 520, + "end": 531, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 27 + }, + "identifierName": "accumulator" + }, + "name": "accumulator" + }, + "arguments": [ + { + "type": "Identifier", + "start": 532, + "end": 543, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 39 + }, + "identifierName": "initializer" + }, + "name": "initializer" + }, + { + "type": "MemberExpression", + "start": 545, + "end": 549, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 22, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 545, + "end": 546, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 22, + "column": 42 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 547, + "end": 548, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 44 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + ] + } + } + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 557, + "end": 576, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 564, + "end": 575, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 19 + }, + "identifierName": "initializer" + }, + "name": "initializer" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Reduce.\n *\n * Applies the accumulator function iteratively on the\n * last return value of the accumulator and the current\n * value in the array. The initial last return value of the accumulator is the\n * initializer parameter.\n *\n * @param {Function} accumulator\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {any} initializer\n * @return {any}\n ", + "start": 0, + "end": 384, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Reduce.\n *\n * Applies the accumulator function iteratively on the\n * last return value of the accumulator and the current\n * value in the array. The initial last return value of the accumulator is the\n * initializer parameter.\n *\n * @param {Function} accumulator\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {any} initializer\n * @return {any}\n ", + "start": 0, + "end": 384, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Reduce.\n *\n * Applies the accumulator function iteratively on the\n * last return value of the accumulator and the current\n * value in the array. The initial last return value of the accumulator is the\n * initializer parameter.\n *\n * @param {Function} accumulator\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {any} initializer\n * @return {any}\n ", + "start": 0, + "end": 384, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 385, + "end": 390, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reduce", + "start": 391, + "end": 397, + "loc": { + "start": { + "line": 16, + "column": 6 + }, + "end": { + "line": 16, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 398, + "end": 399, + "loc": { + "start": { + "line": 16, + "column": 13 + }, + "end": { + "line": 16, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 400, + "end": 401, + "loc": { + "start": { + "line": 16, + "column": 15 + }, + "end": { + "line": 16, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "accumulator", + "start": 401, + "end": 412, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "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": 412, + "end": 413, + "loc": { + "start": { + "line": 16, + "column": 27 + }, + "end": { + "line": 16, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 414, + "end": 415, + "loc": { + "start": { + "line": 16, + "column": 29 + }, + "end": { + "line": 16, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 415, + "end": 416, + "loc": { + "start": { + "line": 16, + "column": 30 + }, + "end": { + "line": 16, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 417, + "end": 418, + "loc": { + "start": { + "line": 16, + "column": 32 + }, + "end": { + "line": 16, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 418, + "end": 419, + "loc": { + "start": { + "line": 16, + "column": 33 + }, + "end": { + "line": 16, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 420, + "end": 421, + "loc": { + "start": { + "line": 16, + "column": 35 + }, + "end": { + "line": 16, + "column": 36 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 421, + "end": 422, + "loc": { + "start": { + "line": 16, + "column": 36 + }, + "end": { + "line": 16, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initializer", + "start": 423, + "end": 434, + "loc": { + "start": { + "line": 16, + "column": 38 + }, + "end": { + "line": 16, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 434, + "end": 435, + "loc": { + "start": { + "line": 16, + "column": 49 + }, + "end": { + "line": 16, + "column": 50 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 436, + "end": 438, + "loc": { + "start": { + "line": 16, + "column": 51 + }, + "end": { + "line": 16, + "column": 53 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 439, + "end": 440, + "loc": { + "start": { + "line": 16, + "column": 54 + }, + "end": { + "line": 16, + "column": 55 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 442, + "end": 444, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 17, + "column": 3 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 445, + "end": 446, + "loc": { + "start": { + "line": 17, + "column": 4 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 446, + "end": 447, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 6 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 448, + "end": 450, + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 451, + "end": 452, + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 452, + "end": 453, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 454, + "end": 455, + "loc": { + "start": { + "line": 17, + "column": 13 + }, + "end": { + "line": 17, + "column": 14 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 458, + "end": 464, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initializer", + "start": 465, + "end": 476, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 476, + "end": 477, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 479, + "end": 480, + "loc": { + "start": { + "line": 19, + "column": 1 + }, + "end": { + "line": 19, + "column": 2 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 483, + "end": 486, + "loc": { + "start": { + "line": 21, + "column": 1 + }, + "end": { + "line": 21, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 487, + "end": 488, + "loc": { + "start": { + "line": 21, + "column": 5 + }, + "end": { + "line": 21, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 488, + "end": 489, + "loc": { + "start": { + "line": 21, + "column": 6 + }, + "end": { + "line": 21, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 490, + "end": 491, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 9 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<", + "start": 492, + "end": 493, + "loc": { + "start": { + "line": 21, + "column": 10 + }, + "end": { + "line": 21, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 494, + "end": 495, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 495, + "end": 496, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 497, + "end": 499, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 499, + "end": 500, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 500, + "end": 501, + "loc": { + "start": { + "line": 21, + "column": 18 + }, + "end": { + "line": 21, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 502, + "end": 503, + "loc": { + "start": { + "line": 21, + "column": 20 + }, + "end": { + "line": 21, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initializer", + "start": 506, + "end": 517, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 518, + "end": 519, + "loc": { + "start": { + "line": 22, + "column": 14 + }, + "end": { + "line": 22, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "accumulator", + "start": 520, + "end": 531, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 531, + "end": 532, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initializer", + "start": 532, + "end": 543, + "loc": { + "start": { + "line": 22, + "column": 28 + }, + "end": { + "line": 22, + "column": 39 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 543, + "end": 544, + "loc": { + "start": { + "line": 22, + "column": 39 + }, + "end": { + "line": 22, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 545, + "end": 546, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 22, + "column": 42 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 546, + "end": 547, + "loc": { + "start": { + "line": 22, + "column": 42 + }, + "end": { + "line": 22, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 547, + "end": 548, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 44 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 548, + "end": 549, + "loc": { + "start": { + "line": 22, + "column": 44 + }, + "end": { + "line": 22, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 549, + "end": 550, + "loc": { + "start": { + "line": 22, + "column": 45 + }, + "end": { + "line": 22, + "column": 46 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 550, + "end": 551, + "loc": { + "start": { + "line": 22, + "column": 46 + }, + "end": { + "line": 22, + "column": 47 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 553, + "end": 554, + "loc": { + "start": { + "line": 23, + "column": 1 + }, + "end": { + "line": 23, + "column": 2 + } + } + }, + { + "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": 557, + "end": 563, + "loc": { + "start": { + "line": 25, + "column": 1 + }, + "end": { + "line": 25, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initializer", + "start": 564, + "end": 575, + "loc": { + "start": { + "line": 25, + "column": 8 + }, + "end": { + "line": 25, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 575, + "end": 576, + "loc": { + "start": { + "line": 25, + "column": 19 + }, + "end": { + "line": 25, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 577, + "end": 578, + "loc": { + "start": { + "line": 26, + "column": 0 + }, + "end": { + "line": 26, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 578, + "end": 579, + "loc": { + "start": { + "line": 26, + "column": 1 + }, + "end": { + "line": 26, + "column": 2 + } + } + }, + { + "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": 581, + "end": 587, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 588, + "end": 595, + "loc": { + "start": { + "line": 28, + "column": 7 + }, + "end": { + "line": 28, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reduce", + "start": 596, + "end": 602, + "loc": { + "start": { + "line": 28, + "column": 15 + }, + "end": { + "line": 28, + "column": 21 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 602, + "end": 603, + "loc": { + "start": { + "line": 28, + "column": 21 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 604, + "end": 604, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/ast/source/sum.js.json b/ast/source/sum.js.json new file mode 100644 index 0000000..8a8687c --- /dev/null +++ b/ast/source/sum.js.json @@ -0,0 +1,3280 @@ +{ + "type": "File", + "start": 0, + "end": 319, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 25, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 319, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 25, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 143, + "end": 297, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 22, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 149, + "end": 296, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 149, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "sum" + }, + "name": "sum", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 155, + "end": 296, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 17 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 20 + }, + "identifierName": "j" + }, + "name": "j" + }, + { + "type": "AssignmentPattern", + "start": 165, + "end": 173, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "left": { + "type": "Identifier", + "start": 165, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "zero" + }, + "name": "zero" + }, + "right": { + "type": "NumericLiteral", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "body": { + "type": "BlockStatement", + "start": 178, + "end": 296, + "loc": { + "start": { + "line": 10, + "column": 35 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 181, + "end": 212, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 185, + "end": 191, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 185, + "end": 186, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 190, + "end": 191, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 193, + "end": 212, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 197, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "argument": { + "type": "Identifier", + "start": 204, + "end": 208, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 13 + }, + "identifierName": "zero" + }, + "name": "zero" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 215, + "end": 232, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 18 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 219, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "id": { + "type": "Identifier", + "start": 219, + "end": 224, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 10 + }, + "identifierName": "total" + }, + "name": "total" + }, + "init": { + "type": "MemberExpression", + "start": 227, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 227, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 229, + "end": 230, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 16 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 235, + "end": 278, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 240, + "end": 243, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 242, + "end": 243, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 245, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 252, + "end": 255, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 254, + "end": 255, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 257, + "end": 278, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 261, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 261, + "end": 274, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 15 + } + }, + "operator": "+=", + "left": { + "type": "Identifier", + "start": 261, + "end": 266, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 7 + }, + "identifierName": "total" + }, + "name": "total" + }, + "right": { + "type": "MemberExpression", + "start": 270, + "end": 274, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 270, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 272, + "end": 273, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 281, + "end": 294, + "loc": { + "start": { + "line": 21, + "column": 1 + }, + "end": { + "line": 21, + "column": 14 + } + }, + "argument": { + "type": "Identifier", + "start": 288, + "end": 293, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "total" + }, + "name": "total" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 299, + "end": 318, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 314, + "end": 317, + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 18 + }, + "identifierName": "sum" + }, + "name": "sum" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 299, + "end": 318, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 19 + } + }, + "declaration": { + "type": "VariableDeclaration", + "start": 143, + "end": 297, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 22, + "column": 2 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 149, + "end": 296, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 149, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "sum" + }, + "name": "sum", + "leadingComments": null + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 155, + "end": 296, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 149, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + }, + "identifierName": "sum" + }, + "name": "sum", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + { + "type": "Identifier", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 17 + }, + "identifierName": "i" + }, + "name": "i" + }, + { + "type": "Identifier", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 20 + }, + "identifierName": "j" + }, + "name": "j" + }, + { + "type": "AssignmentPattern", + "start": 165, + "end": 173, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "left": { + "type": "Identifier", + "start": 165, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 26 + }, + "identifierName": "zero" + }, + "name": "zero" + }, + "right": { + "type": "NumericLiteral", + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "body": { + "type": "BlockStatement", + "start": 178, + "end": 296, + "loc": { + "start": { + "line": 10, + "column": 35 + }, + "end": { + "line": 22, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 181, + "end": 212, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "test": { + "type": "BinaryExpression", + "start": 185, + "end": 191, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "left": { + "type": "Identifier", + "start": 185, + "end": 186, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": ">=", + "right": { + "type": "Identifier", + "start": 190, + "end": 191, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 193, + "end": 212, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 13, + "column": 2 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 197, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 14 + } + }, + "argument": { + "type": "Identifier", + "start": 204, + "end": 208, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 13 + }, + "identifierName": "zero" + }, + "name": "zero" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 215, + "end": 232, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 18 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 219, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "id": { + "type": "Identifier", + "start": 219, + "end": 224, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 10 + }, + "identifierName": "total" + }, + "name": "total" + }, + "init": { + "type": "MemberExpression", + "start": 227, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 227, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 14 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 229, + "end": 230, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 16 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "ForStatement", + "start": 235, + "end": 278, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "init": { + "type": "UpdateExpression", + "start": 240, + "end": 243, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 9 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 242, + "end": 243, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "test": { + "type": "BinaryExpression", + "start": 245, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 16 + } + }, + "left": { + "type": "Identifier", + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 17, + "column": 11 + }, + "end": { + "line": 17, + "column": 12 + }, + "identifierName": "i" + }, + "name": "i" + }, + "operator": "<", + "right": { + "type": "Identifier", + "start": 249, + "end": 250, + "loc": { + "start": { + "line": 17, + "column": 15 + }, + "end": { + "line": 17, + "column": 16 + }, + "identifierName": "j" + }, + "name": "j" + } + }, + "update": { + "type": "UpdateExpression", + "start": 252, + "end": 255, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 21 + } + }, + "operator": "++", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 254, + "end": 255, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + }, + "identifierName": "i" + }, + "name": "i" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "body": { + "type": "BlockStatement", + "start": 257, + "end": 278, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 19, + "column": 2 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 261, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 16 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 261, + "end": 274, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 15 + } + }, + "operator": "+=", + "left": { + "type": "Identifier", + "start": 261, + "end": 266, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 7 + }, + "identifierName": "total" + }, + "name": "total" + }, + "right": { + "type": "MemberExpression", + "start": 270, + "end": 274, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 270, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + }, + "identifierName": "a" + }, + "name": "a" + }, + "property": { + "type": "Identifier", + "start": 272, + "end": 273, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + }, + "identifierName": "i" + }, + "name": "i" + }, + "computed": true + } + } + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 281, + "end": 294, + "loc": { + "start": { + "line": 21, + "column": 1 + }, + "end": { + "line": 21, + "column": 14 + } + }, + "argument": { + "type": "Identifier", + "start": 288, + "end": 293, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 13 + }, + "identifierName": "total" + }, + "name": "total" + } + } + ], + "directives": [] + } + }, + "leadingComments": null + } + ], + "kind": "const", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Sum.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {number|bigint} zero\n * @return {number|bigint}\n ", + "start": 0, + "end": 142, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Sum.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {number|bigint} zero\n * @return {number|bigint}\n ", + "start": 0, + "end": 142, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Sum.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {number|bigint} zero\n * @return {number|bigint}\n ", + "start": 0, + "end": 142, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 143, + "end": 148, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sum", + "start": 149, + "end": 152, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 153, + "end": 154, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 155, + "end": 156, + "loc": { + "start": { + "line": 10, + "column": 12 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 156, + "end": 157, + "loc": { + "start": { + "line": 10, + "column": 13 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 157, + "end": 158, + "loc": { + "start": { + "line": 10, + "column": 14 + }, + "end": { + "line": 10, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 159, + "end": 160, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 160, + "end": 161, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 162, + "end": 163, + "loc": { + "start": { + "line": 10, + "column": 19 + }, + "end": { + "line": 10, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 163, + "end": 164, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "zero", + "start": 165, + "end": 169, + "loc": { + "start": { + "line": 10, + "column": 22 + }, + "end": { + "line": 10, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 170, + "end": 171, + "loc": { + "start": { + "line": 10, + "column": 27 + }, + "end": { + "line": 10, + "column": 28 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 172, + "end": 173, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 173, + "end": 174, + "loc": { + "start": { + "line": 10, + "column": 30 + }, + "end": { + "line": 10, + "column": 31 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 175, + "end": 177, + "loc": { + "start": { + "line": 10, + "column": 32 + }, + "end": { + "line": 10, + "column": 34 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 178, + "end": 179, + "loc": { + "start": { + "line": 10, + "column": 35 + }, + "end": { + "line": 10, + "column": 36 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 181, + "end": 183, + "loc": { + "start": { + "line": 11, + "column": 1 + }, + "end": { + "line": 11, + "column": 3 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 184, + "end": 185, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 185, + "end": 186, + "loc": { + "start": { + "line": 11, + "column": 5 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 187, + "end": 189, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "j", + "start": 190, + "end": 191, + "loc": { + "start": { + "line": 11, + "column": 10 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 191, + "end": 192, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 193, + "end": 194, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 197, + "end": 203, + "loc": { + "start": { + "line": 12, + "column": 2 + }, + "end": { + "line": 12, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "zero", + "start": 204, + "end": 208, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 208, + "end": 209, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 211, + "end": 212, + "loc": { + "start": { + "line": 13, + "column": 1 + }, + "end": { + "line": 13, + "column": 2 + } + } + }, + { + "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": 215, + "end": 218, + "loc": { + "start": { + "line": 15, + "column": 1 + }, + "end": { + "line": 15, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "total", + "start": 219, + "end": 224, + "loc": { + "start": { + "line": 15, + "column": 5 + }, + "end": { + "line": 15, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 225, + "end": 226, + "loc": { + "start": { + "line": 15, + "column": 11 + }, + "end": { + "line": 15, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 227, + "end": 228, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 228, + "end": 229, + "loc": { + "start": { + "line": 15, + "column": 14 + }, + "end": { + "line": 15, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 229, + "end": 230, + "loc": { + "start": { + "line": 15, + "column": 15 + }, + "end": { + "line": 15, + "column": 16 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 230, + "end": 231, + "loc": { + "start": { + "line": 15, + "column": 16 + }, + "end": { + "line": 15, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 231, + "end": 232, + "loc": { + "start": { + "line": 15, + "column": 17 + }, + "end": { + "line": 15, + "column": 18 + } + } + }, + { + "type": { + "label": "for", + "keyword": "for", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": true, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "for", + "start": 235, + "end": 238, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 17, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 239, + "end": 240, + "loc": { + "start": { + "line": 17, + "column": 5 + }, + "end": { + "line": 17, + "column": 6 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 240, + "end": 242, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 242, + "end": 243, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 243, + "end": 244, + "loc": { + "start": { + "line": 17, + "column": 9 + }, + "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": "i", + "start": 245, + "end": 246, + "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": 247, + "end": 248, + "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": "j", + "start": 249, + "end": 250, + "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": 250, + "end": 251, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 252, + "end": 254, + "loc": { + "start": { + "line": 17, + "column": 18 + }, + "end": { + "line": 17, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 254, + "end": 255, + "loc": { + "start": { + "line": 17, + "column": 20 + }, + "end": { + "line": 17, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 255, + "end": 256, + "loc": { + "start": { + "line": 17, + "column": 21 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 257, + "end": 258, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "total", + "start": 261, + "end": 266, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 7 + } + } + }, + { + "type": { + "label": "_=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+=", + "start": 267, + "end": 269, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "a", + "start": 270, + "end": 271, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 271, + "end": 272, + "loc": { + "start": { + "line": 18, + "column": 12 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "i", + "start": 272, + "end": 273, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 273, + "end": 274, + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 19, + "column": 1 + }, + "end": { + "line": 19, + "column": 2 + } + } + }, + { + "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": 281, + "end": 287, + "loc": { + "start": { + "line": 21, + "column": 1 + }, + "end": { + "line": 21, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "total", + "start": 288, + "end": 293, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 13 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 293, + "end": 294, + "loc": { + "start": { + "line": 21, + "column": 13 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 295, + "end": 296, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 296, + "end": 297, + "loc": { + "start": { + "line": 22, + "column": 1 + }, + "end": { + "line": 22, + "column": 2 + } + } + }, + { + "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": 299, + "end": 305, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 306, + "end": 313, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "sum", + "start": 314, + "end": 317, + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 24, + "column": 18 + }, + "end": { + "line": 24, + "column": 19 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 319, + "end": 319, + "loc": { + "start": { + "line": 25, + "column": 0 + }, + "end": { + "line": 25, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/badge.svg b/badge.svg new file mode 100644 index 0000000..1117afa --- /dev/null +++ b/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/coverage.json b/coverage.json new file mode 100644 index 0000000..6b486c0 --- /dev/null +++ b/coverage.json @@ -0,0 +1,47 @@ +{ + "coverage": "100%", + "expectCount": 8, + "actualCount": 8, + "files": { + "src/all.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "src/any.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "src/argmax.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "src/argmin.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "src/max.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "src/min.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "src/reduce.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + }, + "src/sum.js": { + "expectCount": 1, + "actualCount": 1, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/css/github.css b/css/github.css new file mode 100644 index 0000000..db9ca23 --- /dev/null +++ b/css/github.css @@ -0,0 +1,83 @@ +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +.github-markdown hr { + border-right: 0; + border-bottom: 1px solid #e5e5e5; + border-left: 0; + border-top: 0; +} + +/** badge(.svg) does not have border */ +.github-markdown img:not([src*=".svg"]) { + max-width: 100%; + box-shadow: 1px 1px 1px rgba(0,0,0,0.5); +} diff --git a/css/identifiers.css b/css/identifiers.css new file mode 100644 index 0000000..52c8461 --- /dev/null +++ b/css/identifiers.css @@ -0,0 +1,37 @@ +.identifiers-wrap { + display: flex; + align-items: flex-start; +} + +.identifier-dir-tree { + background: #fff; + border: solid 1px #ddd; + border-radius: 0.25em; + top: 52px; + position: -webkit-sticky; + position: sticky; + max-height: calc(100vh - 155px); + overflow-y: scroll; + min-width: 200px; + margin-left: 1em; +} + +.identifier-dir-tree-header { + padding: 0.5em; + background-color: #fafafa; + border-bottom: solid 1px #ddd; +} + +.identifier-dir-tree-content { + padding: 0 0.5em 0; +} + +.identifier-dir-tree-content > div { + padding-top: 0.25em; + padding-bottom: 0.25em; +} + +.identifier-dir-tree-content a { + color: inherit; +} + diff --git a/css/manual.css b/css/manual.css new file mode 100644 index 0000000..138a07f --- /dev/null +++ b/css/manual.css @@ -0,0 +1,134 @@ +.github-markdown .manual-toc { + padding-left: 0; +} + +.manual-index .manual-cards { + display: flex; + flex-wrap: wrap; +} + +.manual-index .manual-card-wrap { + width: 280px; + padding: 10px 20px 10px 0; + box-sizing: border-box; +} + +.manual-index .manual-card-wrap > h1 { + margin: 0; + font-size: 1em; + font-weight: 600; + padding: 0.2em 0 0.2em 0.5em; + border-radius: 0.1em 0.1em 0 0; + border: none; +} + +.manual-index .manual-card-wrap > h1 span { + color: #555; +} + +.manual-index .manual-card { + height: 200px; + overflow: hidden; + border: solid 1px rgba(230, 230, 230, 0.84); + border-radius: 0 0 0.1em 0.1em; + padding: 8px; + position: relative; +} + +.manual-index .manual-card > div { + transform: scale(0.4); + transform-origin: 0 0; + width: 250%; +} + +.manual-index .manual-card > a { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(210, 210, 210, 0.1); +} + +.manual-index .manual-card > a:hover { + background: none; +} + +.manual-index .manual-badge { + margin: 0; +} + +.manual-index .manual-user-index { + margin-bottom: 1em; + border-bottom: solid 1px #ddd; +} + +.manual-root .navigation { + padding-left: 4px; + margin-top: 4px; +} + +.navigation .manual-toc-root > div { + padding-left: 0.25em; + padding-right: 0.75em; +} + +.github-markdown .manual-toc-title a { + color: inherit; +} + +.manual-breadcrumb-list { + font-size: 0.8em; + margin-bottom: 1em; +} + +.manual-toc-title a:hover { + color: #039BE5; +} + +.manual-toc li { + margin: 0.75em 0; + list-style-type: none; +} + +.navigation .manual-toc [class^="indent-h"] a { + color: #666; +} + +.navigation .manual-toc .indent-h1 a { + color: #555; + font-weight: 600; + display: block; +} + +.manual-toc .indent-h1 { + display: block; + margin: 0.4em 0 0 0.25em; + padding: 0.2em 0 0.2em 0.5em; + border-radius: 0.1em; +} + +.manual-root .navigation .manual-toc li:not(.indent-h1) { + margin-top: 0.5em; +} + +.manual-toc .indent-h2 { + display: none; + margin-left: 1.5em; +} +.manual-toc .indent-h3 { + display: none; + margin-left: 2.5em; +} +.manual-toc .indent-h4 { + display: none; + margin-left: 3.5em; +} +.manual-toc .indent-h5 { + display: none; + margin-left: 4.5em; +} + +.manual-nav li { + margin: 0.75em 0; +} diff --git a/css/prettify-tomorrow.css b/css/prettify-tomorrow.css new file mode 100644 index 0000000..b6f92a7 --- /dev/null +++ b/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/css/search.css b/css/search.css new file mode 100644 index 0000000..9940a54 --- /dev/null +++ b/css/search.css @@ -0,0 +1,84 @@ +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + diff --git a/css/source.css b/css/source.css new file mode 100644 index 0000000..3b9c92d --- /dev/null +++ b/css/source.css @@ -0,0 +1,55 @@ +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #fafafa; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..fe3b2d9 --- /dev/null +++ b/css/style.css @@ -0,0 +1,608 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); +@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,700); +@import url(./manual.css); +@import url(./source.css); +@import url(./test.css); +@import url(./identifiers.css); +@import url(./github.css); +@import url(./search.css); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Source Sans Pro', 'Roboto', sans-serif; + overflow: auto; + /*font-size: 14px;*/ + /*color: #4d4e53;*/ + /*color: rgba(0, 0, 0, .68);*/ + color: #555; + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + padding: 4px; + font-weight: 300; +} + +details { + cursor: pointer; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 1.5; +} + +code { + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0.2em 0.5em; + margin: 0; + font-size: 85%; + background-color: rgba(0,0,0,0.04); + border-radius: 3px; +} + +.code { + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 13px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + display: flex; + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: #fafafa; + top: 0; + border-bottom: solid 1px #ddd; +} +.layout-container > header > a{ + margin: 0 5px; + color: #444; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid #ddd; +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation li a { + color: #666; +} + +.navigation .nav-dir-path { + display: block; + margin-top: 0.7em; + margin-bottom: 0.25em; + font-weight: 600; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; + line-height: 1.2em; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +.summary span[class^="kind-"] { + margin-left: 0; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #fafafa; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "â–¶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "â–¼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; + background-color: #f0f0f0; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +footer img { + width: 24px; + vertical-align: middle; + padding-left: 4px; + position: relative; + top: -3px; + opacity: 0.6; +} + +pre.source-code { + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; + font-size: 12px; + background: #fff; + border: solid 1px #ddd; + line-height: 1.5; +} + +pre.raw-source-code > code > ol { + counter-reset:number; + list-style:none; + margin:0; + padding:0; + overflow: hidden; +} + +pre.raw-source-code > code > ol li:before { + counter-increment: number; + content: counter(number); + display: inline-block; + min-width: 3em; + color: #aaa; + text-align: right; + padding-right: 1em; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150) !important; +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +.inner-link-active { + /*background: rgb(255, 255, 150) !important;*/ + background: #039BE5 !important; + color: #fff !important; + padding-left: 0.1em !important; +} + +.inner-link-active a { + color: inherit; +} diff --git a/css/test.css b/css/test.css new file mode 100644 index 0000000..8ce1266 --- /dev/null +++ b/css/test.css @@ -0,0 +1,58 @@ +table.test-summary thead { + background: #fafafa; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-interface .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; + font-size: 0.8em; + padding-top: 0.25em; +} + +table.test-summary tr.test-interface .toggle.opened:before { + content: 'â–¼'; +} + +table.test-summary tr.test-interface .toggle.closed:before { + content: 'â–¶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} diff --git a/file/src/all.js.html b/file/src/all.js.html new file mode 100644 index 0000000..60a697a --- /dev/null +++ b/file/src/all.js.html @@ -0,0 +1,80 @@ + + + + + + src/all.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/all.js

+
/**
+ * All.
+ *
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @return {boolean}
+ */
+const all = (a, i, j) => {
+	for (; i < j; ++i) {
+		if (!a[i]) {
+			return false;
+		}
+	}
+
+	return true;
+};
+
+export default all;
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/any.js.html b/file/src/any.js.html new file mode 100644 index 0000000..c1208c5 --- /dev/null +++ b/file/src/any.js.html @@ -0,0 +1,80 @@ + + + + + + src/any.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/any.js

+
/**
+ * Any.
+ *
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @return {boolean}
+ */
+const any = (a, i, j) => {
+	for (; i < j; ++i) {
+		if (a[i]) {
+			return true;
+		}
+	}
+
+	return false;
+};
+
+export default any;
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/argmax.js.html b/file/src/argmax.js.html new file mode 100644 index 0000000..3a2754c --- /dev/null +++ b/file/src/argmax.js.html @@ -0,0 +1,91 @@ + + + + + + src/argmax.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/argmax.js

+
/**
+ * Argmax.
+ *
+ * @param {Function} compare
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @return {number}
+ */
+const argmax = (compare, a, i, j) => {
+	if (i >= j) {
+		return undefined;
+	}
+
+	let argmaxSoFar = i;
+	let maxSoFar = a[argmaxSoFar];
+
+	for (++i; i < j; ++i) {
+		const candidate = a[i];
+
+		if (compare(candidate, maxSoFar) > 0) {
+			argmaxSoFar = i;
+			maxSoFar = candidate;
+		}
+	}
+
+	return argmaxSoFar;
+};
+
+export default argmax;
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/argmin.js.html b/file/src/argmin.js.html new file mode 100644 index 0000000..4026c81 --- /dev/null +++ b/file/src/argmin.js.html @@ -0,0 +1,91 @@ + + + + + + src/argmin.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/argmin.js

+
/**
+ * Argmin.
+ *
+ * @param {Function} compare
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @return {number}
+ */
+const argmin = (compare, a, i, j) => {
+	if (i >= j) {
+		return undefined;
+	}
+
+	let argminSoFar = i;
+	let minSoFar = a[argminSoFar];
+
+	for (++i; i < j; ++i) {
+		const candidate = a[i];
+
+		if (compare(candidate, minSoFar) < 0) {
+			argminSoFar = i;
+			minSoFar = candidate;
+		}
+	}
+
+	return argminSoFar;
+};
+
+export default argmin;
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/index.js.html b/file/src/index.js.html new file mode 100644 index 0000000..f8d8a61 --- /dev/null +++ b/file/src/index.js.html @@ -0,0 +1,69 @@ + + + + + + src/index.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/index.js

+
export {default as all} from './all.js';
+export {default as any} from './any.js';
+export {default as argmax} from './argmax.js';
+export {default as argmin} from './argmin.js';
+export {default as max} from './max.js';
+export {default as min} from './min.js';
+export {default as reduce} from './reduce.js';
+export {default as sum} from './sum.js';
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/max.js.html b/file/src/max.js.html new file mode 100644 index 0000000..cd6ad7c --- /dev/null +++ b/file/src/max.js.html @@ -0,0 +1,89 @@ + + + + + + src/max.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/max.js

+
/**
+ * Max.
+ *
+ * @param {Function} compare
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @return {any}
+ */
+const max = (compare, a, i, j) => {
+	if (i >= j) {
+		return undefined;
+	}
+
+	let maxSoFar = a[i];
+
+	for (++i; i < j; ++i) {
+		const candidate = a[i];
+
+		if (compare(candidate, maxSoFar) > 0) {
+			maxSoFar = candidate;
+		}
+	}
+
+	return maxSoFar;
+};
+
+export default max;
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/min.js.html b/file/src/min.js.html new file mode 100644 index 0000000..8e0a5b8 --- /dev/null +++ b/file/src/min.js.html @@ -0,0 +1,89 @@ + + + + + + src/min.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/min.js

+
/**
+ * Min.
+ *
+ * @param {Function} compare
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @return {any}
+ */
+const min = (compare, a, i, j) => {
+	if (i >= j) {
+		return undefined;
+	}
+
+	let minSoFar = a[i];
+
+	for (++i; i < j; ++i) {
+		const candidate = a[i];
+
+		if (compare(candidate, minSoFar) < 0) {
+			minSoFar = candidate;
+		}
+	}
+
+	return minSoFar;
+};
+
+export default min;
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/reduce.js.html b/file/src/reduce.js.html new file mode 100644 index 0000000..0379552 --- /dev/null +++ b/file/src/reduce.js.html @@ -0,0 +1,89 @@ + + + + + + src/reduce.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/reduce.js

+
/**
+ * Reduce.
+ *
+ * Applies the accumulator function iteratively on the
+ * last return value of the accumulator and the current
+ * value in the array. The initial last return value of the accumulator is the
+ * initializer parameter.
+ *
+ * @param {Function} accumulator
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @param {any} initializer
+ * @return {any}
+ */
+const reduce = (accumulator, a, i, j, initializer) => {
+	if (i >= j) {
+		return initializer;
+	}
+
+	for (; i < j; ++i) {
+		initializer = accumulator(initializer, a[i]);
+	}
+
+	return initializer;
+};
+
+export default reduce;
+
+ +
+ + + + + + + + + + + + diff --git a/file/src/sum.js.html b/file/src/sum.js.html new file mode 100644 index 0000000..c396040 --- /dev/null +++ b/file/src/sum.js.html @@ -0,0 +1,85 @@ + + + + + + src/sum.js | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

src/sum.js

+
/**
+ * Sum.
+ *
+ * @param {ArrayLike} a
+ * @param {number} i
+ * @param {number} j
+ * @param {number|bigint} zero
+ * @return {number|bigint}
+ */
+const sum = (a, i, j, zero = 0) => {
+	if (i >= j) {
+		return zero;
+	}
+
+	let total = a[i];
+
+	for (++i; i < j; ++i) {
+		total += a[i];
+	}
+
+	return total;
+};
+
+export default sum;
+
+ +
+ + + + + + + + + + + + diff --git a/function/index.html b/function/index.html new file mode 100644 index 0000000..ac27ca7 --- /dev/null +++ b/function/index.html @@ -0,0 +1,1019 @@ + + + + + + Function | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

Function

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Static Public Summary
+ public + + + + + +
+

+ + + + all(a: ArrayLike, i: number, j: number): boolean +

+
+
+ + +

All.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + any(a: ArrayLike, i: number, j: number): boolean +

+
+
+ + +

Any.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + argmax(compare: Function, a: ArrayLike, i: number, j: number): number +

+
+
+ + +

Argmax.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + argmin(compare: Function, a: ArrayLike, i: number, j: number): number +

+
+
+ + +

Argmin.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + max(compare: Function, a: ArrayLike, i: number, j: number): any +

+
+
+ + +

Max.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + min(compare: Function, a: ArrayLike, i: number, j: number): any +

+
+
+ + +

Min.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + reduce(accumulator: Function, a: ArrayLike, i: number, j: number, initializer: any): any +

+
+
+ + +

Reduce.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + sum(a: ArrayLike, i: number, j: number, zero: number | bigint): number | bigint +

+
+
+ + +

Sum.

+
+
+
+ + +
+
+

Static Public

+ +
+

+ public + + + + + + all(a: ArrayLike, i: number, j: number): boolean + + + + source + +

+ + + + +

All.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
aArrayLike
inumber
jnumber
+
+
+ +
+

Return:

+ + + + + + + +
boolean
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + any(a: ArrayLike, i: number, j: number): boolean + + + + source + +

+ + + + +

Any.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
aArrayLike
inumber
jnumber
+
+
+ +
+

Return:

+ + + + + + + +
boolean
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + argmax(compare: Function, a: ArrayLike, i: number, j: number): number + + + + source + +

+ + + + +

Argmax.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
compareFunction
aArrayLike
inumber
jnumber
+
+
+ +
+

Return:

+ + + + + + + +
number
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + argmin(compare: Function, a: ArrayLike, i: number, j: number): number + + + + source + +

+ + + + +

Argmin.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
compareFunction
aArrayLike
inumber
jnumber
+
+
+ +
+

Return:

+ + + + + + + +
number
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + max(compare: Function, a: ArrayLike, i: number, j: number): any + + + + source + +

+ + + + +

Max.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
compareFunction
aArrayLike
inumber
jnumber
+
+
+ +
+

Return:

+ + + + + + + +
any
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + min(compare: Function, a: ArrayLike, i: number, j: number): any + + + + source + +

+ + + + +

Min.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
compareFunction
aArrayLike
inumber
jnumber
+
+
+ +
+

Return:

+ + + + + + + +
any
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + reduce(accumulator: Function, a: ArrayLike, i: number, j: number, initializer: any): any + + + + source + +

+ + + + +

Reduce.

+

Applies the accumulator function iteratively on the +last return value of the accumulator and the current +value in the array. The initial last return value of the accumulator is the +initializer parameter.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
accumulatorFunction
aArrayLike
inumber
jnumber
initializerany
+
+
+ +
+

Return:

+ + + + + + + +
any
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + sum(a: ArrayLike, i: number, j: number, zero: number | bigint): number | bigint + + + + source + +

+ + + + +

Sum.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
aArrayLike
inumber
jnumber
zeronumber | bigint
+
+
+ +
+

Return:

+ + + + + + + +
number | bigint
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/identifiers.html b/identifiers.html new file mode 100644 index 0000000..a3cf751 --- /dev/null +++ b/identifiers.html @@ -0,0 +1,309 @@ + + + + + + Reference | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

References

+ +
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
summary
+ public + + + + + +
+

+ F + + + all(a: ArrayLike, i: number, j: number): boolean +

+
+
+ + +

All.

+
+
+
+ + +
+ public + + + + + +
+

+ F + + + any(a: ArrayLike, i: number, j: number): boolean +

+
+
+ + +

Any.

+
+
+
+ + +
+ public + + + + + +
+

+ F + + + argmax(compare: Function, a: ArrayLike, i: number, j: number): number +

+
+
+ + +

Argmax.

+
+
+
+ + +
+ public + + + + + +
+

+ F + + + argmin(compare: Function, a: ArrayLike, i: number, j: number): number +

+
+
+ + +

Argmin.

+
+
+
+ + +
+ public + + + + + +
+

+ F + + + max(compare: Function, a: ArrayLike, i: number, j: number): any +

+
+
+ + +

Max.

+
+
+
+ + +
+ public + + + + + +
+

+ F + + + min(compare: Function, a: ArrayLike, i: number, j: number): any +

+
+
+ + +

Min.

+
+
+
+ + +
+ public + + + + + +
+

+ F + + + reduce(accumulator: Function, a: ArrayLike, i: number, j: number, initializer: any): any +

+
+
+ + +

Reduce.

+
+
+
+ + +
+ public + + + + + +
+

+ F + + + sum(a: ArrayLike, i: number, j: number, zero: number | bigint): number | bigint +

+
+
+ + +

Sum.

+
+
+
+ + +
+
+
+
+ + +
+
+ + + + + + + + + + + + diff --git a/image/badge.svg b/image/badge.svg new file mode 100644 index 0000000..b18426b --- /dev/null +++ b/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/image/esdoc-logo-mini-black.png b/image/esdoc-logo-mini-black.png new file mode 100644 index 0000000000000000000000000000000000000000..5d5f9a254a27bdd14a2156eb3c66fbe2daa89459 GIT binary patch literal 5651 zcmY*d2UJtdwmt!Zp;zf86hWkgE*%2W3`L{`P)aC4S|C(G2u*qurArqD=>pPAKoF#Z zNC!nJA`qoW6E6PuzWd%gYt5ONz4v_Ie0$BDwbzL?GSH?XXCnsyfJ#?K)A+Ji``aL- zm+x{Hucgb5#93Wm9RO;RDbDP`mvbme$5eE)oDvE={-%0PuwYz;{~!P{;%T zW=w9&9i>YL8Ab<*1po?$zYPRr=du6*2&33+*WahRmIq@?I&geW%9!^bW_ z)C0@+Z;=1N(R9S3yj?IpE}kCHzqoexp1wZHyu5#j{`>rUpFS>5|I6fo{g13mf#QEX z;u2yo@&969E>-$#RWS5+alB;yi?1S~^iSmfv;BuhN&GMQ|JlsHmHuPBl&V6mB>vyD zsgNV^f=B>hLOGG@svstB_ zrWm`Ox%8gLS?SW%>$}c9A;OeCH!6OG>Q7Rvu;~n0c9Wggr+RKOC--3LRl}0iMzbEc zG{p2+*D-6*{$TVO&dL4Fuq;;PWTV(-Y7Gaq5cH(lU3mI19s=y8b5}EiU<`hXzMss7 zvt_n~1q{tLc^*qX@F=qU*r$#PA7rx&DVOlnV;Pn4SU5@?RXL?p2Z=$Z7evr3w_apm z_N4FbPLT;kp+G=ZfP=>R5^rso|W&8+^QMsnqa z(NMGZ?iQ_6!3EEv^qJJAS|pOPJ|tJuc4wHHnAATTI4v58V9Raxc2(e;Iv=u5ya%Q4 zQ&L`TUG$q*W24Sq{o9R)!{$ug)E%jE7%ThK>KR*y2lJfxq-rGL5Ul>+sm5QL0JQ z8e?A**woDI@!D`s^ls;cO7Ou)bEvbT|Bm%*`5XuvS!ly_o6Bc>l>cNbEn_@FqD_t@ zBn=1-Tl8OUZx;xKQyyqe#!YXjoFAv7VMGC` zR!JzQEg_LG8_l5Of3C$og;Oo9BwYdLTLc9#i{4bH@Jlb9-jWw)a8#7qKHOPU+~1y; zlcL;>st#lLqwL9WU^xlY~xX<>SjMBl> z-D%O+ua3TD*pzE(Bu-bGJj(mdDU~$@MRw`EY`|36?^4kNPSvrlynEv4?nBFzlBks_ zmdPuyd-aVU#9AYzMsD)$Z;bOHGGRPz2h&!dZd)q%`Nntlh{+w&qed2TVe=}=cxG|x z-Hua_qm!-bL@$z9N8D;v_rnC!djoYv;LrK58e@xonvA!U7s6*=0SoIAL86gsWuIK^ zm`1TY&JdoJ)1V)<+D&WOu6QuBwXKtWPI!7&9byI(Lt#M#cbP2JpK+~j9}0(+Z@*n$ z!kAUxci$oLpev{~z?YeZijN;Qp}BDQDe6#16dVcC6te7^)HIAa9)%`PLd?P`EmB zyjVMW_Kowp*`!St8a-YVl^E;fhN{WF%#Ii$_vSb`u~^GS5oRsR`Ed`m;*cLP23M+| zV|kBoMQfN-diOt6W4s^z18A$T{n8g5~{TZ?HniWU_v+M z{CNG!HsteTb`Kb+X0R}t>p?)KWGir zGFi~vTmi6x%pngt*oLEp#LPFZ@eKLN8GPnXCX>>oDE8L9CCZw2zuyHfYd`%*MLh}w z>8tQ;-EPDTT+6Tkwl1X|eTf$*k_ky}(xRwIfpJVzt{b!U;cUr4IHc`S`e+>!~v+{?()31rtO%sUnTJ4M4S!|8ooP248 z=pN<@IkKC#J6sOEz(L~yGox$Y^zV54Cj6olX?jIFfuf5c18)o4+JR+mOzEbQzKNUg zvu(aSDRsP1Mf+Yz5c3|g+2HUUv(3=pS)JrTMP@Dj&EZK!IO=dEf@VZ7Ms_V1J2DVL z=)QvdMnootV%)D=4&Kv0tnKHLQUc4qc0?kb#Y?3z( z0;M5mk10Wp?EUIK-CwW-U(~v5H5?0f#L1GOGgZpAyTXWvf5c8XxW)0U^}9u(Cn->~ zWQ>`J_&+BHQt@5O-F9uObv?9FEk2v}-^R7MqeyNSC8?et74#Sd9L_q6GT8=#J#f6P z4q*NV`Y#efzjK1vlFO;+`zChh4o@D`B^@3rrOgW&{usRO32rbpYrIG`>&gVU~Oh0*xotspb#YDZOcT=6yf;>5|h z44V*_N9d%5d;Y|S1_iv>h+`t`ese`Bjr{=AILGKW0&DMFt^_TcnwlnEt{gz}tY~)b z3wMTI{!!8)eI7mNz2G)7dsDz(l1{$byXa>qwW6jgVmxd+VG#tE?MtC3m0iNoAslIzvln<#1W(j31=zsI?8F0lZk8{!*$?XXdo z^0xAy{mFE6Ed}POz;n`@=-OLPB#9yABu#*2Ur4B2C!~GaS-kw} z^rY};h%jN^t4ldVJ+%k!Mvzj~J&$0w(GyyMGk)MXZvGM{j3<2V5f!w3G)EVCrl3ab zlTIH#xAoJBDCMwHLp^G%>g@Ep&Q*ruTScO3)LrmiAUK~-VjjxOV*%=>z(Y)$!0E&) zt4+L$zZbBg8SBzydv34MwA~Wv@??HWQc1-JI1n-Zqqz;I-@Lor{Na(4+PEA!1FqGS zzuBUpv1VMfi=+VjDTb_Lf(bm7_J;{iaEGAo7$YHl(q1nH(gdv>oJL8LZDVZsG&41e zhp-d6g0l)u#2#TaN|^BIi()%oC792K5f+?$)S*%ZQL`bdc~vHF-gnO5bP8cmJDX0w z>lLz(Sc@WKviHgZEsb+HKlH$XPI6i6lMN$!q|74JB(oA6y;mmI0#<$vwV^XDFqhSH zmJwM8_2xl)r4ChUUk&;`+o}8t>rWTZ(cYJsr#eC%?00q8?;0|M!(gTmC&RU)^4$}s ztLP`^J|G%WI@(b**KNJk8iDDE7XU|FjpVc=<;vFi{@oEY@->NtB>!2|{s$R`rCb-b z?HS>c<~w!!-%Kj5Fhv;cdx2@F@q2`1f4yu5=qttu_>z+JxKO|U)jo`2G@xpL)1%|q>2_Tc;7A2*uZCQf@NMm=^IoF-9yV+!Es#-kkzT{p zf7p8#DDLC4BxEf_GaX5z1qx6^B?R~ps~8=v!(#ALzESQW@8y&seVWZuCGCY>X64*g zGn`Q83q#dE(rt%xuIXqV%?eEkVUEiZ*RNDZ_*w(0xs3(p`AN`iph;#o@ON$$kx?kM zZcw1G3o4Fj-U?0-$M5HqlIfvStJTrr71SAB%D}H+72A{pP)Qq!$b&}Fki&2nVt&P7 zUEUY(a;35okQ7uq{1A$CN zZpE@`g7$+6$FeXja9i(Hiv-&Zt1k_o?z?IpeY-B$C72&PK`z&PR&k3PP87|b*(V9{ zrp^=t(G(ij2t+;{6ne=*-tX2Slf+6a)V)J$%XOPai&5f_<@kH^Lf`T~Pr)>PTkdJS zst3JH^TQ@jIZOxN3b=$VAxb;iiY1xU^ggt=Eq_d{?}COUclCB(VO|M9C=T(c>9I{X zA-K8Kt6IL_P&8OwhU5Z2wo=@^B}H?!vGn~%&w=0B#SIaZiCa^XD%Z z^_{Wf1D3Cv1%|L-e#5aZDk+&bwHRVR)!%Elh8P&(_Z7l`QV)q>+uYhS^vL+YKUVP6 zz$3QE!(-*oIwwKTjt?y87byhk_b|ph-1!3Go^ekECC zz;6}beQD63rnj(?l|N&50s((MIlKQd){K2f&Q5IHFN0_;W`^d`E&X@>f|LOowR4ZI zrwzCXf)G>T?Y#vQg(bA(l5m{MN{R+`t*dB=T(9AMTFP{Fj^^`|tsV^;Wrw%AZZCVO zDxLAV$omq%M8v}Qvio9=Kkyp2D|gPUc#Ea1tZG2iof?dX@^AFzeGC^-o2|*e#^+6g zj^7w|N&54sn@BNXwwY_vPYptH6Ne>1I{5lFB#QPZWjp4qMn9JTG2D~EA#w|Y;eq!m97s&hZ)3Od{U>EyMP)M+|ukM0?I+`yZU zrn;2ljY&PuXkg z)g7muqqmSo|4x>7zIw1x-t@0y)$;3Ql<^?Ldk1&#v3*cihJWCBdGe$}5593DTsx*9 zB=!0jhQe)O{ViJ`EfFFf?du8DDMxDBG8_%1v(v@{L*;5IQic7t7g7KNN1$>`gdv_UxV7U3OV0%d0Es?^ z;D5*cEJLs`$RbqQsqayR57Xg9S6KPP^$cHs-4%>Y#vVLOu3O z1ylHre28dj|20AXEb!y%m$H$Q$sIIR4#D{inD*0tN*)P*gRQ@;Gg(jWnV6UUhF7XjZ{(!~X@J%1mzn literal 0 HcmV?d00001 diff --git a/image/esdoc-logo-mini.png b/image/esdoc-logo-mini.png new file mode 100644 index 0000000000000000000000000000000000000000..76ba5b7d8e547bb469f0479736e96707453718b4 GIT binary patch literal 6504 zcmY*;bzD?W-}a%U86yUr-GCsor|Oo z-uM09@AI6`XU@!AbIoV__G5*$QuB-et<%D0Kkh60CueaKq4Igs9$BZXiGf| z;J#8ZMgRal`QL&De8>U;0GhFbo{^`KhPs4}n+vbCts4}^>+ACBfeipsz7h{j7nr9t zldp@jD?-8-!u&6W#6$Zp3}$Bf7sb;F!fd3W#iZco0b>&872@S%md0aZVv_Q(g-hrt zD*tEtLl44i@9FtU0u1)?@!|Cm}FOMsN<=-Oz zPe&1ku<>ws<>}z&%Jf&)8tUfd31MdbYxLje-|O^rfd79dSHyq9dI%8wcLdDO%Lo3i z_QO=Ezo>+!hXd@v`LDh-ztq2&{|Ebzj}-W?`TttXza#w@`Vgu#o)q}MpG_K1z2~X% z!w&eVD$42kqHSmTC7A1H4+LL!RL-a>$cM;=)Npi%^iF@I!c(H-NP*xA(bj^v)p}`W zyJ<`6YWlHDYu|h-N%}Bdz)d6ac#O5%8bMJgr)-8q;?;3T;$kkzPmcr~txB#<9Ic*R zw~z0=R7d{tEwfnL&I%Ymx`cEd+>Sfccb<{mRbDaD)5j18?|ibC#UO4!Pl{jbT(HP^ z?5+q856`f$4R-qAz2v*WI*g6|;u374H*|e75)MCU!XClYvY%*QKAKkbpOK7o7_$`; z5~2vUvM*VRT_4btsuc<7kI7kw*Q?(R?$~c$U=V@C9k+-3dr{%&2cPfnKX-P@e4`{g zEkgSqLrl=yFhMBltes7r_Na8CmtX!a&TNeWI85?&Y9c2E1X254T@2eokS8N` zy5}4A{D{d0ol>(n1mR?W+fM8p19NYirQd>zE}cdaY5Qxl_)A3x|B=+%+E(KBO`?!G zK(WD*(&kWai4$NdFrT#qfyBgAlY%F?!PWgIw>dgP8KIww(hXEE5DL`k#Ip*>)omk{ zeYEmCOXIG#srT%#rRqA47G9o|`@InTa*K6I=e|6zy${#+P@hjLE*3tZ5a_)5zyjE^ z!%jrRI~0C>`>lLV{DQUC`cCgwQxf4XI+q?wTD8tFV*J4(^&cQcc{7nCu6or6weQ5T zM8IyHGP_an`2E{bWN2s=)>gbp^El!BTiD3Bdi{P~#@ue0_Smcug>c~>d<>pdD1bAF z8mBlf)Z0iiN$M5c5W}XSnQUc!nYQ2QeGurmCjBIM>{YO^d#E2x^J;}zhdlGO=CoVy zY~hoYnorJiWlA^u;fv^sL0FL}Mm=n2kBh+-cg7&VxHLUB&IGkzPsM35czyjLv29?~ zgvYU}3(2w&HAXsDlYybs3zucCsWPq%o&6f%u?OZPfV;T+q(s zf`zfxb5mI@=$s`QwJNEB<*P|=SWBLnyd@L)TzPyz1)FvNC;NK*?s!(?bb0dRt>Czr zeE6T{^x#Z5Q{t-K^pK;32s{H>`Z%!Rf*uhQ+jf?1(0K(PVF;XczV;lk@E^*Ehfg%w zPe8`b!yQUhrN2}UR^4rbQ(cyO)idWDS35kXRYhEW>6FuZrxRA2I}xIhO=QzOk5z8W zDT=KXszjzDur^mUd5t~1JmpAiKi&pxI%!!19z{GgjHWoSg9t28O2div=FP zdq1a=K-B4ofi7dCPv^?UH*Y~zGa{-rN-h>y;-FF9yBbK@T(U*g!a~Pu)Kc+t(Qge7 z0dkA%08e(>qTm_dAOC!9>J3WvHEp7nif1Ckq-lmV!=X4P+ihox>rU*PwR$aCyV8jq zb}TG-!CUjB!DHS+HgEfq;!dAL8XYX!m`gz4NgwFkG5dugn@ly!6PnLc{M$K6t}P!k zbgbW>jZ2afyBjj(symPuVTKUJO^>#Ak9gg?j7p6TX-bz?y}jp8~qvB#5Se5^V=}aW80I%R>_i8 zBEv;?G;412xzG%IwF07IC2+fEEW^Z8iUAGf@bKySLzoT_MT{8Xb&Br}Fz1MN>iA{L zfSrD2Xi1r!(RYd-YnM}78*o^AUD<3RA@pWlAlXq7hu$g?zLeowj7yrPSU~otmhrZ0 zHwpW^(|hBcK{A)pOwl&>`Os4yiQ8io_zQ%IHE)U{B+&n^4n{m`UJs8TmC)2C$*n51 z?D6}it6BK_N{7N+JSxbkV|H=MHIO1b__uX=&<44I3F&hq z%rkUs$#n+c5)_1~fj-_xuSz1D*ei2)cU0+qbCCMz>kDfc+Pwu+)K`SX(He{2W(4Td zlL;-IbHDRGe5$Xj&HfkBB`3p#bS*FB41usi-!}`+7S$ZiVB?jRez|kW==5O*|G~1{ zKW$^b7YCg8MLTQP!LPe3#W(iVSq^ukdN+1C^;F^$cYS8^U{ zNgj%oxBZ07|6ZElUTIs(TeTSbr^^XLu04gqd%;e>Jdj1TZbCm^>NGI@Pei01^jfld;$<3;r#y?$SmVa7OW{(=8!6JQ+ z{bYP|aj{5_2~0G(O*=h*36$ZmH{ixQt{AIW)eN6TXw>`V=Cz5-lbKFBfJp++4g6&` z>DFqJV&;k_UiU))UfyI)uv+l5D4Y!l>e%?j_8uLy?CJ}nSBwvWj{)HCO6W4onPI@g+O;RPdB8wY5UTIq<5 z{&wwQwkaR-yH{8NM|V`($wk6OznJJpNqA)j7|!^((m{ml?8nj%x4;nrnvR|C z;aK`h{@~Wp%@8B$PPV-3s-mTeJ<-!KHxu?W^y`ZZNC;CY4a-{c6*?Bslsz)8yymxZgOG+*F=gf(< zISZrQb~LRiNIp#H(;j!z#`_?rK>^W@ONby^cMQtHGx0*j(wyx0E&}|Ns0)HZCjN4? zncg%K6uU#@)^iD#PC*PfmIJidIDbLzJom2l?Xrzyc1zkYyR|Q31kGH4w!)Wa=vb_I z?cEYe+w}KLOW}SWVxNN_0|cD0eWpn?6+exq{R`5X$Ns!s3f{mix2Jl6=P+RV{xvo$ zsxdzJt0P%}87;y0!$)B~@jkQq+cf^R+ySZJ=DHAd{`a)thRqjfQX#*L+ZG4%HO`7< z8jA`l%Q*NyNG>Qit9K9+f(=2$CF_A!U&6DmLnD6shSvDGW zQm%tTr3|v@f%WVrh;ovoxU;AV_|-}e4dR&IHGOLU_)h(}GE;f8D~aQkZ=(g` zfS71bZjt`tijQv>Avb5afv61yVqs#-3{}vF3a#P}Da`&m{&~HFU(XNJ5I>A!VznLa z*NIadvQ8ye6RSZ_!+uttKaJ9{pL!JS7eR}RrgG;2<{>AFM6wh-tdR@YvO8Rzd2V&L zhntk0EK!G>O2A3m4I*TjN@4cPZxr9eAeL3pw(w>FIwU24$J*zks+A|r3=NO-QjgtB zNsa3~9d(gr9)RlN;+5B2zR!0wAJdaH&<3Y<)u>hbP6 z34+Q$X(wZ;q2iR`D@j0LbPhS)cedTj)y(otGfw9CPhKes7oU%qHA1QDM!0ZJ?WUeY zZnf>MqFGhP;dwjvUO2Of`)z5SK;m84c6c!H2=XMr0#O%x)y@1oflrphX}Nad-99(1 z{j~Jz$TzotmbVGLlJs9NpEqh8X5I!_3F+>y*T)ri1E(5kd8F%dr3!(`FhtwCu=b5W zB3Wd@VwDb-q=+sx2o5I+tP{r5zcUs@WBOuf;gD~F*BXHFXbdEmXc-;wR03dT>Gx=! ztFn)FXUPz#=(5uz{rJ>m&Jrp1PEM*+z9K~QQ|Doypr|}lw9Lyz`27|AS|P0ZWlEo? zj^HOIWxlxeM7&<;=gY4M7rkpu)*YunXAH&QUup(2SGMK$JeoxV`snER-v@8s)T9Z^ z>#CViTerOn0<|fst@Td?yAEjvK}qK=Y~U}dzTX5i{4RU!S1@O6mT0R)#*WiPlL%7r zk%-2aymF+^#yvu4+wlFvoE~O1k5;G|IQ&+a&Z~0%H4nIyiF6pR>MHxl7kw6jg~?nd z@V*foG*tvP{gL{5q`A{&>?mkKo%G3tt0K%kR*_2$x{aQIZIA?0%5A5uR$n&nlbgi^ z^@}YQRz3n-c-D>*g&a+k6Sg+ALm)OEepcf5=069~@$dX{g%tZ@5)ud+ZTB}Wm=sVx zRvyBQwC-7xe-0t9IO;d3s7Wg5vopS|%^UW<`JS^t}IC?7M0An)*EzIG~ zkpdY7eQfql!=`S%p#%nY?kqczMn2hNl^zVVOp2X?aX>bIlmL-`IGX1G%a z>nXgm6-Dt+oJFIm>Q)gn5W@SWV?@Xg`Vb!v^lvMs>DQh>?;_nrbP*;8wC|>ayKBuvxhEn;m(%F->~1( z?jBK3U;TXfDcFLWd>cKNR|4h!`=dTcQQdEu4zAb6(<@t3MajmkY62fV@iBrUo&QYb z(EKz%sq_IYAIn1A-*!RQm0Y{^NvsfWrCz==tPn{K?HXKGtQ8x{DOl;aIx}sf)GatZ zPBoS76U)--9iOE%+9B!zQA|-I7*MC90c95$Z<1ncVhEX*v}gUoU4yOYwOSiDAy#U! z$Gpg(0Qa8rY;Y?Le&c#(rJ8|`%mp_cW#w{_P6i0~l(zzl^%=2;*r!L4k^yh5fP`AL zrTz_?4GePse(7Fk7k$RkIKU9u%4UA{GF z(-r`QvhEOyhv)ayQjp$>WyZZH!nC5OodrK3`=W9}p8yU4FoTI@B~8$4_+kT`h&`j+ z(*eu4O*AB^7M$HT1oky<4sfr5epI=cYA8fsh74g}m}L$9Q;f`(Ys0``RNOl)>M^I1 zH(EE4vxU*=#4st!Q?LQ=Wn6B+2Wasf#@BTz%Katj6i2dNwjVNI#CYz@Hecq%)7?x< zj~o^ZCwI6=H3Ai<8 z?Tnh${RjUIKNc@9O^NDnG?Jq${(6DBQr4Kjh+V@DXkePfuAJ@&*0geywfaADseQ>v znd!_V3QGHChs=Ek6=&+;97!f!1)0qO_{P~t>Ya^c={e&v1sbp%+l+-tIuWO(vGi>< zG}O#Y*v7O0nt#s45%#^sJ8IX2o6X2#+U`2_z}-$-g{b8jX(VSIL@@~li(6uYt5tl$ zbT+@in0f!0ofz#&zCVM3*a1E(_M4)nJP};7EL-EU%0}W*)A}DdH9x23D-iVxj4peq4Q z3UOO|$(HmCFPUt;XCtF4yKG%ZN0!rA$Jrvf-V7Q2UKe(9-tVX5nHeIf)0$y3_c{=X zwHJIV{B8yJIztQdd7WvY&UDk&7~jzx{QwU;hY-$a+%zxNUK+P}b+e9fZQ&B8MbIV} z#zx&J@|mPm!I#X=yGmg%rZ98*UWQ9OleR^FaNDFKUYwXx7^#wg)JINutje@c6q2YG zMYfX2_-9dB=*vD@osX>4$K)plGavGKFJ4UEg%b^bJ5c;a-B5Q6qmhY-o!YpYuej>0 zS>t4o7#36Lb1GnR<~(Y>TwU;>b%GblbAQ7{@F6R16~FEnb~KToIL1(Glk#qA@5^WQjCjA;>Ytl6Gov!q$Nz6(KZyNiBF z(|mtb+rn*%c2+ZQ`T2_I@S=ti5MuJ$AAmN9B%poXYE-sK$52IoUer_xpkF`Ru>R^L z`8x=1N}y!Y?PvC}39s%HMG{Bxis#VO39Y5L5`;ovV(KBq)?P@wreAu;D=kAZzf-O^ zyi6acxN@C#Ca`(F$QsGog5LE!t7|I(^XIWxlrkS0ZrL)|@~d3JhtxyJ`hZ|}Qb(ch zmWpJ~RfKn+Aoldiq>_V+k^GI=y~k~Q-j}!D4P_qdrL()am&UE$`Eet!I!bl@ z2V{QnqRmF%#*n9fMG(d3+b<)2CWhJVaFfhi_`*Y(fknthP9K4jFZkd9?FCbB2{r@z z4;V1SEUrR+;}Xn!s8ka6wxUOI=-N`s=VJE{44t~tOq}!Vbr~r;*qIGyvs+w>uuinN zRxCm9wQwosmGcx*J<;2JiJwbV;}}2&=%czj?uKjux+|68dc;+Xh=kZ zx{ejY=f+HzWzzf0yZNeiE+PGIZ!&O&ue?qzR+j%EQjM`Nue1H3LQy&Q>0J;JE2YLV zbiFCQhlilfnpv4SVzLxP>Xc>%otco9TnHW$xc@`QrbBLg|8NyKYnLuiB3lR4``UVQ zGSWr_m&z!0mdx8!eyab~hR9kT8u-Kj}4bJNgB^55|;N-T6gwg!yF=mA&?& zZHS({Iv`FK3?XGUq{hp832YTB4x&i*oiqL5O;srtg@$W_XQ6%tR0<5&xw|dqz@!{t z-9+@nb(2LdyOL7n|jXx%fF6*^yFNl2`^~&;H+_0|+zFIXChjxtJo2 zO>EDkj0K|-D`uw&hbg_MM)yk4U{X))lcEUDTy7AN9%P4?=VXVn; zf2H;7he_13>fwrZkQ@%N;#?uU3iPD6mcnb91T^ToBV%@<+#J#+4e$fgp|*q4VrSVl z%s(jZ37@8T`Ix8S;Tnyo8WqY>JOeNwOR-4H@7+U0#l8qgLCKgnLRU0{J-6bz9UGlRJ>h`G$ z0TWW&`srbzFmk(F^5{`rGbrn-b8fuI{iOyPljj2A zqg}C#?sd$u%hwQwlA+xEP@l7Q2?)}U2)Dh+hfc*D|KoGI7gleBy1h3)G`i~N7n9I|KRMVuNYQI*{uBipP{PsQn5ts_(NG7gl9g!!zGxB>O!oD`5|znnkUw>mY4f9P83_1K2+3Ow@|RP#rsiNB z903hhkd~8jmxV&XaJV#7UI7k=N`hgsP?(G??SxA~<&_oS$}mOn-v@+djezn{w$#=C z+ZJu52Js@1@X9hWfq{Y2fpXF~f~O1=fj}H-z+h4|gcLCdOG1*RuteeC3c6^bI{||y zVQ^URks{I!=TB0D&^-Ms1Yi6=vRLBZX`&@ehK$6^K&54mLi!CfHU0mgzP|sUi6l$( z|N8r{!bGbeJX*#QO~m;V+-ZgL5I!=6SJok*kt7_!3WxLgokepm90^DC!r{R>SKwfA zQ=~fvd$e)kPllD+ zRvxaUgpifj{ms?Ix%>N~v83Nz6pahhl84G`Y3tCq(0}C~HG?mnW?2_azyzRC`UIRW z_|Kq~G5_t0?0@_67Z>#}zWf~rt)x_q6t=RejnvErW>9V+3xJmC z`WZuvjAn72w+0gZ!c zA#ROc&m%S~RCo}xuD5jUEbXg(tZCM@w!T|#S$ju3+PKnZvOq!Te!k1i>ZlAY2d$hq zcr3hl)6*dTc>dY=Qd5hg9F-3ZJx12?th3 zY?KG;EA_?MEA`bUgvx84mEd_1K6WD6Zh&~3v&UiJT=<@uGaZ9%(IN9U?-o?uhZNz# z0#o|=;zl}_TF1jsmf+jyEQ<#bNr0KCAUYnr%4g{D(N{m#MffRnz-^cE<1DqGVEx5r zS9<&IEpl`xM442IxYkCk*}6`7oUa@Kl_Om(Wi)GrS2ItP;Ou5QroVSmsVXN0)hk8e z;lQ7wszq5KKkzMEul9)W#^WhAdM9n0$1xd~J`)gN+?&lyrT2u#TL&e_WNZu=06!YS z_X6e%y?CXFn(qe)=6ByvLZ1sdi9L_*4O%9s*q`)g@<+ngXLPynb=p>5ndD-SPd(4C`aTbdZ?bxKHELC zZeth7;3PqZD?s#@He`g7m$B$qvPY*AnR5l@#vg7e+&xsaNZJ7s<$W$OK|T@wSM zh`E>hGt7-jtmLJrt}Ivhf&`2+J~l%A7}}Xca7jJxI^wvclcjQLM5Eta<3kf9Toscy z2I56cmFzMI1s+2ser!B|B({ns8CaFV`-AdpPxNlkWi`M4xfYlJ>bcQa_Db9t&LAY; zx^2E~@4$Karl&<}9jvxNSjTQMt#zzn;Qqi*Jw&F8Na(c1_Jsc6N8&(xJElah#X~^m zO$FtV=RBR5){5SC5(*jhk?uKK7`fi`Y}eJ#ci%vh-fi6~JE0;=vP_jpjlbT?{#e-Q zg~+X2Dcc7K^U`4_pWG;HNCdX~rJUssvKg;+f3y~ob_om7(fWQVrk~|8c+5Oyh)!0u zH&@f%C3-|i_!B$Ex|tDNvP7;t@z^Uj(%<;2W8RZEAuh0EPbru^)k9_D$^x*({E+n& z{y0*heI0x$J9Uj|T}LA6SZHS^U1@BX{##YX50iv${&P>g_W{k;`KLa}>>L)9+be$H za1Hq$db|JP;I|C#s!D6abpfQ!SMEJxNrX5Po=~2~$zN$@d{C4ae%`0;u5lJIc<5zV zW0x;w_KUnGPtktlP2P#J6QNQr*8K9PVlhCrtEJW_VcAdqvfOn2!G(Z&x2T5n3f@d6yv9qGdpFIWgxra94$P&Yhsnc!#t)-Gv2pxFx>U@5&M# z7#U*2+|*`pSdAT(GQiPE$Ex`}N+I!wwb~zatxGDuvCL1$dV-cI>A&21r3eoG;Lk8> zhmAcpb*$KgS=PzD#t!=+rn>kYXx#YR)Dn+tD7G%>f%NHRvzUhtr}1(z(HiB$A-%vD z`5X-Jp!>%UspC}u?_WmmD;h%*I*Zz09eZ~A{G;;OSqJ&?c>WA=&gyqG%p)(6V*26E z{`k1QNoE~O9dKi0)Wme|c} zpD9V60svR6jT^^lPq@XY4fnzWFP@(qA|#AoRZ#%ui7nS&g(Xw!JO=DIRz0X4b&exr zkY`td`J1Q{ea9M&%2%T#Ta;&a<1sj6L)n2PV_y7NO8EsgholQRo&m^2^@skl2bJt` zu{-&e43fXh6JRAQ*3k{gK53WkKIN2vD)Z{THopDGy|Ji5&I%H;Ecs!{lt{IB9_h<_F@CJB{)}FVpTFvK zXP(=eD=e5uI3>NH`X-wAtvibZtmZ?rL z7wsuLRIVuCeEjQ}R}+ZAfvu;^h{(w;f2~*YCtDTpuuti0eA}tHeTR8%o~dzA^q5{z zUQNy_)>BQCr4&n zY9ifZI%XxIcTU~-B#>+|02RG{!zI=^*x31j0>MV-*^bTh_(BK8Ju&5MRoaw8+1sG1 zL%CEWY*}Ha7nicSa&3PfVrP_f!DVI}!S&!{Ym;aR{feM{vMO6NOZr%GWB(&Z`wMOR z#)*@43&=FFCXmN^kEWAz)MHgZ6DzNPf8RC_rbOG((u3cI+!P)?mdoPYwy+W=xS^mz zfWC?vOdizPc*paTy;7&k%4PvouNbGIDHnoj<91_&*-aZqO)}LOa&*pZeF>N7l>Pz< zd;rv0z9>AUFFFYW!822_#dpkxb^lmTJyFw~@j`t0>4*7~9p0D`MHX1=O>e$JdK(YU zaj~=9#M%X_gvkYeC*Lkko|dT;vWBG#k0&O6W2g6_Mv4}FWx^J#7cBEjg3w2YH@g)Q zuPcXBzOk0d9;`^u*e`sV2s~bPHkR-tDYRo6Xua4hTUwLG+tvh)QIX*oR|Y1Ov28Zk zylyfJyrpjDH=Jjhz5$=Jg(|PB@fV!q?btPZ{rS$TKfdo!+1YTi23~<47U94_5&pH} znfUigS(B@ik&Xh(E?Ua@PItu=bDG)ZUT{R;eznP5G{Em}%@vdRrM`+tN6I(JQMxzt zzG?+!S4Ta~BX5?vtMn^pahCg%YIEzN%1z!wZj%6cu}N6lF1c=c&0t!fJ{z?E+8|pX ztL03D#Wef7T$WgBgBg5GX1JT$UHCk!=iSaW`dgj`dWdyaEzWVS!D%kH>i&#|Y?8|9 z-4$lE_MykI*a<$47lk7Bjbdv}w_`*zdXZuGN3Iu`_YOWZs2xJ(qa;J)R&SUlR@|sR zt8oL;Vk6BgD)ama+gNdT3rq5$E=wTS_vPNL5v7O8(WRT)ia$MvhreFxtoojl@A>L* z?V3N9{Or`QzB8zrK~Wzy9(B6iNvvA2IDC!4FDT_F{|-W_zsO%Zd!zcZU$$SrY)QbT z+}KQlk=a`^_W*hzPZ#yMhjHq8PQ9i6db5c4WxBN_N7p?>>OOl+NcT)WrFk4NdiE{l z;%pD)D#!i39~nk@^PUQri!2Iu0oQ(*7KqFFs)#t$B7j`oGM}O2VyLY`9N-5vh@n;< zRNIc6&UJhY@?%IVdD-=xjGWJqn^0=jZBU)tv{v1U7ED&2v5=oi(iJ2&r=CAe0V;*$ zW$8S9fv(wveNqLlBQuhxlIr{{L<<*+21HMjNzwF5+p`Q`+5~JF9k>|vUCpaTL{(Py zw>le+8;vV|Ci0p)i8;A|+2>n*&Llb{e1az3q!#5`h2t?5>RN5A0%e*-$ySQrj$M&HIK~a9W)6d?W8J*D|_Nsk$ zGP@D92-<(_m%Dt`w&=aK1L=et-x-8!#A~nMjd>p5y_E~xqvBa(g-xz$rbrZzJy}@V zMDqqtV5Q@0Jnd^ZegdA!J_j+KUwf*Q89r!GpX^tCjM-_vCiKDr%LHG*Tq?b|4*FY1 zr|I5VzQbkN?NfI!QSV9w{6i7N+PZuZNn#B7s)KDhPO1TQJe zZL1UgBIOOdRP;I*>7?O<3ezgLDn5OQ67L#>r1#{bKe8hz0Pg XLyRvu{aX3a{{tgEGu={c*U0|?Dtn-9 literal 0 HcmV?d00001 diff --git a/image/manual-badge.svg b/image/manual-badge.svg new file mode 100644 index 0000000..4029606 --- /dev/null +++ b/image/manual-badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + manual + manual + @value@ + @value@ + + diff --git a/image/search.png b/image/search.png new file mode 100644 index 0000000000000000000000000000000000000000..f5d84b697dad0c856a822c2df0a0da46ee3e9be3 GIT binary patch literal 12704 zcmaKTWn9x?_ct&$YBY?JE+wS96+raD)ZuW1T?Qn3UDI*M)-R57?D8{(G_ySR4Gggm^{a$ULZ`#Vl zSlI`9mR!860V&>^<>UGzD;4vViC})Ksa(fDL<)3`tNaT<{#2fw6lCrH>lD%OOh1aR z{Ml3g&0cbLo?W29O1rl;uYT|AlgnY5Wtk1R4fA56Y@{{Pk0y=hB9{g+(RJ5@-qNKjvOa^8CutOT_;keeKu@ z_jbkrr}T`M16BPOI@rG9dBd#DW>VRJ{#&#a8mSRjo@tTgVYnW?I9&fK^9LShqHR~{ z$R8L1OsSy~UIrW)mz5GLf*fiZIk{GSRhg^GGSMTs5zUk{PaJsQ(w^F#!a7XW=3U4z z4AJNt+u{kXwD)tMoSOx<=h4l5%wHVe@dVNP&MLuWh1Nm$=FKKwST}t}sBfyOa%w{a zt*5?f$bHex6HV#uP?MDB799wW=oz*W;m{eUa$fY6N&MX(9$!b-Ay}kWEZ1M{-ZfZj ztfc=7_nOtZen*(ef%;30)NJ++p(aumNd_c-=ORnXHxYRM-9%7MW`)tAhQMZFkn_GZc{UxHU(d&vI}-CD{u{JKt_sfMQ2f+e~1PX}g) z=yU{p!`wmdNnG#vywP9q0H0o*oEwx2n(2G_J-osbVltnfT=GJ4pl|k=v()=_&RSY5 zR5mY`_i4<2oKA25su*5#9{k+=oTsJ)aB`bWEi5aGb`j9x9uQm2mGv-ua!l-*Jvw3* z1X?C5dRE~*EjdJM^sBnO`TZP9lzJ5Hh&U~3?Y^W>OGkIyXRgjLjt`qEOIMvw zycfYPd#0*UcinQ^hHp&Er~`K?PP!Q9A~D(l>taQ51Sf4Bs~ex6{sATF%hoJkF>h(E zE_ybPL1AYGC|*@LRw>52Dk(-e3ywR;nB9?*362NUnTeko2S-rqnX1Z5DDG|`si(nI zrsM^8EfpT&5bu|0HkTVsJmagd1P@u}avO(Ek;zcy^VBCsU9!U`GR!yY4wWC8emffV zYafJtq~HooGv@!Utu_nFlx!q^>QKY1*1BJ`&_mJVb8v@TUtd?)o~d?o zuYZ{K1mtW53*8t^9!?W%XEb^BK)VaL>P@Za7JeS@Zk$t5s&dY#hc=H!vsn5wx0su> zzFWJhGVJaifQ5i{F;t#&p+FKf2Rpk|Wi1VMwqlA;+f?!f->oRRnnMCfYTVwsxh=mk zGYfnK6b@wrD2gg0<5VQ~T1inT)E#5^^SYK7(cekWU4a%9U9N=7inEQtSKfgZKS0FE%iFV;^>)0OMy$LK|I|vXh zhzS`bUcxGt*WTX#XN1@~M{>JivVMc5%K8~u&7`NN=j1n&`t`(D?vw;ry2`WoLc6zD z`&~@73ej4wk^1A^P?oyR-I}Y?3d71vQpNV30bCc!{E!+#^UF`%n)d9;{`8N0K3}+! z{KO;7*YfdoKKVPv6jH=5&Gju4%!PtYg-Ut-o%~i*RCI+&>0W-c$-}Edj*9+{6TZ*3 z&VKu5rpiobW@cu%fZ%Qb<_G#l1ON2tQ_izw9>GUyXB16%C+5QRY;_%+vn)!Uo4Qle zm8Pa($%xU%2$)M~dQ8=}5BobMWi=lI!t2sLRoeho<@2EUsy$-ZUtK`F@_;fc=o_Vc zd|ME$zGmJZg*L?{Qgp?_@1B&jHTtPQ3D{o~ZU*`k+}}VQmWysauEfuUBkJ}JaD_0x z;g76ITZ75>bgT^0qs|Gl*|kZCet^Svwfbq2uSD1m@EB*(YxH(fr1b+rx*na|A2ht3 z(6-UF;Vtmsi=(;=XNXMVz|GB$jNf}^>p9W0Bd_nQ-ggGVcb8em><`TyD-)-f?Bmf^y4J)XZpWkt?yEJIHL;|^ zqGfuKDhYtv#8n|%1QRHJ;L~VC2RW)^T7L&lgr}rQ%eva#_&DINL&vu`Fd?8^On$5T z!#$Zpi?OGWF|$($sMo<*n?sZ%?@a zE$BdYA)$SKo4)u92}8@3c8QmMgRgZ%9H1>0KHNN1Gwh>rKZ=tE7VU8|mmX@p%rh}D zxhR~stA}GmDK_Qd7e^Zwao_eNV$Glc;j}d>YAPlw&e{(vL82c803mkJIEWzMrypc0 zfp&ETz5!5r#QPRjjS?dRgGPRN!-*Hw^n_eJVY7>oNwbwSa@7ltI;~WkRQyz8r^Zh- zL#+{KU>#98B1=z`!%)$zldOK6y{%m2Hiu@$R_2D>^XR}4%%31FTUe-d=>uXgf`jg9 z4D-^27{Vl${W5K3@Xfb{@V>t6(OAGEIq`)Fe}Z`9HT>G#2SbS1!0#RKEKf@m$i+fR%YM7?i7qaDm~gM-c1?+)uTau(h;h~V$@ z12S1=(pY?7?|3I}iuh;0F%;}Pr>BW|9ukd8i;az4tm&=(!O0vzSG4zHQg9yZ zoSr>sdsyb7_kdtohdY=DMaTrmBg_+6%FNEb0^#qArBPq9FwRe8u%4R2Kd+F^&K349 zX~6-uvg>k7M63fZ{^lEm4pY-(kQZ3TvGrPYlG?A5Z_*1HCouf5daZqluY{wIElxIU zSH^jJG<7a=QMF>l%yHSdQ`I*HZnB!{M?2$Ev_qK`1=*Dq5bslHgutrLBu!f z!c5OzwFFQjb7nZ)-aYwi0^ecQup3fom_0zu+SF-X2!mqubfL?P$t%0DL>M5GrSuBf zr_ON~s%6hXi2d046z zJ|L$SM7XmYfw9YY0}%FMpSUX8ZRP@>Jh!aTAHj@MzPzIgbts?R1>FKO%sG<7FX*h; zIIfrbJ<}XtQAl!TJGKSg;i{YnW2hPv?k;coB8@U!I)rQkw zl5ly$AeqKlo6qp!&#cez)wXXL$wqG%D*EWRq8_|MW`u3=^SUFiEN+5cUM9ZI;I_xD zrq50TvZU16Nqzf5Am}c%;ZIm_Q8F5ejENH2zP-x`ouSF0CphWJw)JP;0{>s?+{^tcB z4xW3<n?TI268$OEjv^(LV{gTY{{8e~Ct41a%03AJRl?|+|V8n3x zv<$)A1zwYER6%xBtf<0&(nRQj2mwzod-b6Yz3x4|LGWuZx5-@PQ zr0R1J=;^jEi6~)$d3-Vmh}VX2!EsIJJ=@9n)jHyMeHi|J zMe#NX$-*uoPSkv~MZZ#QQ*sDen^VVklQ(sef z7gvw+Yh=$Qj*nC4tIt-sNP$a}fKU#GW`F;0=Z^w7IuDw7Hi|X1G@a#yLL9ONu#3a= z$Q>oYXYpw-4Gfsa<3-|UdwExx)|x6lxU4NO5V`3hd&KIgJ-BlUr$pn4tNuK~dDS6i z8-1=8@P)Rpx2dfKI@jP=9TBNY6-)LY z<%0@q6{8Dry;g5WLn}?2n=-V5=xgECRGTy40r&8UNZ5ldi256EHr*- z?#R_gJ7jhvaFAiYH5)_v1M|~ssE92}zKw{G9YhO#FD27C+YwKw-OsFL7lgvlAp~Bb zQT@poizbi)Y+~Z!so;Bm^!hQiycXhK0)MqYNaZ>?w8_TPt({RBf0Y=ps((<)AJO_U zy0^0dH$B!ygqUHI7n%Vx32iW+Vzic@E(f_qSTJ{wW=n*Wh0llzD;WU@zD3E8umDT(y2YHDiA?5s=1JrKlS zmw7(@)(Mc+Qj0tM1Zmpj{A=pzR`rA}4P%e&b7=JUKBnV?+^BYn$#D7}P! z>S9RFSo=%j#TI76+ zJ7)F1agox(sZP(pbW}Bd%lIKN%ZrO_afYyT#I+$ci}k?=T$j%2X$ag#F@W2GMn0oz zU7@I@`n~H&mV{e4ig~5MI6zR*$hIS^sUVt~zu=f~DM#jgpOvS^#5>)2gliNncp_RA zi&^7P2G`F_KS~zjfmK?DloQcw>+9uzf3D{J7w$*Eh*zVIaetEi zjYtSnX3F(~T1nD+Z2i59OSf7+ft7wDdWC0KLggh(rS`(`+izuMXcE7oB%1@pgVuBN zxR|WDaEP`uVvG|iY#R!(akr}^NP8#y5x)Y?$v}OG}|Dh(8H7cXZ^2rVG4HyH`DUHqP_K#rTonNVM?Byrd+L2p-8-uU_4U zX5Cxmgt&ChOiKoMMl>1}lQT&=r$Dydm%sS-M3SmEpxMcS87P)D!RMwX0Rf*53e5VwKlA$<$2}XGi-f$2?+e*d+sYD!PpH*D!#og!>0Oqj zka&E>dG6A~o&3lmK7QQ1DgyX=5#@+{bPp+9AOMs^_m0-9PK(N$I^_hUkqz3hSUzkIhCj5JUuf)@|>pjFv1;l|5RXPf9N|a6KhKB!no&_dXQL^3|FOGQltKS-I zr5y0Ea|X`{ds24{sk9$Hxyh8u^FAD%uRQX-s|tX*fU3&p(ESki$x%+|$jFGlcxK!c zwArcqvA~iTY)5)9v ziv^!%KfMOCyd?%Ggwo-*8~2}o^Tav0riU*Ax`p!-+f ztCqDP-?<_fhGwrc+VFhs+vRb0bEZ?Da9uOU*-4Y{SZ`so$dS>X zvNbUJRtNtWjS4Cn(~9wm@lBYG9y9|L5$C-OAb9MEoIZI^#Uyi)*A!>mu%&rw1i9Zck3mV)@DU<12 zto>MgY-g#9G_AKEVIA{YSUSUhzI*^37xhfHf7`7pfF;{W$r{+EJ|h+5660Z37Tu=_ z0@1>sepfo7QZBdS^f&H!GsdwL_AK>jI*Kko+U@nj>D|?r{Y~?Ib#V5_tHev?1{FbJ z{DpJP(kr*REarIiloKqG&`RSgU}c+pEnCX$d9x-7fO!B*UI+ zv?i9An7BN|V^q&!MAA51@Oc2c;+V5OSBXL8O?MUSB@*DiB zIr2AsZ{#F<2fNs`JF9N&V&H}SBhJol#f3!LNU}vpO|IhvnOi0(?UtvsZJ~R-B zgJ)$syj-a`QxB1K1#nmCL!)y!TS$F^IC zBRUs&13r|;h{OHa{Px8r-m6-5^FFiZwT=?}YOK+Mw@?0M(-&2n#rTPM92<-I(9qHO zu(jN2B>+WW(VHv#uF>X9s{2#)Q64_T-~k1>tv<$#UuKRHPxfD^3EU_>KvI*jv7G3a zYTsz$U!?N5@y2dQwv(Xqf$ zb@D?Oa$vj9ekaUVt8@%!Pc()a%^d5mV@Lm^h4}N&I~|a_*~NiF??Sx+(w&#zCwzEdS9~wq@FnAWVSW1|1xUJ9 z7=`Z&8HneW!GfRN`>w~Qf3y5!X5Pc#FX21}NT$#&mi|$NdkK*qni@~>WEqOmKkOQM zx(!?Pi)gj~qNAXpox+CYKG=9fswY2~W1$R(R-Q1{9HZzC4B^M7M@>xj29h`})B&wy zv@dZXp%3@|Z#JmHn^ak7^MR01m!A12Qr0v-y-sesI)A4YPBTjR70Z?G2z^@`@=T-y zctbTUGRbRPvhYAD)-K#T!xd$DF4FOaQPrG>BABG}y&wyyVgj>#-wz}=I)$VDyOo?n z&qkOPQ1BRR{prNkr-4%?LbSb228ypW;#0w7Wu@nmp)gB{>y`b6lGQi-IsJT>p zd?27jncg5HVp!;NuKd5-j8=Yq`pVyQ<-pVm{7-b&svze?Fy~ z0SdiS+V2`IaMgA4B1W(UIMgUaxiFX1J3rQ&ODEFlIsP<{PV}AKLzbK>P(NtlF4KSD zry{anV?G1aasTlzMUE{&xy`yO36WLrvv2z|CRW@)s;~S3{f?QvIWhj_6COGz+UICR z^riDXx%2w>p!a{QKyDsNW7u~30D78ey+OWmG1 zahql0m=l7FDO%?Bs%<^XX9U0l&&>@q$Btr6(uYs9F!;P}FZkVU0$PVN67G|&P7scL zjly9;Y=mIl^8ZV;f~0prr6XAA$Mz4}85&OiSEkhpU*t6O%O(TbR0l|YIz0a~D5ejZ zi2M2+kCI~wtVs5lFdO3wxyyfS=ndgSI;`m{qnoW-biv6w_uk8VV2E5kJdnY?+qlF_ zNtL#O6>Wq|u%ZrLVg85|7yj-~td8?+3=mH+ND5J=FW3Y=^0!Vcxqf2;ceF)5moL5C zUg?RtW2j56J@~M(Z;NmTozrJo6O>$qR902(f!mzL#-8~1Ctey8Fc49L=_v0EfaYoKHUQVF@ArA&DYRL=8=<{MpV@8}pnr3P{;vE{+ zx63E#>FQ#{tNa4MBZXqVukO=J$7*5hjN6DRJnonjO8Lib6d0-M^+olw(I@m_#UIvx4-2wEH=(O_L#B6%z{m2_A}7YoH@t@*)~t`?)9C2v zN>`YNtC64&ho>H2D3LsFk9%%nQ+HNR4|0$ecE^;Y?->I4DpcLVE$YFN>Vlq_D*^#o z|9tuJuaGY&L_CH33jW!Nt=)3MY<%#qW|X3#0W;%@xpTeWz67#57#BvPkO=3Zqje4@ z?c`S|?=G{R@_s91SKHZX-qzw&J2&KRi$8&B7qJffD#(7*MMCXpBrYi#)Lv4u9%fF4 zo@p-8&gJ7cH)_dXpib;KZwwBdaCY|j947~PJ%j63*50BP3u;Ya_-C`8feR1TF=eusR?=)c)HW)h7v;Lndw1a~Z znfg!lK5TvR@)4J>>Ht@p2c=(mW#w++-@kvU2UC>CG$REa`im-e`gbG7hlYm8b5kw% zOr{C(&E;<*70B@98+3K$j{!UdG6@2^fa`^LR@sQ>9QO|w9CL;61bWIJ7cRbIt z8VI|w_1e($strnQ2G{^I@>F_B+o;iNdm2)@rYe_MM3+G8a~ARZ7+d09`iSt15&-w3 z5^MvK{m+iXyg;M6WEyHwzpf=R_D1vkV#YKJHlJ*KAL+27Qm6n{>*x;f3DmO%kRP#F zuo~VAc=CIeq|hI1Hj^N&us2W<#s|uIG{&SHvn|)n;b%n&U&49T^D?dd02M~j$%o(LaX!#3d9tJOP|8oji^l;B?+RO=Ba}V22b_bZuXk%~Z;=IlBR_ zAePIadw-{GSufs^L}jn(9xvF6`I$7uumFYH@_+A{{Y%*$%5#vxfvZ0Mnj|vHTJECQ zQln1oE(cfwZt2Wp8|?nYoxj_?f@u`?%^Z_A^)RpF(`DYT#}AK;bP#n*F>pXhWAk8^ zt)M#{MB0Y6!DHP$2InZfz4rTO!o9m@*TFTdt-h$slkGL&&%%p;x8AWgjh2K=7XwdB z&0}=e5vI$Wrp4x#m?C~)hzVEkU%SgF)>CTLJ^ihFkrH;$LAq?ZM*V0y(rg3cOSKUk zfUPPfOW)Znymv~oxi}*NU>V~?g0NcjW##>bb#*9@_ZiXMZo3YHH&v;N#B5n<2G(WItdU&dH=i`0=5^b);) zWC1Pxs>t`bQ=33Xhyt;>XTC>uAhs_h;P~smTXI2<|BX)?G>Q`iGV+&pn!fKx19$JU z-u%`_xEe9aP>HZ~!BWzvpb1AS0E}P6g>EQ}=sAsYVV9LXT-BbZM-%{oLdvC%lvvs@ z6-0TU9il9q=3*#bC-p4_RslLc?In<+qjPh7LbMwe2r#}Nb}I}3o4V>ze*S#KS0I_S z+$Zq7$N8`k{{eRD&&_wSA9iS1>*($ymK3bUcVanTi4g+mTME#m-HFReKz6K}yE=Yc z;@RMk?ldC!9KP!@U`+q%U=fikDGKvBy(QTD?KS@@OF~4hbOW-^ZZysiP7EqZOBiU)4~k2ZOG$44Vi4yvSbzH#9fj4ZWjIkVH9QwZy>8 zf}bw{n3|fZ<{X~S-tm=RQUbyMec#|9+vk4t#+3xbNvbvoe(c&OHrZF-?9n~sO5aq{ zW}F+7AoLp%SUCg;!C4>g0fgX~N7VRkF7F%;HreRi|M9H?P4aTIL`P95JY*MfK4!nN+l-dGOT+LirWWqu1|nJ#8S`Xfl_g1m$|A3(!udzK#!BGyN;g>q!Q9C@Cg1kP+6_0+t*Pb0B* zGO6~XKE_(4=cdpeC;1af?>HVDa=@wn;o3yt4?K!4j$w~n0dRG;@0N{)CoZn8doG&~ zX~Xj<9uq3t2ThDfEngpE3*I0&G?yWdU7PENCB0<{9eDriWNekoD{LlDNVg9s&?YjS zxL#h01}r=wh8h_d=!ZZcol$!8i-BY0x`8H<-S2omhRj7`hQ&O_+_f9bh5oTs3WQjDiT9z3CRk*I^!7jFB6g^Hn)&G z&joW~?T`@er<8km$SZ4K-;0C}_xsQeEle_)3yGZ}s>4$h$0B@hA$($UA?j-`z%#62 z()?5dBkPC5{q?+1*8SM0nuBoMwS*OwE+^8%GiscF)oq2QgqAK_sFvkm&E7i#TyrBM zqpt;D&|7D;l#JLTbvlw=sl#dHPl7m<^|3I1>x8DQ(E_&(+}WsAof!Q?7gQrZwq{)W znJmG1wDA{M0%bf~Sy?$F)+06@h+mb8Ywstk5Y~9eb2KKJ+sV$?!+^GVb9pa1B+idG zPqB+4i5nY@P0Ab!19ftB2nTqu#@P=ZLo}fN0P1(G!j*;+x zqJxJetputfNtVb}DX6d;kg|-SKCu%oLQim=$Qb}RbyQ_NrVpSYhp3^R0jzF>tMfmj zfqe@6WMTlC4rRCwk|f;QPy_VOvM&oG?z?b`$p_0gxY!o3V&{WAp_k+!K{7pzd~rrZ za>zNB!PWPF`Y53d@u3@_B!MvSmmw@w1JLjMd~99h6g!Fy5c2PWQtm4Cm?&8DI_P8Wc?={EC<|j{rrKcswfGg=0y7neDnOsug<+#C z+<)WVFXygcu>gL|Tu!T@ZO%K0O#eH3E%lgh9Lh40}t?f*`y9eOD&)}tArkf({2#qw-# zkyqHo&P7{WTT=B8gfQQc8K=*M?&0eerZ8%uQVl6F_)CUA7q$pX5ai)&X>NZ0?G1_! zr73$Xy}@u`#yXX8ERl5+?r_%z%hUNFh&dFxqF0*>a#&hv$N;n z@-nMDEW~-)&UFH!mePQKjfA*kS4EYio;f-}dEZV;8DdlBw9=@qQecD%!pTuTOSFcIc&hy{iZ!&NJ1j z!^-~vu(r0AEK+VtymG~;m9p`^+S`$@_qm$s9re6q%0W9el!+Vgk`@&Db#%+LSA9J+ Vu(5TF{pSVFvnSfBRgWw~{|7^yU3&lk literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 0000000..e3268a3 --- /dev/null +++ b/index.html @@ -0,0 +1,87 @@ + + + + + + Home | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

:bowl_with_spoon: @array-like/reduce

ArrayLike reducers for JavaScript. +See docs.

+
import {shuffle} from '@randomized/random';
+import {_calloc} from '@array-like/alloc'
+import {iota} from '@array-like/fill';
+import {max} from '@array-like/reduce';
+import {increasing} from '@total-order/primitive';
+
+const calloc = _calloc(Int32Array);
+const n = 100;
+const a = calloc(n);
+iota(a, 0, n, 0);
+shuffle(a, 0, n);
+max(increasing, a, 0, n); // 99
+
+

License +Version +Tests +Dependencies +Dev dependencies +GitHub issues +Downloads

+

Code issues +Code maintainability +Code coverage (cov) +Code technical debt +Documentation +Package size

+
+
+ + + + + + + + + + + + diff --git a/index.json b/index.json new file mode 100644 index 0000000..d39fbfa --- /dev/null +++ b/index.json @@ -0,0 +1,1241 @@ +[ + { + "__docId__": 1, + "kind": "external", + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Infinity", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 2, + "kind": "external", + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~NaN", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 3, + "kind": "external", + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~undefined", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 4, + "kind": "external", + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~null", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 5, + "kind": "external", + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Object", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 6, + "kind": "external", + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~object", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 7, + "kind": "external", + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Function", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 8, + "kind": "external", + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~function", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 9, + "kind": "external", + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Boolean", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 10, + "kind": "external", + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~boolean", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 11, + "kind": "external", + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Symbol", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 12, + "kind": "external", + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Error", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 13, + "kind": "external", + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~EvalError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 14, + "kind": "external", + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~InternalError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 15, + "kind": "external", + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~RangeError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 16, + "kind": "external", + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~ReferenceError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 17, + "kind": "external", + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~SyntaxError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 18, + "kind": "external", + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~TypeError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 19, + "kind": "external", + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~URIError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 20, + "kind": "external", + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Number", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 21, + "kind": "external", + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~number", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 22, + "kind": "external", + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Date", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 23, + "kind": "external", + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~String", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 24, + "kind": "external", + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~string", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 25, + "kind": "external", + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~RegExp", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 26, + "kind": "external", + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 27, + "kind": "external", + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int8Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 28, + "kind": "external", + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint8Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 29, + "kind": "external", + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint8ClampedArray", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 30, + "kind": "external", + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int16Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 31, + "kind": "external", + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint16Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 32, + "kind": "external", + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 33, + "kind": "external", + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 34, + "kind": "external", + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Float32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 35, + "kind": "external", + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Float64Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 36, + "kind": "external", + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Map", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 37, + "kind": "external", + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Set", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 38, + "kind": "external", + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~WeakMap", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 39, + "kind": "external", + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~WeakSet", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 40, + "kind": "external", + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~ArrayBuffer", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 41, + "kind": "external", + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~DataView", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 42, + "kind": "external", + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~JSON", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 43, + "kind": "external", + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Promise", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 44, + "kind": "external", + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Generator", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 45, + "kind": "external", + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~GeneratorFunction", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 46, + "kind": "external", + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Reflect", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 47, + "kind": "external", + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Proxy", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 48, + "kind": "file", + "name": "src/all.js", + "content": "/**\n * All.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n */\nconst all = (a, i, j) => {\n\tfor (; i < j; ++i) {\n\t\tif (!a[i]) {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\treturn true;\n};\n\nexport default all;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/all.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 49, + "kind": "function", + "name": "all", + "memberof": "src/all.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/all.js~all", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/all.js", + "importStyle": "all", + "description": "All.", + "lineNumber": 9, + "params": [ + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 50, + "kind": "file", + "name": "src/any.js", + "content": "/**\n * Any.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {boolean}\n */\nconst any = (a, i, j) => {\n\tfor (; i < j; ++i) {\n\t\tif (a[i]) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n};\n\nexport default any;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/any.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 51, + "kind": "function", + "name": "any", + "memberof": "src/any.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/any.js~any", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/any.js", + "importStyle": "any", + "description": "Any.", + "lineNumber": 9, + "params": [ + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 52, + "kind": "file", + "name": "src/argmax.js", + "content": "/**\n * Argmax.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n */\nconst argmax = (compare, a, i, j) => {\n\tif (i >= j) {\n\t\treturn undefined;\n\t}\n\n\tlet argmaxSoFar = i;\n\tlet maxSoFar = a[argmaxSoFar];\n\n\tfor (++i; i < j; ++i) {\n\t\tconst candidate = a[i];\n\n\t\tif (compare(candidate, maxSoFar) > 0) {\n\t\t\targmaxSoFar = i;\n\t\t\tmaxSoFar = candidate;\n\t\t}\n\t}\n\n\treturn argmaxSoFar;\n};\n\nexport default argmax;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/argmax.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 53, + "kind": "function", + "name": "argmax", + "memberof": "src/argmax.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/argmax.js~argmax", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/argmax.js", + "importStyle": "argmax", + "description": "Argmax.", + "lineNumber": 10, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "compare", + "description": "" + }, + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 54, + "kind": "file", + "name": "src/argmin.js", + "content": "/**\n * Argmin.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {number}\n */\nconst argmin = (compare, a, i, j) => {\n\tif (i >= j) {\n\t\treturn undefined;\n\t}\n\n\tlet argminSoFar = i;\n\tlet minSoFar = a[argminSoFar];\n\n\tfor (++i; i < j; ++i) {\n\t\tconst candidate = a[i];\n\n\t\tif (compare(candidate, minSoFar) < 0) {\n\t\t\targminSoFar = i;\n\t\t\tminSoFar = candidate;\n\t\t}\n\t}\n\n\treturn argminSoFar;\n};\n\nexport default argmin;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/argmin.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 55, + "kind": "function", + "name": "argmin", + "memberof": "src/argmin.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/argmin.js~argmin", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/argmin.js", + "importStyle": "argmin", + "description": "Argmin.", + "lineNumber": 10, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "compare", + "description": "" + }, + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 56, + "kind": "file", + "name": "src/index.js", + "content": "export {default as all} from './all.js';\nexport {default as any} from './any.js';\nexport {default as argmax} from './argmax.js';\nexport {default as argmin} from './argmin.js';\nexport {default as max} from './max.js';\nexport {default as min} from './min.js';\nexport {default as reduce} from './reduce.js';\nexport {default as sum} from './sum.js';\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 57, + "kind": "file", + "name": "src/max.js", + "content": "/**\n * Max.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n */\nconst max = (compare, a, i, j) => {\n\tif (i >= j) {\n\t\treturn undefined;\n\t}\n\n\tlet maxSoFar = a[i];\n\n\tfor (++i; i < j; ++i) {\n\t\tconst candidate = a[i];\n\n\t\tif (compare(candidate, maxSoFar) > 0) {\n\t\t\tmaxSoFar = candidate;\n\t\t}\n\t}\n\n\treturn maxSoFar;\n};\n\nexport default max;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/max.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 58, + "kind": "function", + "name": "max", + "memberof": "src/max.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/max.js~max", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/max.js", + "importStyle": "max", + "description": "Max.", + "lineNumber": 10, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "compare", + "description": "" + }, + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "any" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 59, + "kind": "file", + "name": "src/min.js", + "content": "/**\n * Min.\n *\n * @param {Function} compare\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @return {any}\n */\nconst min = (compare, a, i, j) => {\n\tif (i >= j) {\n\t\treturn undefined;\n\t}\n\n\tlet minSoFar = a[i];\n\n\tfor (++i; i < j; ++i) {\n\t\tconst candidate = a[i];\n\n\t\tif (compare(candidate, minSoFar) < 0) {\n\t\t\tminSoFar = candidate;\n\t\t}\n\t}\n\n\treturn minSoFar;\n};\n\nexport default min;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/min.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 60, + "kind": "function", + "name": "min", + "memberof": "src/min.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/min.js~min", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/min.js", + "importStyle": "min", + "description": "Min.", + "lineNumber": 10, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "compare", + "description": "" + }, + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "any" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 61, + "kind": "file", + "name": "src/reduce.js", + "content": "/**\n * Reduce.\n *\n * Applies the accumulator function iteratively on the\n * last return value of the accumulator and the current\n * value in the array. The initial last return value of the accumulator is the\n * initializer parameter.\n *\n * @param {Function} accumulator\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {any} initializer\n * @return {any}\n */\nconst reduce = (accumulator, a, i, j, initializer) => {\n\tif (i >= j) {\n\t\treturn initializer;\n\t}\n\n\tfor (; i < j; ++i) {\n\t\tinitializer = accumulator(initializer, a[i]);\n\t}\n\n\treturn initializer;\n};\n\nexport default reduce;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/reduce.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 62, + "kind": "function", + "name": "reduce", + "memberof": "src/reduce.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/reduce.js~reduce", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/reduce.js", + "importStyle": "reduce", + "description": "Reduce.\n\nApplies the accumulator function iteratively on the\nlast return value of the accumulator and the current\nvalue in the array. The initial last return value of the accumulator is the\ninitializer parameter.", + "lineNumber": 16, + "params": [ + { + "nullable": null, + "types": [ + "Function" + ], + "spread": false, + "optional": false, + "name": "accumulator", + "description": "" + }, + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + }, + { + "nullable": null, + "types": [ + "any" + ], + "spread": false, + "optional": false, + "name": "initializer", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "any" + ], + "spread": false, + "description": "" + } + }, + { + "__docId__": 63, + "kind": "file", + "name": "src/sum.js", + "content": "/**\n * Sum.\n *\n * @param {ArrayLike} a\n * @param {number} i\n * @param {number} j\n * @param {number|bigint} zero\n * @return {number|bigint}\n */\nconst sum = (a, i, j, zero = 0) => {\n\tif (i >= j) {\n\t\treturn zero;\n\t}\n\n\tlet total = a[i];\n\n\tfor (++i; i < j; ++i) {\n\t\ttotal += a[i];\n\t}\n\n\treturn total;\n};\n\nexport default sum;\n", + "static": true, + "longname": "/home/runner/work/reduce/reduce/src/sum.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 64, + "kind": "function", + "name": "sum", + "memberof": "src/sum.js", + "generator": false, + "async": false, + "static": true, + "longname": "src/sum.js~sum", + "access": "public", + "export": true, + "importPath": "@array-like/reduce/src/sum.js", + "importStyle": "sum", + "description": "Sum.", + "lineNumber": 10, + "params": [ + { + "nullable": null, + "types": [ + "ArrayLike" + ], + "spread": false, + "optional": false, + "name": "a", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "i", + "description": "" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "j", + "description": "" + }, + { + "nullable": null, + "types": [ + "number", + "bigint" + ], + "spread": false, + "optional": false, + "name": "zero", + "description": "" + } + ], + "return": { + "nullable": null, + "types": [ + "number", + "bigint" + ], + "spread": false, + "description": "" + } + }, + { + "kind": "index", + "content": ":bowl_with_spoon: [@array-like/reduce](https://array-like.github.io/reduce)\n==\n\nArrayLike reducers for JavaScript.\nSee [docs](https://array-like.github.io/reduce/index.html).\n\n```js\nimport {shuffle} from '@randomized/random';\nimport {_calloc} from '@array-like/alloc'\nimport {iota} from '@array-like/fill';\nimport {max} from '@array-like/reduce';\nimport {increasing} from '@total-order/primitive';\n\nconst calloc = _calloc(Int32Array);\nconst n = 100;\nconst a = calloc(n);\niota(a, 0, n, 0);\nshuffle(a, 0, n);\nmax(increasing, a, 0, n); // 99\n```\n\n[![License](https://img.shields.io/github/license/array-like/reduce.svg)](https://raw.githubusercontent.com/array-like/reduce/main/LICENSE)\n[![Version](https://img.shields.io/npm/v/@array-like/reduce.svg)](https://www.npmjs.org/package/@array-like/reduce)\n[![Tests](https://img.shields.io/github/workflow/status/array-like/reduce/ci:test?event=push&label=tests)](https://github.com/array-like/reduce/actions/workflows/ci:test.yml?query=branch:main)\n[![Dependencies](https://img.shields.io/david/array-like/reduce.svg)](https://david-dm.org/array-like/reduce)\n[![Dev dependencies](https://img.shields.io/david/dev/array-like/reduce.svg)](https://david-dm.org/array-like/reduce?type=dev)\n[![GitHub issues](https://img.shields.io/github/issues/array-like/reduce.svg)](https://github.com/array-like/reduce/issues)\n[![Downloads](https://img.shields.io/npm/dm/@array-like/reduce.svg)](https://www.npmjs.org/package/@array-like/reduce)\n\n[![Code issues](https://img.shields.io/codeclimate/issues/array-like/reduce.svg)](https://codeclimate.com/github/array-like/reduce/issues)\n[![Code maintainability](https://img.shields.io/codeclimate/maintainability/array-like/reduce.svg)](https://codeclimate.com/github/array-like/reduce/trends/churn)\n[![Code coverage (cov)](https://img.shields.io/codecov/c/gh/array-like/reduce/main.svg)](https://codecov.io/gh/array-like/reduce)\n[![Code technical debt](https://img.shields.io/codeclimate/tech-debt/array-like/reduce.svg)](https://codeclimate.com/github/array-like/reduce/trends/technical_debt)\n[![Documentation](https://array-like.github.io/reduce/badge.svg)](https://array-like.github.io/reduce/source.html)\n[![Package size](https://img.shields.io/bundlephobia/minzip/@array-like/reduce)](https://bundlephobia.com/result?p=@array-like/reduce)\n", + "longname": "/home/runner/work/reduce/reduce/README.md", + "name": "./README.md", + "static": true, + "access": "public" + }, + { + "kind": "packageJSON", + "content": "{\n \"name\": \"@array-like/reduce\",\n \"description\": \"ArrayLike reducers for JavaScript\",\n \"version\": \"0.0.1\",\n \"license\": \"AGPL-3.0\",\n \"author\": \"make-github-pseudonymous-again\",\n \"homepage\": \"https://array-like.github.io/reduce\",\n \"repository\": {\n \"url\": \"https://github.com/array-like/reduce\",\n \"type\": \"git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/array-like/reduce/issues\"\n },\n \"keywords\": [\n \"all\",\n \"any\",\n \"argmax\",\n \"argmin\",\n \"array\",\n \"like\",\n \"max\",\n \"min\",\n \"reduce\",\n \"sum\"\n ],\n \"sideEffects\": false,\n \"type\": \"module\",\n \"source\": \"src/index.js\",\n \"main\": \"dist/index.cjs\",\n \"module\": \"dist/index.module.js\",\n \"esmodule\": \"dist/index.modern.js\",\n \"umd:main\": \"dist/index.umd.js\",\n \"unpkg\": \"dist/index.umd.js\",\n \"exports\": {\n \".\": {\n \"browser\": \"./dist/index.module.js\",\n \"umd\": \"./dist/index.umd.js\",\n \"require\": \"./dist/index.cjs\",\n \"default\": \"./dist/index.modern.js\"\n }\n },\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"build\": \"NODE_ENV=production microbundle\",\n \"build-docs\": \"esdoc\",\n \"build-gh-pages\": \"npm run build-docs\",\n \"ci:build\": \"npm run build\",\n \"ci:test\": \"npm run lint-config && npm run lint && npm run cover\",\n \"commit-msg\": \"commitlint --edit\",\n \"cover\": \"NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test\",\n \"debug\": \"NODE_ENV=debug npm run test -- -st --fail-fast\",\n \"dev\": \"npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast\",\n \"install-hooks\": \"husky install\",\n \"lint\": \"xo\",\n \"lint-and-fix\": \"npm run lint -- --fix\",\n \"lint-config\": \"fixpack --dryRun\",\n \"lint-config-and-fix\": \"fixpack || fixpack\",\n \"postinstall\": \"npm run install-hooks\",\n \"postpublish\": \"pinst --enable\",\n \"precommit\": \"lint-staged\",\n \"prepare\": \"npm run build\",\n \"prepublishOnly\": \"pinst --disable\",\n \"release\": \"np --message ':hatching_chick: release: Bumping to v%s.'\",\n \"test\": \"ava\"\n },\n \"dependencies\": {},\n \"devDependencies\": {\n \"@array-like/alloc\": \"^0.0.1\",\n \"@babel/core\": \"7.14.8\",\n \"@babel/preset-env\": \"7.14.8\",\n \"@babel/register\": \"7.14.5\",\n \"@commitlint/cli\": \"13.1.0\",\n \"@functional-abstraction/operator\": \"^3.0.0\",\n \"@js-library/commitlint-config\": \"0.0.4\",\n \"@randomized/random\": \"^4.0.0\",\n \"@total-order/primitive\": \"^1.0.1\",\n \"ava\": \"3.15.0\",\n \"babel-plugin-transform-remove-console\": \"6.9.4\",\n \"babel-plugin-unassert\": \"3.1.0\",\n \"babel-preset-power-assert\": \"3.0.0\",\n \"c8\": \"7.7.3\",\n \"esdoc\": \"1.1.0\",\n \"esdoc-ecmascript-proposal-plugin\": \"1.0.0\",\n \"esdoc-inject-script-plugin\": \"1.0.0\",\n \"esdoc-inject-style-plugin\": \"1.0.0\",\n \"esdoc-standard-plugin\": \"1.0.0\",\n \"fixpack\": \"4.0.0\",\n \"husky\": \"7.0.1\",\n \"lint-staged\": \"11.1.1\",\n \"microbundle\": \"0.13.1\",\n \"np\": \"7.5.0\",\n \"pinst\": \"2.1.6\",\n \"power-assert\": \"1.6.1\",\n \"regenerator-runtime\": \"0.13.9\",\n \"xo\": \"0.39.1\"\n },\n \"ava\": {\n \"files\": [\n \"test/src/**/*\"\n ],\n \"require\": [\n \"regenerator-runtime/runtime\",\n \"@babel/register\"\n ],\n \"timeout\": \"1m\"\n },\n \"babel\": {\n \"sourceMaps\": true,\n \"presets\": [\n [\n \"@babel/preset-env\",\n {\n \"targets\": \"current node\"\n }\n ]\n ],\n \"plugins\": [\n [\n \"transform-remove-console\",\n {\n \"exclude\": [\n \"log\",\n \"error\",\n \"warn\"\n ]\n }\n ]\n ],\n \"env\": {\n \"debug\": {\n \"presets\": [\n \"babel-preset-power-assert\"\n ],\n \"plugins\": [\n [\n \"transform-remove-console\",\n {\n \"exclude\": [\n \"debug\",\n \"log\",\n \"error\",\n \"warn\"\n ]\n }\n ]\n ]\n },\n \"test\": {\n \"presets\": [\n \"babel-preset-power-assert\"\n ]\n },\n \"cover\": {\n \"sourceMaps\": \"both\",\n \"presets\": [\n \"babel-preset-power-assert\"\n ]\n },\n \"development\": {\n \"presets\": [\n [\n \"@babel/preset-env\",\n {\n \"targets\": [\n \"defaults\",\n \"maintained node versions\"\n ]\n }\n ],\n \"babel-preset-power-assert\"\n ]\n },\n \"production\": {\n \"presets\": [\n [\n \"@babel/preset-env\",\n {\n \"targets\": [\n \"defaults\",\n \"maintained node versions\"\n ]\n }\n ]\n ],\n \"plugins\": [\n \"babel-plugin-unassert\"\n ]\n }\n }\n },\n \"lint-staged\": {\n \"*.js\": [\n \"npm run lint-and-fix\"\n ],\n \"package.json\": [\n \"npm run lint-config-and-fix\"\n ]\n },\n \"prettier\": {\n \"trailingComma\": \"all\"\n },\n \"xo\": {\n \"prettier\": true,\n \"plugins\": [\n \"unicorn\"\n ],\n \"rules\": {\n \"unicorn/filename-case\": [\n \"error\",\n {\n \"cases\": {\n \"camelCase\": true,\n \"pascalCase\": true\n }\n }\n ]\n },\n \"overrides\": [\n {\n \"files\": [\n \"doc/**\"\n ],\n \"env\": \"browser\"\n }\n ]\n }\n}\n", + "longname": "/home/runner/work/reduce/reduce/package.json", + "name": "package.json", + "static": true, + "access": "public" + }, + { + "kind": "manualIndex", + "globalIndex": false, + "content": null, + "longname": "", + "static": true, + "access": "public" + }, + { + "kind": "manual", + "longname": "/home/runner/work/reduce/reduce/doc/manual/overview.md", + "name": "./doc/manual/overview.md", + "content": "# Overview\n", + "static": true, + "access": "public" + }, + { + "kind": "manual", + "longname": "/home/runner/work/reduce/reduce/doc/manual/installation.md", + "name": "./doc/manual/installation.md", + "content": "# Installation\n\nCan be managed using\n[yarn](https://yarnpkg.com/en/docs),\n[npm](https://docs.npmjs.com),\nor [jspm](https://jspm.org/docs).\n\n\n### yarn\n```terminal\nyarn add @array-like/reduce\n```\n\n### npm\n```terminal\nnpm install @array-like/reduce --save\n```\n\n### jspm\n```terminal\njspm install npm:@array-like/reduce\n```\n", + "static": true, + "access": "public" + }, + { + "kind": "manual", + "longname": "/home/runner/work/reduce/reduce/doc/manual/usage.md", + "name": "./doc/manual/usage.md", + "content": "# Usage\n\nImport the library where needed\n```js\nconst reduce = await import('@array-like/reduce');\n// or\nimport * as reduce from '@array-like/reduce';\n```\n", + "static": true, + "access": "public" + }, + { + "kind": "manual", + "longname": "/home/runner/work/reduce/reduce/doc/manual/example.md", + "name": "./doc/manual/example.md", + "content": "# Examples\n\n> More examples in [the test files](https://github.com/array-like/reduce/tree/main/test/src).\n", + "static": true, + "access": "public" + } +] \ No newline at end of file diff --git a/inject/css/0-style.css b/inject/css/0-style.css new file mode 100644 index 0000000..ed56934 --- /dev/null +++ b/inject/css/0-style.css @@ -0,0 +1,52 @@ +h1, +h2, +.navigation, +.layout-container > header, +footer +{ + border: none; +} + +.project-name { + color: #FC913A; + font-weight: bold; +} + +.layout-container > header > a.repo-url-github { + font-size: inherit; + display: inline; + background: none; + vertical-align: inherit; +} + +.search-box img { + display: none; +} + +.search-box::before{ + content: "search"; +} + +.search-input-edge { + height: 0px; +} + +.search-result { + width: 300px; + margin-left: 42px; + box-shadow: 1px 1px 13px rgba(0,0,0,0.2); +} + +.search-input { + visibility: visible; +} + +.search-result li.search-separator { + text-transform: capitalize; + background-color: #ccc; +} + +span[data-ice="signature"] > span { + /*font-weight: bold;*/ + font-style: italic; +} diff --git a/inject/script/0-header.js b/inject/script/0-header.js new file mode 100644 index 0000000..9d4a2b9 --- /dev/null +++ b/inject/script/0-header.js @@ -0,0 +1,30 @@ +const domReady = function (callback) { + const state = document.readyState; + if (state === 'interactive' || state === 'complete') { + callback(); + } else { + document.addEventListener('DOMContentLoaded', callback); + } +}; + +domReady(() => { + const projectname = document.createElement('a'); + projectname.classList.add('project-name'); + projectname.text = 'array-like/reduce'; + projectname.href = './index.html'; + + const header = document.querySelector('header'); + header.insertBefore(projectname, header.firstChild); + + const testlink = document.querySelector('header > a[data-ice="testLink"]'); + testlink.href = 'https://app.codecov.io/gh/array-like/reduce'; + testlink.target = '_BLANK'; + + const searchBox = document.querySelector('.search-box'); + const input = document.querySelector('.search-input'); + + // Active search box when focus on searchBox. + input.addEventListener('focus', () => { + searchBox.classList.add('active'); + }); +}); diff --git a/lint.json b/lint.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/lint.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/manual/example.html b/manual/example.html new file mode 100644 index 0000000..5e6cc42 --- /dev/null +++ b/manual/example.html @@ -0,0 +1,79 @@ + + + + + + Manual | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

Examples

+

More examples in the test files.

+
+
+
+ + + + + + + + + + + + diff --git a/manual/index.html b/manual/index.html new file mode 100644 index 0000000..1eb576e --- /dev/null +++ b/manual/index.html @@ -0,0 +1,119 @@ + + + + + + Manual | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +
+ + + + +
+ +
+
+

Overview

+ +
+
+
+
+

Installation

Can be managed using +yarn, +npm, +or jspm.

yarn

yarn add @array-like/reduce
+

npm

npm install @array-like/reduce --save
+

jspm

jspm install npm:@array-like/reduce
+
+ +
+
+
+
+

Usage

Import the library where needed

const reduce = await import('@array-like/reduce');
+// or
+import * as reduce from '@array-like/reduce';
+
+ +
+
+
+
+

Examples

+

More examples in the test files.

+
+ +
+
+
+
+
+ + + + + + + + + + + + diff --git a/manual/installation.html b/manual/installation.html new file mode 100644 index 0000000..f45f105 --- /dev/null +++ b/manual/installation.html @@ -0,0 +1,86 @@ + + + + + + Manual | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

Installation

Can be managed using +yarn, +npm, +or jspm.

+

yarn

yarn add @array-like/reduce
+
+

npm

npm install @array-like/reduce --save
+
+

jspm

jspm install npm:@array-like/reduce
+
+
+
+ + + + + + + + + + + + diff --git a/manual/overview.html b/manual/overview.html new file mode 100644 index 0000000..bf8b08b --- /dev/null +++ b/manual/overview.html @@ -0,0 +1,76 @@ + + + + + + Manual | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

Overview

+
+ + + + + + + + + + + + diff --git a/manual/usage.html b/manual/usage.html new file mode 100644 index 0000000..92108c4 --- /dev/null +++ b/manual/usage.html @@ -0,0 +1,81 @@ + + + + + + Manual | @array-like/reduce + + + + + + + +
+ Home + Manual + Reference + Source + + +
+ + + +

Usage

Import the library where needed

+
const reduce = await import('@array-like/reduce');
+// or
+import * as reduce from '@array-like/reduce';
+
+
+
+ + + + + + + + + + + + diff --git a/script/inherited-summary.js b/script/inherited-summary.js new file mode 100644 index 0000000..0a35b6d --- /dev/null +++ b/script/inherited-summary.js @@ -0,0 +1,28 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TABLE' && parent.classList.contains('summary')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var tbody = parent.querySelector('tbody'); + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + tbody.style.display = 'none'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + tbody.style.display = 'block'; + } + } + + var buttons = document.querySelectorAll('.inherited-summary thead .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } +})(); diff --git a/script/inner-link.js b/script/inner-link.js new file mode 100644 index 0000000..ad1c942 --- /dev/null +++ b/script/inner-link.js @@ -0,0 +1,32 @@ +// inner link(#foo) can not correctly scroll, because page has fixed header, +// so, I manually scroll. +(function(){ + var matched = location.hash.match(/errorLines=([\d,]+)/); + if (matched) return; + + function adjust() { + window.scrollBy(0, -55); + var el = document.querySelector('.inner-link-active'); + if (el) el.classList.remove('inner-link-active'); + + // ``[ ] . ' " @`` are not valid in DOM id. so must escape these. + var id = location.hash.replace(/([\[\].'"@$])/g, '\\$1'); + var el = document.querySelector(id); + if (el) el.classList.add('inner-link-active'); + } + + window.addEventListener('hashchange', adjust); + + if (location.hash) { + setTimeout(adjust, 0); + } +})(); + +(function(){ + var els = document.querySelectorAll('[href^="#"]'); + var href = location.href.replace(/#.*$/, ''); // remove existed hash + for (var i = 0; i < els.length; i++) { + var el = els[i]; + el.href = href + el.getAttribute('href'); // because el.href is absolute path + } +})(); diff --git a/script/manual.js b/script/manual.js new file mode 100644 index 0000000..de0bfe2 --- /dev/null +++ b/script/manual.js @@ -0,0 +1,12 @@ +(function(){ + var matched = location.pathname.match(/\/(manual\/.*\.html)$/); + if (!matched) return; + + var currentName = matched[1]; + var cssClass = '.navigation .manual-toc li[data-link="' + currentName + '"]'; + var styleText = cssClass + '{ display: block; }\n'; + styleText += cssClass + '.indent-h1 a { color: #039BE5 }'; + var style = document.createElement('style'); + style.textContent = styleText; + document.querySelector('head').appendChild(style); +})(); diff --git a/script/patch-for-local.js b/script/patch-for-local.js new file mode 100644 index 0000000..5756d13 --- /dev/null +++ b/script/patch-for-local.js @@ -0,0 +1,8 @@ +(function(){ + if (location.protocol === 'file:') { + var elms = document.querySelectorAll('a[href="./"]'); + for (var i = 0; i < elms.length; i++) { + elms[i].href = './index.html'; + } + } +})(); diff --git a/script/prettify/Apache-License-2.0.txt b/script/prettify/Apache-License-2.0.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/script/prettify/Apache-License-2.0.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/script/prettify/prettify.js b/script/prettify/prettify.js new file mode 100755 index 0000000..3b74b5b --- /dev/null +++ b/script/prettify/prettify.js @@ -0,0 +1,46 @@ +!function(){/* + + Copyright (C) 2006 Google Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ +window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var a=e.charAt(1);return(b=w[a])?b:"0"<=a&&"7">=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e= +[];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,g=b.length;ak||122k||90k||122h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(f(h[1])));c.push("]");return c.join("")}function v(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],g=0,h=0;g/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var v=(b=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+ +("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+v+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i, +null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return G(d,f)}function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.className))if("br"===a.nodeName)v(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,q=d.match(n);q&&(c=d.substring(0,q.index),a.nodeValue=c,(d=d.substring(q.index+q[0].length))&& +a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),v(a),c||a.parentNode.removeChild(a))}}function v(a){function b(a,c){var d=c?a.cloneNode(!1):a,k=a.parentNode;if(k){var k=b(k,1),e=a.nextSibling;k.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,k.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var A=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,l=a.ownerDocument,m=l.createElement("li");a.firstChild;)m.appendChild(a.firstChild); +for(var c=[m],p=0;p=+v[1],d=/\n/g,A=a.a,n=A.length,f=0,l=a.c,m=l.length,b=0,c=a.g,p=c.length,w=0;c[p]=n;var r,e;for(e=r=0;e=h&&(b+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(x){E.console&&console.log(x&&x.stack||x)}}var E=window,C=["break,continue,do,else,for,if,return,while"], +F=[[C,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], +O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"], +F=[F,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],Q=[C,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[C,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"], +S=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,W=/\S/,X=y({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,C],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};t(X,["default-code"]);t(G([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));t(G([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null, +"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);t(G([],[["atv",/^[\s\S]+/]]),["uq.val"]);t(y({keywords:H, +hashComments:!0,cStyleComments:!0,types:S}),"c cc cpp cxx cyc m".split(" "));t(y({keywords:"null,true,false"}),["json"]);t(y({keywords:P,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]);t(y({keywords:O,cStyleComments:!0}),["java"]);t(y({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);t(y({keywords:Q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);t(y({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", +hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]);t(y({keywords:R,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);t(y({keywords:F,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]);t(y({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0, +regexLiterals:!0}),["coffee"]);t(G([],[["str",/^[\s\S]+/]]),["regex"]);var Y=E.PR={createSimpleLexer:G,registerLangHandler:t,sourceDecorator:y,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="
"+a+"
"; +b=b.firstChild;f&&L(b,f,!0);M({j:d,m:f,h:b,l:1,a:null,i:null,c:null,g:null});return b.innerHTML},prettyPrint:E.prettyPrint=function(a,d){function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p' + pair[2] + ''); + } + } + + var innerHTML = ''; + for (kind in html) { + var list = html[kind]; + if (!list.length) continue; + innerHTML += '
  • ' + kind + '
  • \n' + list.join('\n'); + } + result.innerHTML = innerHTML; + if (innerHTML) result.style.display = 'block'; + selectedIndex = -1; + }); + + // down, up and enter key are pressed, select search result. + input.addEventListener('keydown', function(ev){ + if (ev.keyCode === 40) { + // arrow down + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex + 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex + 2]; + selectedIndex++; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex++; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 38) { + // arrow up + var current = result.children[selectedIndex]; + var selected = result.children[selectedIndex - 1]; + if (selected && selected.classList.contains('search-separator')) { + var selected = result.children[selectedIndex - 2]; + selectedIndex--; + } + + if (selected) { + if (current) current.classList.remove('selected'); + selectedIndex--; + selected.classList.add('selected'); + } + } else if (ev.keyCode === 13) { + // enter + var current = result.children[selectedIndex]; + if (current) { + var link = current.querySelector('a'); + if (link) location.href = link.href; + } + } else { + return; + } + + ev.preventDefault(); + }); + + // select search result when search result is mouse over. + result.addEventListener('mousemove', function(ev){ + var current = result.children[selectedIndex]; + if (current) current.classList.remove('selected'); + + var li = ev.target; + while (li) { + if (li.nodeName === 'LI') break; + li = li.parentElement; + } + + if (li) { + selectedIndex = Array.prototype.indexOf.call(result.children, li); + li.classList.add('selected'); + } + }); + + // clear search result when body is clicked. + document.body.addEventListener('click', function(ev){ + selectedIndex = -1; + result.style.display = 'none'; + result.innerHTML = ''; + }); + +})(); diff --git a/script/search_index.js b/script/search_index.js new file mode 100644 index 0000000..becfec2 --- /dev/null +++ b/script/search_index.js @@ -0,0 +1,386 @@ +window.esdocSearchIndex = [ + [ + "@array-like/reduce/src/all.js~all", + "function/index.html#static-function-all", + "all @array-like/reduce/src/all.js", + "function" + ], + [ + "@array-like/reduce/src/any.js~any", + "function/index.html#static-function-any", + "any @array-like/reduce/src/any.js", + "function" + ], + [ + "@array-like/reduce/src/argmax.js~argmax", + "function/index.html#static-function-argmax", + "argmax @array-like/reduce/src/argmax.js", + "function" + ], + [ + "@array-like/reduce/src/argmin.js~argmin", + "function/index.html#static-function-argmin", + "argmin @array-like/reduce/src/argmin.js", + "function" + ], + [ + "@array-like/reduce/src/max.js~max", + "function/index.html#static-function-max", + "max @array-like/reduce/src/max.js", + "function" + ], + [ + "@array-like/reduce/src/min.js~min", + "function/index.html#static-function-min", + "min @array-like/reduce/src/min.js", + "function" + ], + [ + "@array-like/reduce/src/reduce.js~reduce", + "function/index.html#static-function-reduce", + "reduce @array-like/reduce/src/reduce.js", + "function" + ], + [ + "@array-like/reduce/src/sum.js~sum", + "function/index.html#static-function-sum", + "sum @array-like/reduce/src/sum.js", + "function" + ], + [ + "src/.external-ecmascript.js~array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "src/.external-ecmascript.js~Array", + "external" + ], + [ + "src/.external-ecmascript.js~arraybuffer", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "src/.external-ecmascript.js~ArrayBuffer", + "external" + ], + [ + "src/.external-ecmascript.js~boolean", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "src/.external-ecmascript.js~Boolean", + "external" + ], + [ + "src/.external-ecmascript.js~dataview", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "src/.external-ecmascript.js~DataView", + "external" + ], + [ + "src/.external-ecmascript.js~date", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "src/.external-ecmascript.js~Date", + "external" + ], + [ + "src/.external-ecmascript.js~error", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "src/.external-ecmascript.js~Error", + "external" + ], + [ + "src/.external-ecmascript.js~evalerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "src/.external-ecmascript.js~EvalError", + "external" + ], + [ + "src/.external-ecmascript.js~float32array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "src/.external-ecmascript.js~Float32Array", + "external" + ], + [ + "src/.external-ecmascript.js~float64array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "src/.external-ecmascript.js~Float64Array", + "external" + ], + [ + "src/.external-ecmascript.js~function", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "src/.external-ecmascript.js~Function", + "external" + ], + [ + "src/.external-ecmascript.js~generator", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "src/.external-ecmascript.js~Generator", + "external" + ], + [ + "src/.external-ecmascript.js~generatorfunction", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "src/.external-ecmascript.js~GeneratorFunction", + "external" + ], + [ + "src/.external-ecmascript.js~infinity", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "src/.external-ecmascript.js~Infinity", + "external" + ], + [ + "src/.external-ecmascript.js~int16array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "src/.external-ecmascript.js~Int16Array", + "external" + ], + [ + "src/.external-ecmascript.js~int32array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "src/.external-ecmascript.js~Int32Array", + "external" + ], + [ + "src/.external-ecmascript.js~int8array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "src/.external-ecmascript.js~Int8Array", + "external" + ], + [ + "src/.external-ecmascript.js~internalerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "src/.external-ecmascript.js~InternalError", + "external" + ], + [ + "src/.external-ecmascript.js~json", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "src/.external-ecmascript.js~JSON", + "external" + ], + [ + "src/.external-ecmascript.js~map", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "src/.external-ecmascript.js~Map", + "external" + ], + [ + "src/.external-ecmascript.js~nan", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "src/.external-ecmascript.js~NaN", + "external" + ], + [ + "src/.external-ecmascript.js~number", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "src/.external-ecmascript.js~Number", + "external" + ], + [ + "src/.external-ecmascript.js~object", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "src/.external-ecmascript.js~Object", + "external" + ], + [ + "src/.external-ecmascript.js~promise", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "src/.external-ecmascript.js~Promise", + "external" + ], + [ + "src/.external-ecmascript.js~proxy", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "src/.external-ecmascript.js~Proxy", + "external" + ], + [ + "src/.external-ecmascript.js~rangeerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "src/.external-ecmascript.js~RangeError", + "external" + ], + [ + "src/.external-ecmascript.js~referenceerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "src/.external-ecmascript.js~ReferenceError", + "external" + ], + [ + "src/.external-ecmascript.js~reflect", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "src/.external-ecmascript.js~Reflect", + "external" + ], + [ + "src/.external-ecmascript.js~regexp", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "src/.external-ecmascript.js~RegExp", + "external" + ], + [ + "src/.external-ecmascript.js~set", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "src/.external-ecmascript.js~Set", + "external" + ], + [ + "src/.external-ecmascript.js~string", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "src/.external-ecmascript.js~String", + "external" + ], + [ + "src/.external-ecmascript.js~symbol", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "src/.external-ecmascript.js~Symbol", + "external" + ], + [ + "src/.external-ecmascript.js~syntaxerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "src/.external-ecmascript.js~SyntaxError", + "external" + ], + [ + "src/.external-ecmascript.js~typeerror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "src/.external-ecmascript.js~TypeError", + "external" + ], + [ + "src/.external-ecmascript.js~urierror", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "src/.external-ecmascript.js~URIError", + "external" + ], + [ + "src/.external-ecmascript.js~uint16array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "src/.external-ecmascript.js~Uint16Array", + "external" + ], + [ + "src/.external-ecmascript.js~uint32array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "src/.external-ecmascript.js~Uint32Array", + "external" + ], + [ + "src/.external-ecmascript.js~uint8array", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "src/.external-ecmascript.js~Uint8Array", + "external" + ], + [ + "src/.external-ecmascript.js~uint8clampedarray", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "src/.external-ecmascript.js~Uint8ClampedArray", + "external" + ], + [ + "src/.external-ecmascript.js~weakmap", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "src/.external-ecmascript.js~WeakMap", + "external" + ], + [ + "src/.external-ecmascript.js~weakset", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "src/.external-ecmascript.js~WeakSet", + "external" + ], + [ + "src/.external-ecmascript.js~boolean", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "src/.external-ecmascript.js~boolean", + "external" + ], + [ + "src/.external-ecmascript.js~function", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "src/.external-ecmascript.js~function", + "external" + ], + [ + "src/.external-ecmascript.js~null", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "src/.external-ecmascript.js~null", + "external" + ], + [ + "src/.external-ecmascript.js~number", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "src/.external-ecmascript.js~number", + "external" + ], + [ + "src/.external-ecmascript.js~object", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "src/.external-ecmascript.js~object", + "external" + ], + [ + "src/.external-ecmascript.js~string", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "src/.external-ecmascript.js~string", + "external" + ], + [ + "src/.external-ecmascript.js~undefined", + "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "src/.external-ecmascript.js~undefined", + "external" + ], + [ + "src/all.js", + "file/src/all.js.html", + "src/all.js", + "file" + ], + [ + "src/any.js", + "file/src/any.js.html", + "src/any.js", + "file" + ], + [ + "src/argmax.js", + "file/src/argmax.js.html", + "src/argmax.js", + "file" + ], + [ + "src/argmin.js", + "file/src/argmin.js.html", + "src/argmin.js", + "file" + ], + [ + "src/index.js", + "file/src/index.js.html", + "src/index.js", + "file" + ], + [ + "src/max.js", + "file/src/max.js.html", + "src/max.js", + "file" + ], + [ + "src/min.js", + "file/src/min.js.html", + "src/min.js", + "file" + ], + [ + "src/reduce.js", + "file/src/reduce.js.html", + "src/reduce.js", + "file" + ], + [ + "src/sum.js", + "file/src/sum.js.html", + "src/sum.js", + "file" + ] +] \ No newline at end of file diff --git a/script/test-summary.js b/script/test-summary.js new file mode 100644 index 0000000..2abad3b --- /dev/null +++ b/script/test-summary.js @@ -0,0 +1,54 @@ +(function(){ + function toggle(ev) { + var button = ev.target; + var parent = ev.target.parentElement; + while(parent) { + if (parent.tagName === 'TR' && parent.classList.contains('test-interface')) break; + parent = parent.parentElement; + } + + if (!parent) return; + + var direction; + if (button.classList.contains('opened')) { + button.classList.remove('opened'); + button.classList.add('closed'); + direction = 'closed'; + } else { + button.classList.remove('closed'); + button.classList.add('opened'); + direction = 'opened'; + } + + var targetDepth = parseInt(parent.dataset.testDepth, 10) + 1; + var nextElement = parent.nextElementSibling; + while (nextElement) { + var depth = parseInt(nextElement.dataset.testDepth, 10); + if (depth >= targetDepth) { + if (direction === 'opened') { + if (depth === targetDepth) nextElement.style.display = ''; + } else if (direction === 'closed') { + nextElement.style.display = 'none'; + var innerButton = nextElement.querySelector('.toggle'); + if (innerButton && innerButton.classList.contains('opened')) { + innerButton.classList.remove('opened'); + innerButton.classList.add('closed'); + } + } + } else { + break; + } + nextElement = nextElement.nextElementSibling; + } + } + + var buttons = document.querySelectorAll('.test-summary tr.test-interface .toggle'); + for (var i = 0; i < buttons.length; i++) { + buttons[i].addEventListener('click', toggle); + } + + var topDescribes = document.querySelectorAll('.test-summary tr[data-test-depth="0"]'); + for (var i = 0; i < topDescribes.length; i++) { + topDescribes[i].style.display = ''; + } +})(); diff --git a/source.html b/source.html new file mode 100644 index 0000000..f50cb05 --- /dev/null +++ b/source.html @@ -0,0 +1,147 @@ + + + + + + Source | @array-like/reduce + + + + + + + +
    + Home + Manual + Reference + Source + + +
    + + + +

    Source 8/8

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FileIdentifierDocumentSizeLinesUpdated
    src/all.jsall100 %1/1233 byte192021-07-05 10:09:49 (UTC)
    src/any.jsany100 %1/1232 byte192021-07-05 10:09:49 (UTC)
    src/argmax.jsargmax100 %1/1465 byte302021-07-05 10:09:49 (UTC)
    src/argmin.jsargmin100 %1/1465 byte302021-07-05 10:09:49 (UTC)
    src/index.js--346 byte82021-07-05 10:09:49 (UTC)
    src/max.jsmax100 %1/1398 byte282021-07-05 10:09:49 (UTC)
    src/min.jsmin100 %1/1398 byte282021-07-05 10:09:49 (UTC)
    src/reduce.jsreduce100 %1/1604 byte282021-07-05 10:09:49 (UTC)
    src/sum.jssum100 %1/1319 byte242021-07-05 10:09:49 (UTC)
    +
    + + + + + + + + + + + +