From b52efa788fa44dd0b761d7be7b1df39cf246ffd3 Mon Sep 17 00:00:00 2001 From: Antonio Nuno Monteiro Date: Mon, 13 Jan 2025 23:18:07 -0800 Subject: [PATCH] generated JS: add space before while loop condition (#1297) * generated JS: add space before while loop condition * snapshot runtime tests * fix blackbox tests * chore: add changelog entry --- Changes.md | 2 + jscomp/core/js_dump.ml | 2 + jscomp/test/dist/jscomp/test/a_scope_bug.js | 2 +- .../dist/jscomp/test/and_or_tailcall_test.js | 4 +- .../test/dist/jscomp/test/app_root_finder.js | 2 +- jscomp/test/dist/jscomp/test/arith_lexer.js | 2 +- .../dist/jscomp/test/array_subtle_test.js | 2 +- jscomp/test/dist/jscomp/test/array_test.js | 2 +- .../dist/jscomp/test/ast_js_mapper_test.js | 2 +- jscomp/test/dist/jscomp/test/bal_set_mini.js | 4 +- jscomp/test/dist/jscomp/test/bdd.js | 6 +- jscomp/test/dist/jscomp/test/bs_stack_test.js | 14 +- jscomp/test/dist/jscomp/test/class6_test.js | 2 +- jscomp/test/dist/jscomp/test/class7_test.js | 2 +- .../dist/jscomp/test/complex_while_loop.js | 4 +- jscomp/test/dist/jscomp/test/cps_test.js | 2 +- jscomp/test/dist/jscomp/test/demo_int_map.js | 2 +- .../dist/jscomp/test/exception_raise_test.js | 2 +- .../test/dist/jscomp/test/ext_array_test.js | 18 +- .../dist/jscomp/test/ext_filename_test.js | 16 +- jscomp/test/dist/jscomp/test/ext_list_test.js | 52 +- .../dist/jscomp/test/ext_pervasives_test.js | 2 +- .../test/dist/jscomp/test/ext_string_test.js | 36 +- jscomp/test/dist/jscomp/test/fib.js | 2 +- .../dist/jscomp/test/flattern_order_test.js | 2 +- .../dist/jscomp/test/flexible_array_test.js | 2 +- .../dist/jscomp/test/flow_parser_reg_test.js | 128 ++--- .../dist/jscomp/test/format_regression.js | 2 +- jscomp/test/dist/jscomp/test/gpr_1698_test.js | 4 +- jscomp/test/dist/jscomp/test/gpr_1701_test.js | 4 +- jscomp/test/dist/jscomp/test/gpr_1946_test.js | 2 +- jscomp/test/dist/jscomp/test/gpr_2642_test.js | 2 +- jscomp/test/dist/jscomp/test/gpr_3697_test.js | 4 +- jscomp/test/dist/jscomp/test/gpr_405_test.js | 2 +- .../test/dist/jscomp/test/gray_code_test.js | 4 +- jscomp/test/dist/jscomp/test/hamming_test.js | 2 +- .../dist/jscomp/test/inline_edge_cases.js | 8 +- .../test/dist/jscomp/test/inline_map2_test.js | 72 +-- .../test/dist/jscomp/test/inline_map_test.js | 2 +- .../jscomp/test/inline_regression_test.js | 4 +- jscomp/test/dist/jscomp/test/int64_test.js | 4 +- jscomp/test/dist/jscomp/test/int_map.js | 50 +- jscomp/test/dist/jscomp/test/lexer_test.js | 2 +- .../dist/jscomp/test/loop_regression_test.js | 2 +- jscomp/test/dist/jscomp/test/map_find_test.js | 4 +- jscomp/test/dist/jscomp/test/map_test.js | 8 +- jscomp/test/dist/jscomp/test/mario_game.js | 18 +- .../test/dist/jscomp/test/miss_colon_test.js | 4 +- jscomp/test/dist/jscomp/test/number_lexer.js | 2 +- .../dist/jscomp/test/ocaml_parsetree_test.js | 36 +- .../test/dist/jscomp/test/ocaml_proto_test.js | 22 +- jscomp/test/dist/jscomp/test/ocaml_re_test.js | 60 +- .../dist/jscomp/test/ocaml_typedtree_test.js | 534 +++++++++--------- jscomp/test/dist/jscomp/test/offset.js | 52 +- jscomp/test/dist/jscomp/test/parser_api.js | 74 +-- jscomp/test/dist/jscomp/test/qcc.js | 40 +- jscomp/test/dist/jscomp/test/rbset.js | 2 +- .../test/re_or_res/reasonReactRouter.js | 4 +- .../test/dist/jscomp/test/rec_module_test.js | 52 +- .../test/dist/jscomp/test/rec_value_test.js | 4 +- jscomp/test/dist/jscomp/test/scanf_io.js | 4 +- jscomp/test/dist/jscomp/test/set_gen.js | 20 +- jscomp/test/dist/jscomp/test/sexp.js | 12 +- jscomp/test/dist/jscomp/test/sexpm.js | 26 +- .../dist/jscomp/test/simple_lexer_test.js | 2 +- .../dist/jscomp/test/small_inline_test.js | 6 +- jscomp/test/dist/jscomp/test/stack_test.js | 2 +- .../jscomp/test/stdlib_bytes_utf8_test.js | 2 +- jscomp/test/dist/jscomp/test/string_set.js | 6 +- jscomp/test/dist/jscomp/test/string_test.js | 2 +- .../dist/jscomp/test/tailcall_inline_test.js | 2 +- jscomp/test/dist/jscomp/test/test_ari.js | 2 +- jscomp/test/dist/jscomp/test/test_cps.js | 2 +- jscomp/test/dist/jscomp/test/test_fib.js | 4 +- jscomp/test/dist/jscomp/test/test_for_map.js | 50 +- .../test/dist/jscomp/test/test_internalOO.js | 156 ++--- jscomp/test/dist/jscomp/test/test_list.js | 56 +- .../dist/jscomp/test/test_order_tailcall.js | 18 +- jscomp/test/dist/jscomp/test/test_per.js | 10 +- jscomp/test/dist/jscomp/test/test_seq.js | 2 +- jscomp/test/dist/jscomp/test/test_set.js | 24 +- .../dist/jscomp/test/test_simple_tailcall.js | 4 +- .../test/dist/jscomp/test/test_string_map.js | 2 +- jscomp/test/dist/jscomp/test/test_u.js | 2 +- .../dist/jscomp/test/test_while_closure.js | 2 +- .../jscomp/test/test_while_side_effect.js | 4 +- jscomp/test/dist/jscomp/test/ticker.js | 56 +- jscomp/test/dist/jscomp/test/topsort_test.js | 56 +- jscomp/test/dist/jscomp/test/tramp_fib.js | 2 +- jscomp/test/dist/jscomp/test/uncurry_test.js | 2 +- .../test/unsafe_full_apply_primitive.js | 2 +- test/blackbox-tests/mel-as-variants-lists.t | 6 +- 92 files changed, 976 insertions(+), 972 deletions(-) diff --git a/Changes.md b/Changes.md index 939a2975e..2fdeaf363 100644 --- a/Changes.md +++ b/Changes.md @@ -97,6 +97,8 @@ Unreleased ([#1295](https://github.com/melange-re/melange/pull/1295)) - JS generation: move space before comma inside `for` definition ([#1296](https://github.com/melange-re/melange/pull/1296)) +- JS generation: add space before while loop condition + ([#1297](https://github.com/melange-re/melange/pull/1297)) 4.0.1 2024-06-07 --------------- diff --git a/jscomp/core/js_dump.ml b/jscomp/core/js_dump.ml index 154919a24..d9d16170e 100644 --- a/jscomp/core/js_dump.ml +++ b/jscomp/core/js_dump.ml @@ -1071,6 +1071,7 @@ and statement_desc top cxt (s : J.statement_desc) : cxt = match e.expression_desc with | Number (Int { i = 1l; _ }) -> string cxt L.while_; + space cxt; string cxt L.lparen; string cxt L.true_; string cxt L.rparen; @@ -1078,6 +1079,7 @@ and statement_desc top cxt (s : J.statement_desc) : cxt = cxt | _ -> string cxt L.while_; + space cxt; let cxt = paren_group cxt 1 (fun () -> expression ~level:0 cxt e) in space cxt; cxt diff --git a/jscomp/test/dist/jscomp/test/a_scope_bug.js b/jscomp/test/dist/jscomp/test/a_scope_bug.js index 0f423a04d..e926c3d3c 100644 --- a/jscomp/test/dist/jscomp/test/a_scope_bug.js +++ b/jscomp/test/dist/jscomp/test/a_scope_bug.js @@ -3,7 +3,7 @@ function odd(_z) { - while(true) { + while (true) { const z = _z; const even = Math.imul(z, z); const a = (even + 4 | 0) + even | 0; diff --git a/jscomp/test/dist/jscomp/test/and_or_tailcall_test.js b/jscomp/test/dist/jscomp/test/and_or_tailcall_test.js index a9790fefa..04bdb17db 100644 --- a/jscomp/test/dist/jscomp/test/and_or_tailcall_test.js +++ b/jscomp/test/dist/jscomp/test/and_or_tailcall_test.js @@ -4,7 +4,7 @@ const Mt = require("./mt.js"); function f(b, x, _n) { - while(true) { + while (true) { const n = _n; if (n > 100000) { return false; @@ -18,7 +18,7 @@ function f(b, x, _n) { } function or_f(b, x, _n) { - while(true) { + while (true) { const n = _n; if (n > 100000) { return false; diff --git a/jscomp/test/dist/jscomp/test/app_root_finder.js b/jscomp/test/dist/jscomp/test/app_root_finder.js index 0f7551a7a..3efc03d18 100644 --- a/jscomp/test/dist/jscomp/test/app_root_finder.js +++ b/jscomp/test/dist/jscomp/test/app_root_finder.js @@ -9,7 +9,7 @@ const Path = require("path"); const package_json = "package.json"; function find_package_json(_dir) { - while(true) { + while (true) { const dir = _dir; if (Fs.existsSync(Path.join(dir, package_json))) { return dir; diff --git a/jscomp/test/dist/jscomp/test/arith_lexer.js b/jscomp/test/dist/jscomp/test/arith_lexer.js index 2894ea4f6..ce59cc06e 100644 --- a/jscomp/test/dist/jscomp/test/arith_lexer.js +++ b/jscomp/test/dist/jscomp/test/arith_lexer.js @@ -21,7 +21,7 @@ const __ocaml_lex_tables = { }; function __ocaml_lex_lexeme_rec(lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { diff --git a/jscomp/test/dist/jscomp/test/array_subtle_test.js b/jscomp/test/dist/jscomp/test/array_subtle_test.js index ebee5aa74..993f8bc92 100644 --- a/jscomp/test/dist/jscomp/test/array_subtle_test.js +++ b/jscomp/test/dist/jscomp/test/array_subtle_test.js @@ -70,7 +70,7 @@ eq("File \"jscomp/test/array_subtle_test.ml\", line 23, characters 5-12", [ Caml_array.get(v, 2) ]); -while(v.length > 0) { +while (v.length > 0) { v.pop(); }; diff --git a/jscomp/test/dist/jscomp/test/array_test.js b/jscomp/test/dist/jscomp/test/array_test.js index 83f5672b7..80cf00629 100644 --- a/jscomp/test/dist/jscomp/test/array_test.js +++ b/jscomp/test/dist/jscomp/test/array_test.js @@ -41,7 +41,7 @@ function starts_with(xs, prefix, p) { function is_sorted(x) { const len = x.length; let _i = 0; - while(true) { + while (true) { const i = _i; if (i >= (len - 1 | 0)) { return true; diff --git a/jscomp/test/dist/jscomp/test/ast_js_mapper_test.js b/jscomp/test/dist/jscomp/test/ast_js_mapper_test.js index 323375d02..fd21aa70e 100644 --- a/jscomp/test/dist/jscomp/test/ast_js_mapper_test.js +++ b/jscomp/test/dist/jscomp/test/ast_js_mapper_test.js @@ -42,7 +42,7 @@ tFromJs({ function searchForSureExists(xs, k) { let _i = 0; - while(true) { + while (true) { const i = _i; const match = xs[i]; if (match[0] === k) { diff --git a/jscomp/test/dist/jscomp/test/bal_set_mini.js b/jscomp/test/dist/jscomp/test/bal_set_mini.js index 5c4c22f97..33fc1a8a4 100644 --- a/jscomp/test/dist/jscomp/test/bal_set_mini.js +++ b/jscomp/test/dist/jscomp/test/bal_set_mini.js @@ -98,7 +98,7 @@ function add(x, t) { } function min_elt(_def, _param) { - while(true) { + while (true) { const param = _param; const def = _def; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -151,7 +151,7 @@ function remove(x, tree) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; diff --git a/jscomp/test/dist/jscomp/test/bdd.js b/jscomp/test/dist/jscomp/test/bdd.js index 1504cc1a4..deb8e45c3 100644 --- a/jscomp/test/dist/jscomp/test/bdd.js +++ b/jscomp/test/dist/jscomp/test/bdd.js @@ -5,7 +5,7 @@ const Caml_array = require("melange.js/caml_array.js"); const Caml_js_exceptions = require("melange.js/caml_js_exceptions.js"); function $$eval(_bdd, vars) { - while(true) { + while (true) { const bdd = _bdd; if (/* tag */ typeof bdd === "number" || typeof bdd === "string") { if (bdd === /* One */ 0) { @@ -60,7 +60,7 @@ function resize(newSize) { const newSz_1 = newSize - 1 | 0; const newArr = Caml_array.make(newSize, /* [] */ 0); const copyBucket = function (_bucket) { - while(true) { + while (true) { const bucket = _bucket; if (!bucket) { return; @@ -136,7 +136,7 @@ function mkNode(low, v, high) { const ind = hashVal(idl, idh, v) & sz_1.contents; const bucket = Caml_array.get(htab.contents, ind); let _b = bucket; - while(true) { + while (true) { const b = _b; if (b) { const n = b.hd; diff --git a/jscomp/test/dist/jscomp/test/bs_stack_test.js b/jscomp/test/dist/jscomp/test/bs_stack_test.js index df671e4f2..b6a348efa 100644 --- a/jscomp/test/dist/jscomp/test/bs_stack_test.js +++ b/jscomp/test/dist/jscomp/test/bs_stack_test.js @@ -28,17 +28,17 @@ function inOrder(v) { first: undefined, last: undefined }; - while(current !== undefined) { + while (current !== undefined) { const v$1 = current; Belt__Belt_MutableStack.push(s, v$1); current = v$1.left; }; - while(s.root !== undefined) { + while (s.root !== undefined) { current = Belt__Belt_MutableStack.popUndefined(s); const v$2 = current; Belt__Belt_MutableQueue.add(q, v$2.value); current = v$2.right; - while(current !== undefined) { + while (current !== undefined) { const v$3 = current; Belt__Belt_MutableStack.push(s, v$3); current = v$3.left; @@ -57,7 +57,7 @@ function inOrder3(v) { first: undefined, last: undefined }; - while(current !== undefined) { + while (current !== undefined) { const v$1 = current; Belt__Belt_MutableStack.push(s, v$1); current = v$1.left; @@ -65,7 +65,7 @@ function inOrder3(v) { Belt__Belt_MutableStack.dynamicPopIter(s, (function (popped) { Belt__Belt_MutableQueue.add(q, popped.value); let current = popped.right; - while(current !== undefined) { + while (current !== undefined) { const v = current; Belt__Belt_MutableStack.push(s, v); current = v.left; @@ -85,7 +85,7 @@ function inOrder2(v) { first: undefined, last: undefined }; - while(todo) { + while (todo) { if (cursor !== undefined) { const v$1 = cursor; Belt__Belt_MutableStack.push(s, v$1); @@ -113,7 +113,7 @@ const test1 = n(n(n(undefined, undefined, 4), n(undefined, undefined, 5), 2), n( function pushAllLeft(st1, s1) { let current = st1; - while(current !== undefined) { + while (current !== undefined) { const v = current; Belt__Belt_MutableStack.push(s1, v); current = v.left; diff --git a/jscomp/test/dist/jscomp/test/class6_test.js b/jscomp/test/dist/jscomp/test/class6_test.js index 2564990f5..796ada3bc 100644 --- a/jscomp/test/dist/jscomp/test/class6_test.js +++ b/jscomp/test/dist/jscomp/test/class6_test.js @@ -107,7 +107,7 @@ const p = Curry._2(point[0], undefined, 3); const q = Curry._3(colored_point[0], undefined, 4, "blue"); function lookup_obj(obj, _param) { - while(true) { + while (true) { const param = _param; if (param) { const obj$p = param.hd; diff --git a/jscomp/test/dist/jscomp/test/class7_test.js b/jscomp/test/dist/jscomp/test/class7_test.js index a51ab945c..6f258de88 100644 --- a/jscomp/test/dist/jscomp/test/class7_test.js +++ b/jscomp/test/dist/jscomp/test/class7_test.js @@ -182,7 +182,7 @@ const backup_ref = CamlinternalOO.make_class([ ], backup_ref_init); function get(_p, _n) { - while(true) { + while (true) { const n = _n; const p = _p; if (n === 0) { diff --git a/jscomp/test/dist/jscomp/test/complex_while_loop.js b/jscomp/test/dist/jscomp/test/complex_while_loop.js index f542bb8b1..dd0c33e15 100644 --- a/jscomp/test/dist/jscomp/test/complex_while_loop.js +++ b/jscomp/test/dist/jscomp/test/complex_while_loop.js @@ -4,7 +4,7 @@ function f(param) { let n = 0; - while((function () { + while ((function () { const fib = function (n) { if (n === 0 || n === 1) { return 1; @@ -20,7 +20,7 @@ function f(param) { } function ff(param) { - while((function () { + while ((function () { const b = 9; return (3 + b | 0) > 10; })()) { diff --git a/jscomp/test/dist/jscomp/test/cps_test.js b/jscomp/test/dist/jscomp/test/cps_test.js index 55e6f04ef..c6908f075 100644 --- a/jscomp/test/dist/jscomp/test/cps_test.js +++ b/jscomp/test/dist/jscomp/test/cps_test.js @@ -11,7 +11,7 @@ function test(param) { contents: 0 }; const f = function (_n, _acc) { - while(true) { + while (true) { const acc = _acc; const n = _n; if (n === 0) { diff --git a/jscomp/test/dist/jscomp/test/demo_int_map.js b/jscomp/test/dist/jscomp/test/demo_int_map.js index 6a69ddf9b..611f1468a 100644 --- a/jscomp/test/dist/jscomp/test/demo_int_map.js +++ b/jscomp/test/dist/jscomp/test/demo_int_map.js @@ -140,7 +140,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { diff --git a/jscomp/test/dist/jscomp/test/exception_raise_test.js b/jscomp/test/dist/jscomp/test/exception_raise_test.js index dc9685914..6e5cce853 100644 --- a/jscomp/test/dist/jscomp/test/exception_raise_test.js +++ b/jscomp/test/dist/jscomp/test/exception_raise_test.js @@ -223,7 +223,7 @@ function fff0(x, g) { } function input_lines(ic, _acc) { - while(true) { + while (true) { const acc = _acc; let line; try { diff --git a/jscomp/test/dist/jscomp/test/ext_array_test.js b/jscomp/test/dist/jscomp/test/ext_array_test.js index fddf5f5ab..f0e1f538d 100644 --- a/jscomp/test/dist/jscomp/test/ext_array_test.js +++ b/jscomp/test/dist/jscomp/test/ext_array_test.js @@ -43,7 +43,7 @@ function reverse_of_list(l) { const a = Caml_array.make(len, l.hd); let _i = 0; let _param = l.tl; - while(true) { + while (true) { const param = _param; const i = _i; if (!param) { @@ -60,7 +60,7 @@ function filter(f, a) { const arr_len = a.length; let _acc = /* [] */ 0; let _i = 0; - while(true) { + while (true) { const i = _i; const acc = _acc; if (i === arr_len) { @@ -84,7 +84,7 @@ function filter_map(f, a) { const arr_len = a.length; let _acc = /* [] */ 0; let _i = 0; - while(true) { + while (true) { const i = _i; const acc = _acc; if (i === arr_len) { @@ -131,7 +131,7 @@ function map2i(f, a, b) { } function tolist_aux(a, f, _i, _res) { - while(true) { + while (true) { const res = _res; const i = _i; if (i < 0) { @@ -166,7 +166,7 @@ function of_list_map(f, a) { const arr = Caml_array.make(len, hd); let _i = 1; let _param = tl; - while(true) { + while (true) { const param = _param; const i = _i; if (!param) { @@ -182,7 +182,7 @@ function of_list_map(f, a) { function rfind_with_index(arr, cmp, v) { const len = arr.length; let _i = len - 1 | 0; - while(true) { + while (true) { const i = _i; if (i < 0) { return i; @@ -213,7 +213,7 @@ function rfind_and_split(arr, cmp, v) { function find_with_index(arr, cmp, v) { const len = arr.length; let _i = 0; - while(true) { + while (true) { const i = _i; if (i >= len) { return -1; @@ -244,7 +244,7 @@ function find_and_split(arr, cmp, v) { function exists(p, a) { const n = a.length; let _i = 0; - while(true) { + while (true) { const i = _i; if (i === n) { return false; @@ -262,7 +262,7 @@ function is_empty(arr) { } function unsafe_loop(_index, len, p, xs, ys) { - while(true) { + while (true) { const index = _index; if (index >= len) { return true; diff --git a/jscomp/test/dist/jscomp/test/ext_filename_test.js b/jscomp/test/dist/jscomp/test/ext_filename_test.js index 2195cee4d..bce05b249 100644 --- a/jscomp/test/dist/jscomp/test/ext_filename_test.js +++ b/jscomp/test/dist/jscomp/test/ext_filename_test.js @@ -42,7 +42,7 @@ function path_as_directory(x) { function absolute_path(s) { const s$1 = Curry._1(Stdlib__Filename.is_relative, s) ? Stdlib__Filename.concat(CamlinternalLazy.force(cwd), s) : s; const aux = function (_s) { - while(true) { + while (true) { const s = _s; const base = Curry._1(Stdlib__Filename.basename, s); const dir = Curry._1(Stdlib__Filename.dirname, s); @@ -122,7 +122,7 @@ function relative_path(file_or_dir_1, file_or_dir_2) { const dir1 = Ext_string_test.split(undefined, relevant_dir1, os_path_separator_char); const dir2 = Ext_string_test.split(undefined, relevant_dir2, os_path_separator_char); const go = function (_dir1, _dir2) { - while(true) { + while (true) { const dir2 = _dir2; const dir1 = _dir1; if (dir1 && dir2 && dir1.hd === dir2.hd) { @@ -166,7 +166,7 @@ function node_relative_path(node_modules_shorten, file1, dep_file) { })) + (node_sep + Curry._1(Stdlib__Filename.basename, file2)); } const skip = function (_i) { - while(true) { + while (true) { const i = _i; if (i >= len) { return Curry._1(Ext_pervasives_test.failwithf("File \"jscomp/test/ext_filename_test.ml\", line 162, characters 43-50", { @@ -195,7 +195,7 @@ function node_relative_path(node_modules_shorten, file1, dep_file) { } function find_root_filename(_cwd, filename) { - while(true) { + while (true) { const cwd = _cwd; if (Caml_external_polyfill.resolve("caml_sys_file_exists")(Stdlib__Filename.concat(cwd, filename))) { return cwd; @@ -262,7 +262,7 @@ function combine(p1, p2) { function split_aux(p) { let _p = p; let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; const p$1 = _p; const dir = Curry._1(Stdlib__Filename.dirname, p$1); @@ -295,7 +295,7 @@ function rel_normalized_absolute_path(from, to_) { } let _xss = match[1]; let _yss = match$1[1]; - while(true) { + while (true) { const yss = _yss; const xss = _xss; if (!xss) { @@ -332,7 +332,7 @@ function normalize_absolute_path(x) { } }; const normalize_list = function (_acc, _paths) { - while(true) { + while (true) { const paths = _paths; const acc = _acc; if (!paths) { @@ -363,7 +363,7 @@ function normalize_absolute_path(x) { if (rev_paths) { let _acc = rev_paths.hd; let _rev_paths = rev_paths.tl; - while(true) { + while (true) { const rev_paths$1 = _rev_paths; const acc = _acc; if (!rev_paths$1) { diff --git a/jscomp/test/dist/jscomp/test/ext_list_test.js b/jscomp/test/dist/jscomp/test/ext_list_test.js index 4b29d6d54..aba005596 100644 --- a/jscomp/test/dist/jscomp/test/ext_list_test.js +++ b/jscomp/test/dist/jscomp/test/ext_list_test.js @@ -10,7 +10,7 @@ const Stdlib__Array = require("melange/array.js"); const Stdlib__List = require("melange/list.js"); function filter_map(f, _xs) { - while(true) { + while (true) { const xs = _xs; if (!xs) { return /* [] */ 0; @@ -33,7 +33,7 @@ function excludes(p, l) { contents: false }; const aux = function (_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (!param) { @@ -73,7 +73,7 @@ function exclude_with_fact(p, l) { contents: undefined }; const aux = function (_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (!param) { @@ -109,7 +109,7 @@ function exclude_with_fact2(p1, p2, l) { contents: undefined }; const aux = function (_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (!param) { @@ -144,7 +144,7 @@ function exclude_with_fact2(p1, p2, l) { } function same_length(_xs, _ys) { - while(true) { + while (true) { const ys = _ys; const xs = _xs; if (!xs) { @@ -165,7 +165,7 @@ function same_length(_xs, _ys) { function filter_mapi(f, xs) { const aux = function (_i, _xs) { - while(true) { + while (true) { const xs = _xs; const i = _i; if (!xs) { @@ -188,7 +188,7 @@ function filter_mapi(f, xs) { } function filter_map2(f, _xs, _ys) { - while(true) { + while (true) { const ys = _ys; const xs = _xs; if (xs) { @@ -223,7 +223,7 @@ function filter_map2(f, _xs, _ys) { function filter_map2i(f, xs, ys) { const aux = function (_i, _xs, _ys) { - while(true) { + while (true) { const ys = _ys; const xs = _xs; const i = _i; @@ -261,7 +261,7 @@ function filter_map2i(f, xs, ys) { } function rev_map_append(f, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -280,7 +280,7 @@ function flat_map2(f, lx, ly) { let _acc = /* [] */ 0; let _lx = lx; let _ly = ly; - while(true) { + while (true) { const ly$1 = _ly; const lx$1 = _lx; const acc = _acc; @@ -307,7 +307,7 @@ function flat_map2(f, lx, ly) { } function flat_map_aux(f, _acc, append, _lx) { - while(true) { + while (true) { const lx = _lx; const acc = _acc; if (!lx) { @@ -458,7 +458,7 @@ function try_take(n, l) { } function length_compare(_l, _n) { - while(true) { + while (true) { const n = _n; const l = _l; if (n < 0) { @@ -478,7 +478,7 @@ function length_compare(_l, _n) { } function length_larger_than_n(n, _xs, _ys) { - while(true) { + while (true) { const ys = _ys; const xs = _xs; if (!ys) { @@ -496,7 +496,7 @@ function length_larger_than_n(n, _xs, _ys) { function exclude_tail(x) { let _acc = /* [] */ 0; let _x = x; - while(true) { + while (true) { const x$1 = _x; const acc = _acc; if (x$1) { @@ -562,7 +562,7 @@ function stable_group(cmp, lst) { } function drop(_n, _h) { - while(true) { + while (true) { const h = _h; const n = _n; if (n < 0) { @@ -587,7 +587,7 @@ function drop(_n, _h) { } function find_first_not(p, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -602,7 +602,7 @@ function find_first_not(p, _param) { } function for_all_opt(p, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -625,7 +625,7 @@ function fold(f, l, init) { function rev_map_acc(acc, f, l) { let _accu = acc; let _param = l; - while(true) { + while (true) { const param = _param; const accu = _accu; if (!param) { @@ -660,7 +660,7 @@ function rev_iter(f, xs) { } function for_all2_no_exn(p, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -683,7 +683,7 @@ function for_all2_no_exn(p, _l1, _l2) { } function find_no_exn(p, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -698,7 +698,7 @@ function find_no_exn(p, _param) { } function find_opt(p, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -716,7 +716,7 @@ function split_map(f, xs) { let _bs = /* [] */ 0; let _cs = /* [] */ 0; let _xs = xs; - while(true) { + while (true) { const xs$1 = _xs; const cs = _cs; const bs = _bs; @@ -811,7 +811,7 @@ function ref_pop(refs) { function rev_except_last(xs) { let _acc = /* [] */ 0; let _xs = xs; - while(true) { + while (true) { const xs$1 = _xs; const acc = _acc; if (xs$1) { @@ -843,7 +843,7 @@ function sort_via_array(cmp, lst) { } function last(_xs) { - while(true) { + while (true) { const xs = _xs; if (xs) { if (!xs.tl) { @@ -860,7 +860,7 @@ function last(_xs) { } function assoc_by_string(def, k, _lst) { - while(true) { + while (true) { const lst = _lst; if (lst) { const match = lst.hd; @@ -885,7 +885,7 @@ function assoc_by_string(def, k, _lst) { } function assoc_by_int(def, k, _lst) { - while(true) { + while (true) { const lst = _lst; if (lst) { const match = lst.hd; diff --git a/jscomp/test/dist/jscomp/test/ext_pervasives_test.js b/jscomp/test/dist/jscomp/test/ext_pervasives_test.js index 8410ebb7f..ef1af7729 100644 --- a/jscomp/test/dist/jscomp/test/ext_pervasives_test.js +++ b/jscomp/test/dist/jscomp/test/ext_pervasives_test.js @@ -40,7 +40,7 @@ function is_pos_pow(n) { try { let _c = 0; let _n = n; - while(true) { + while (true) { const n$1 = _n; const c = _c; if (n$1 <= 0) { diff --git a/jscomp/test/dist/jscomp/test/ext_string_test.js b/jscomp/test/dist/jscomp/test/ext_string_test.js index 539841dce..912e36ff2 100644 --- a/jscomp/test/dist/jscomp/test/ext_string_test.js +++ b/jscomp/test/dist/jscomp/test/ext_string_test.js @@ -17,7 +17,7 @@ function split_by(keep_emptyOpt, is_delim, str) { let _acc = /* [] */ 0; let _last_pos = len; let _pos = len - 1 | 0; - while(true) { + while (true) { const pos = _pos; const last_pos = _last_pos; const acc = _acc; @@ -55,7 +55,7 @@ function split_by(keep_emptyOpt, is_delim, str) { function trim(s) { let i = 0; const j = s.length; - while((function () { + while ((function () { let tmp = false; if (i < j) { const u = s.charCodeAt(i); @@ -66,7 +66,7 @@ function trim(s) { i = i + 1 | 0; }; let k = j - 1 | 0; - while((function () { + while ((function () { let tmp = false; if (k >= i) { const u = s.charCodeAt(k); @@ -106,7 +106,7 @@ function starts_with(s, beg) { return false; } let i = 0; - while(i < beg_len && s[i] === beg[i]) { + while (i < beg_len && s[i] === beg[i]) { i = i + 1 | 0; }; return i === beg_len; @@ -120,7 +120,7 @@ function ends_with_index(s, end_) { } let _j = s_finish; let _k = s_beg; - while(true) { + while (true) { const k = _k; const j = _j; if (k < 0) { @@ -155,7 +155,7 @@ function check_any_suffix_case(s, suffixes) { function check_any_suffix_case_then_chop(s, suffixes) { let _suffixes = suffixes; - while(true) { + while (true) { const suffixes$1 = _suffixes; if (!suffixes$1) { return; @@ -171,7 +171,7 @@ function check_any_suffix_case_then_chop(s, suffixes) { function escaped(s) { const needs_escape = function (_i) { - while(true) { + while (true) { const i = _i; if (i >= s.length) { return false; @@ -202,7 +202,7 @@ function escaped(s) { } function unsafe_for_all_range(s, _start, finish, p) { - while(true) { + while (true) { const start = _start; if (start > finish) { return true; @@ -246,7 +246,7 @@ function repeat(n, s) { function unsafe_is_sub(sub, i, s, j, len) { if ((j + len | 0) <= s.length) { let _k = 0; - while(true) { + while (true) { const k = _k; if (k === len) { return true; @@ -270,7 +270,7 @@ function find(startOpt, sub, s) { const s_len = s.length; let i = start; try { - while((i + n | 0) <= s_len) { + while ((i + n | 0) <= s_len) { if (unsafe_is_sub(sub, 0, s, i, n)) { throw new Caml_js_exceptions.MelangeError(Local_exit, { MEL_EXN_ID: Local_exit @@ -303,7 +303,7 @@ function non_overlap_count(sub, s) { } let _acc = 0; let _off = 0; - while(true) { + while (true) { const off = _off; const acc = _acc; const i = find(off, sub, s); @@ -320,7 +320,7 @@ function rfind(sub, s) { const n = sub.length; let i = s.length - n | 0; try { - while(i >= 0) { + while (i >= 0) { if (unsafe_is_sub(sub, 0, s, i, n)) { throw new Caml_js_exceptions.MelangeError(Local_exit, { MEL_EXN_ID: Local_exit @@ -354,7 +354,7 @@ function tail_from(s, x) { function digits_of_str(s, offset, x) { let _i = 0; let _acc = 0; - while(true) { + while (true) { const acc = _acc; const i = _i; if (i >= x) { @@ -374,7 +374,7 @@ function starts_with_and_number(s, offset, beg) { return -1; } let i = offset; - while(i < finish_delim && s[i] === beg[i - offset | 0]) { + while (i < finish_delim && s[i] === beg[i - offset | 0]) { i = i + 1 | 0; }; if (i === finish_delim) { @@ -411,7 +411,7 @@ function unsafe_concat_with_length(len, sep, l) { } function rindex_rec(s, _i, c) { - while(true) { + while (true) { const i = _i; if (i < 0) { return i; @@ -425,7 +425,7 @@ function rindex_rec(s, _i, c) { } function rindex_rec_opt(s, _i, c) { - while(true) { + while (true) { const i = _i; if (i < 0) { return; @@ -533,7 +533,7 @@ function is_valid_source_name(name) { } function unsafe_no_char(x, ch, _i, last_idx) { - while(true) { + while (true) { const i = _i; if (i > last_idx) { return true; @@ -547,7 +547,7 @@ function unsafe_no_char(x, ch, _i, last_idx) { } function unsafe_no_char_idx(x, ch, _i, last_idx) { - while(true) { + while (true) { const i = _i; if (i > last_idx) { return -1; diff --git a/jscomp/test/dist/jscomp/test/fib.js b/jscomp/test/dist/jscomp/test/fib.js index 00a826392..3878a6a4d 100644 --- a/jscomp/test/dist/jscomp/test/fib.js +++ b/jscomp/test/dist/jscomp/test/fib.js @@ -14,7 +14,7 @@ function fib2(n) { let _a = 1; let _b = 1; let _i = 0; - while(true) { + while (true) { const i = _i; const b = _b; const a = _a; diff --git a/jscomp/test/dist/jscomp/test/flattern_order_test.js b/jscomp/test/dist/jscomp/test/flattern_order_test.js index e996e6ea0..b3adcd31c 100644 --- a/jscomp/test/dist/jscomp/test/flattern_order_test.js +++ b/jscomp/test/dist/jscomp/test/flattern_order_test.js @@ -3,7 +3,7 @@ function even(_n) { - while(true) { + while (true) { const n = _n; if (n === 0) { return true; diff --git a/jscomp/test/dist/jscomp/test/flexible_array_test.js b/jscomp/test/dist/jscomp/test/flexible_array_test.js index d283dd03f..e8b7e79db 100644 --- a/jscomp/test/dist/jscomp/test/flexible_array_test.js +++ b/jscomp/test/dist/jscomp/test/flexible_array_test.js @@ -10,7 +10,7 @@ const Stdlib__Array = require("melange/array.js"); const Stdlib__Format = require("melange/format.js"); function sub(_tr, _k) { - while(true) { + while (true) { const k = _k; const tr = _tr; if (/* tag */ typeof tr === "number" || typeof tr === "string") { diff --git a/jscomp/test/dist/jscomp/test/flow_parser_reg_test.js b/jscomp/test/dist/jscomp/test/flow_parser_reg_test.js index 0f1e83227..fbef5fae7 100644 --- a/jscomp/test/dist/jscomp/test/flow_parser_reg_test.js +++ b/jscomp/test/dist/jscomp/test/flow_parser_reg_test.js @@ -2236,7 +2236,7 @@ function parse_exponent(f) { } function parse_body(_f) { - while(true) { + while (true) { const f = _f; const match = f.todo; if (!match) { @@ -2377,7 +2377,7 @@ function save_comment(env, start, _end, buf, multiline) { function unicode_fix_cols(lb) { const count = function (_start, stop, _acc) { - while(true) { + while (true) { const acc = _acc; const start = _start; if (start === stop) { @@ -2899,7 +2899,7 @@ const __ocaml_lex_tables = { function token(env, lexbuf) { lexbuf.lex_mem = Caml_array.make(8, -1); let ___ocaml_lex_state = 0; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -3392,7 +3392,7 @@ function token(env, lexbuf) { function jsx_text(env, mode, buf, raw, lexbuf) { let ___ocaml_lex_state = 371; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -4256,7 +4256,7 @@ function jsx_text(env, mode, buf, raw, lexbuf) { } function __ocaml_lex_jsx_tag_rec(_env, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const env = _env; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); @@ -4368,7 +4368,7 @@ function __ocaml_lex_jsx_tag_rec(_env, lexbuf, ___ocaml_lex_state) { function template_part(env, start, cooked, raw, literal, lexbuf) { let ___ocaml_lex_state = 416; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -4434,7 +4434,7 @@ function template_part(env, start, cooked, raw, literal, lexbuf) { function comment(env, buf, lexbuf) { let ___ocaml_lex_state = 279; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -4481,7 +4481,7 @@ function comment(env, buf, lexbuf) { } function __ocaml_lex_template_tail_rec(_env, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const env = _env; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); @@ -4562,7 +4562,7 @@ function __ocaml_lex_template_tail_rec(_env, lexbuf, ___ocaml_lex_state) { function line_comment(env, buf, lexbuf) { let ___ocaml_lex_state = 287; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -4605,7 +4605,7 @@ function line_comment(env, buf, lexbuf) { function regexp_class(env, buf, lexbuf) { let ___ocaml_lex_state = 326; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -4635,7 +4635,7 @@ function regexp_class(env, buf, lexbuf) { function string_quote(env, q, buf, raw, octal, lexbuf) { let ___ocaml_lex_state = 247; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -4687,7 +4687,7 @@ function string_quote(env, q, buf, raw, octal, lexbuf) { function string_escape(env, buf, lexbuf) { let ___ocaml_lex_state = 252; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -4872,7 +4872,7 @@ function type_token(env, lexbuf) { Caml_array.set(lexbuf.lex_mem, 5, lexbuf.lex_curr_pos); Caml_array.set(lexbuf.lex_mem, 4, lexbuf.lex_curr_pos); let ___ocaml_lex_state = 133; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -5224,7 +5224,7 @@ function type_token(env, lexbuf) { } function __ocaml_lex_regexp_rec(_env, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const env = _env; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); @@ -5295,7 +5295,7 @@ function __ocaml_lex_regexp_rec(_env, lexbuf, ___ocaml_lex_state) { function regexp_body(env, buf, lexbuf) { let ___ocaml_lex_state = 314; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -5354,7 +5354,7 @@ function regexp_body(env, buf, lexbuf) { function jsx_child(env, start, buf, raw, lexbuf) { let ___ocaml_lex_state = 364; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -5565,7 +5565,7 @@ function add(x, t) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -5606,7 +5606,7 @@ function create$1(lex_env, mode) { function next_power_of_two(n) { let _i = 1; - while(true) { + while (true) { const i = _i; if (i >= n) { return i; @@ -5684,7 +5684,7 @@ function lex(t) { function lex_until(t, i) { grow(t, i + 1 | 0); - while(t.la_num_lexed <= i) { + while (t.la_num_lexed <= i) { lex(t); }; } @@ -6463,7 +6463,7 @@ function add$1(x, t) { } function mem$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -6608,7 +6608,7 @@ function add$2(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -6749,7 +6749,7 @@ function add$3(x, t) { } function mem$2(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -6989,7 +6989,7 @@ function function_param_with_id(env, name) { } function postfix_with(env, _t) { - while(true) { + while (true) { const t = _t; if (!(!Curry._1(Parser_env_Peek.is_line_terminator, env) && maybe(env, /* T_LBRACKET */ 5))) { return t; @@ -7390,7 +7390,7 @@ function union_with(env, left) { hd: left, tl: /* [] */ 0 }; - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ (typeof match === "number" || typeof match === "string") && match === /* T_BIT_OR */ 80) { @@ -7421,7 +7421,7 @@ function intersection_with(env, left) { hd: left, tl: /* [] */ 0 }; - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ (typeof match === "number" || typeof match === "string") && match === /* T_BIT_AND */ 82) { @@ -7454,7 +7454,7 @@ function param(env) { function function_param_list_without_parens(env) { return function (param$1) { let _acc = param$1; - while(true) { + while (true) { const acc = _acc; const t = Curry._2(Parser_env_Peek.token, undefined, env); let exit = 0; @@ -7496,7 +7496,7 @@ function function_param_list_without_parens(env) { } function identifier(env, _param) { - while(true) { + while (true) { const param = _param; const qualification = param[1]; const q_loc = param[0]; @@ -7551,7 +7551,7 @@ function raw_generic_with_identifier(env, id) { } function params(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -7594,7 +7594,7 @@ function type_parameter_instantiation(env) { } function params$1(env, allow_default, _require_default, _acc) { - while(true) { + while (true) { const acc = _acc; const require_default = _require_default; const match = Curry._2(Parser_env_Peek.token, undefined, env); @@ -7705,7 +7705,7 @@ function type_parameter_declaration(allow_default, env) { } function types(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -7836,7 +7836,7 @@ function semicolon$1(env) { } function properties(allow_static, env, _param) { - while(true) { + while (true) { const param = _param; const callProperties = param[2]; const indexers = param[1]; @@ -8047,7 +8047,7 @@ function _object$1(allow_staticOpt, env) { } function pattern(check_env, _param) { - while(true) { + while (true) { const param = _param; const p = param[1]; switch (p.TAG) { @@ -8193,7 +8193,7 @@ function param$1(env) { } function param_list(env, _param) { - while(true) { + while (true) { const param$2 = _param; const has_default = param$2[2]; const defaults = param$2[1]; @@ -8423,7 +8423,7 @@ function variable_declaration(env) { } function helper(env, _decls, _errs) { - while(true) { + while (true) { const errs = _errs; const decls = _decls; const match = variable_declaration(env); @@ -8836,7 +8836,7 @@ function left_hand_side(env) { } function call(env, _left) { - while(true) { + while (true) { const left = _left; const part = Curry._2(Parser_env_Peek.token, undefined, env); if (!/* tag */ (typeof part === "number" || typeof part === "string")) { @@ -8910,7 +8910,7 @@ function call(env, _left) { } function _new(env, _finish_fn) { - while(true) { + while (true) { const finish_fn = _finish_fn; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ (typeof match === "number" || typeof match === "string") && match === /* T_NEW */ 42) { @@ -9415,7 +9415,7 @@ function tagged_template(env, tag, part) { } function sequence(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ (typeof match === "number" || typeof match === "string") && match === /* T_COMMA */ 8) { @@ -9721,7 +9721,7 @@ function make_logical(left, right, operator, loc) { } function logical_and(env, _left, _lloc) { - while(true) { + while (true) { const lloc = _lloc; const left = _left; const match = Curry._2(Parser_env_Peek.token, undefined, env); @@ -9747,7 +9747,7 @@ function logical_and(env, _left, _lloc) { } function logical_or(env, _left, _lloc) { - while(true) { + while (true) { const lloc = _lloc; const left = _left; const match = Curry._2(Parser_env_Peek.token, undefined, env); @@ -10009,7 +10009,7 @@ function make_binary(left, right, operator, loc) { } function add_to_stack(_right, _param, _rloc, _stack) { - while(true) { + while (true) { const param = _param; const stack = _stack; const rloc = _rloc; @@ -10049,7 +10049,7 @@ function add_to_stack(_right, _param, _rloc, _stack) { function binary(env) { let _stack = /* [] */ 0; - while(true) { + while (true) { const stack = _stack; const start_loc = Curry._2(Parser_env_Peek.loc, undefined, env); const is_unary = peek_unary_op(env) !== undefined; @@ -10069,7 +10069,7 @@ function binary(env) { let _right = right; let _rloc = right_loc; let _param = stack; - while(true) { + while (true) { const param = _param; const rloc = _rloc; const right$1 = _right; @@ -10129,7 +10129,7 @@ function argument(env) { } function arguments$p(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -10167,7 +10167,7 @@ function $$arguments(env) { } function template_parts(env, _quasis, _expressions) { - while(true) { + while (true) { const expressions = _expressions; const quasis = _quasis; const expr = Curry._1(Parse.expression, env); @@ -10302,7 +10302,7 @@ function template_literal(env, part) { } function elements(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -10485,7 +10485,7 @@ function try_arrow_function(env) { } function decorator_list_helper(env, _decorators) { - while(true) { + while (true) { const decorators = _decorators; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (!/* tag */ (typeof match === "number" || typeof match === "string")) { @@ -11072,7 +11072,7 @@ function check_property(env, prop_map, prop) { } function properties$1(env, _param) { - while(true) { + while (true) { const param = _param; const acc = param[1]; const match = Curry._2(Parser_env_Peek.token, undefined, env); @@ -11119,7 +11119,7 @@ function _initializer(env) { } function class_implements(env, _acc) { - while(true) { + while (true) { const acc = _acc; const id = Curry._2(Parse.identifier, undefined, env); const typeParameters = wrap(type_parameter_instantiation, env); @@ -11356,7 +11356,7 @@ function class_element(env) { } function elements$1(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -11749,7 +11749,7 @@ function extract_ident_name(param) { } function export_specifiers_and_errs(env, _specifiers, _errs) { - while(true) { + while (true) { const errs = _errs; const specifiers = _specifiers; const match = Curry._2(Parser_env_Peek.token, undefined, env); @@ -12231,7 +12231,7 @@ function export_source(env) { } function supers(env, _acc) { - while(true) { + while (true) { const acc = _acc; const $$super = wrap(generic, env); const acc$1 = { @@ -12275,7 +12275,7 @@ function interface_helper(env) { } function supers$1(env, _acc) { - while(true) { + while (true) { const acc = _acc; const $$super = wrap(generic, env); const acc$1 = { @@ -12317,7 +12317,7 @@ function declare_class(env, start_loc) { } function module_items(env, _module_kind, _acc) { - while(true) { + while (true) { const acc = _acc; const module_kind = _module_kind; const match = Curry._2(Parser_env_Peek.token, undefined, env); @@ -12516,7 +12516,7 @@ function _if(env) { } function case_list(env, _param) { - while(true) { + while (true) { const param = _param; const acc = param[1]; const seen_default = param[0]; @@ -12649,7 +12649,7 @@ function source(env) { } function specifier_list(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -12993,7 +12993,7 @@ function _object$2(restricted_error) { }; }; const properties = function (env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -13053,7 +13053,7 @@ function _object$2(restricted_error) { function _array(restricted_error) { const elements = function (env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -13237,7 +13237,7 @@ function identifier$1(env) { } function member_expression(env, _member) { - while(true) { + while (true) { const member = _member; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (!/* tag */ (typeof match === "number" || typeof match === "string")) { @@ -13430,7 +13430,7 @@ function attribute(env) { } function attributes(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -13571,7 +13571,7 @@ function element_or_closing(env) { } function children_and_closing(env, _acc) { - while(true) { + while (true) { const acc = _acc; const match = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -14290,7 +14290,7 @@ function statement_list_item(decoratorsOpt, env) { } function statement(env) { - while(true) { + while (true) { const match = Curry._2(Parser_env_Peek.token, undefined, env); let exit = 0; if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -14854,7 +14854,7 @@ function statement(env) { function module_body(term_fn, env) { let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; const t = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ (typeof t === "number" || typeof t === "string") && t === /* T_EOF */ 105) { @@ -14872,7 +14872,7 @@ function module_body(term_fn, env) { } function statement_list(_env, term_fn, item_fn, _param) { - while(true) { + while (true) { const param = _param; const env = _env; const stmts = param[1]; @@ -14997,7 +14997,7 @@ function directives(env, term_fn, item_fn) { function statement_list$1(term_fn, env) { let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; const t = Curry._2(Parser_env_Peek.token, undefined, env); if (/* tag */ (typeof t === "number" || typeof t === "string") && t === /* T_EOF */ 105) { diff --git a/jscomp/test/dist/jscomp/test/format_regression.js b/jscomp/test/dist/jscomp/test/format_regression.js index 4a097b100..d754fe090 100644 --- a/jscomp/test/dist/jscomp/test/format_regression.js +++ b/jscomp/test/dist/jscomp/test/format_regression.js @@ -49,7 +49,7 @@ function format_pp_token(param, param$1) { } function advance_loop(state) { - while(true) { + while (true) { const match = peek_queue(state.pp_queue); const size = match.elem_size; const size$1 = int_of_size(size); diff --git a/jscomp/test/dist/jscomp/test/gpr_1698_test.js b/jscomp/test/dist/jscomp/test/gpr_1698_test.js index 157e8ef7e..676ce17e3 100644 --- a/jscomp/test/dist/jscomp/test/gpr_1698_test.js +++ b/jscomp/test/dist/jscomp/test/gpr_1698_test.js @@ -4,7 +4,7 @@ const Caml_js_exceptions = require("melange.js/caml_js_exceptions.js"); function is_number(_expr) { - while(true) { + while (true) { const expr = _expr; switch (expr.TAG) { case /* Val */ 0 : @@ -27,7 +27,7 @@ function is_number(_expr) { } function compare(context, state, _a, _b) { - while(true) { + while (true) { const b = _b; const a = _a; let exit = 0; diff --git a/jscomp/test/dist/jscomp/test/gpr_1701_test.js b/jscomp/test/dist/jscomp/test/gpr_1701_test.js index af0496128..69af291d0 100644 --- a/jscomp/test/dist/jscomp/test/gpr_1701_test.js +++ b/jscomp/test/dist/jscomp/test/gpr_1701_test.js @@ -30,7 +30,7 @@ test(100); function read_lines(inc) { let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; let l; try { @@ -57,7 +57,7 @@ function read_lines(inc) { function read_lines2(inc) { let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; let l; try { diff --git a/jscomp/test/dist/jscomp/test/gpr_1946_test.js b/jscomp/test/dist/jscomp/test/gpr_1946_test.js index 01f854ec1..6fcb12cb8 100644 --- a/jscomp/test/dist/jscomp/test/gpr_1946_test.js +++ b/jscomp/test/dist/jscomp/test/gpr_1946_test.js @@ -30,7 +30,7 @@ const h = { }; function f(id) { - while(false) { + while (false) { }; return id; diff --git a/jscomp/test/dist/jscomp/test/gpr_2642_test.js b/jscomp/test/dist/jscomp/test/gpr_2642_test.js index 89c2c20da..9ec22edaf 100644 --- a/jscomp/test/dist/jscomp/test/gpr_2642_test.js +++ b/jscomp/test/dist/jscomp/test/gpr_2642_test.js @@ -3,7 +3,7 @@ function isfree(id, _id$p) { - while(true) { + while (true) { const id$p = _id$p; switch (id$p.TAG) { case /* Pident */ 0 : diff --git a/jscomp/test/dist/jscomp/test/gpr_3697_test.js b/jscomp/test/dist/jscomp/test/gpr_3697_test.js index 1e6ea57d2..6701b77b0 100644 --- a/jscomp/test/dist/jscomp/test/gpr_3697_test.js +++ b/jscomp/test/dist/jscomp/test/gpr_3697_test.js @@ -16,7 +16,7 @@ function fix(param) { } function unfixLeak(_f) { - while(true) { + while (true) { const f = _f; _f = CamlinternalLazy.force(f._0); continue; @@ -24,7 +24,7 @@ function unfixLeak(_f) { } function unfix(p) { - while(true) { + while (true) { const match = p.contents; p.contents = CamlinternalLazy.force(match._0); }; diff --git a/jscomp/test/dist/jscomp/test/gpr_405_test.js b/jscomp/test/dist/jscomp/test/gpr_405_test.js index b3ccdbeaf..1b910c250 100644 --- a/jscomp/test/dist/jscomp/test/gpr_405_test.js +++ b/jscomp/test/dist/jscomp/test/gpr_405_test.js @@ -65,7 +65,7 @@ function Make(funarg) { let _successors = Curry._2(funarg.succ, gr, top); let _top = top; let _rest_of_stack = rest_of_stack; - while(true) { + while (true) { const rest_of_stack$1 = _rest_of_stack; const top$1 = _top; const successors = _successors; diff --git a/jscomp/test/dist/jscomp/test/gray_code_test.js b/jscomp/test/dist/jscomp/test/gray_code_test.js index c7b3c9c11..cf35652f8 100644 --- a/jscomp/test/dist/jscomp/test/gray_code_test.js +++ b/jscomp/test/dist/jscomp/test/gray_code_test.js @@ -11,7 +11,7 @@ function gray_encode(b) { function gray_decode(n) { let _p = n; let _n = (n >>> 1); - while(true) { + while (true) { const n$1 = _n; const p = _p; if (n$1 === 0) { @@ -27,7 +27,7 @@ function bool_string(len, n) { const s = Stdlib__Bytes.make(len, /* '0' */48); let _i = len - 1 | 0; let _n = n; - while(true) { + while (true) { const n$1 = _n; const i = _i; if ((n$1 & 1) === 1) { diff --git a/jscomp/test/dist/jscomp/test/hamming_test.js b/jscomp/test/dist/jscomp/test/hamming_test.js index 3accda9b9..6cb8fea7d 100644 --- a/jscomp/test/dist/jscomp/test/hamming_test.js +++ b/jscomp/test/dist/jscomp/test/hamming_test.js @@ -183,7 +183,7 @@ function merge(cmp, l1, l2) { } function iter_interval(f, _l, _param) { - while(true) { + while (true) { const param = _param; const l = _l; const stop = param[1]; diff --git a/jscomp/test/dist/jscomp/test/inline_edge_cases.js b/jscomp/test/dist/jscomp/test/inline_edge_cases.js index 48acffaf6..65ceb71bc 100644 --- a/jscomp/test/dist/jscomp/test/inline_edge_cases.js +++ b/jscomp/test/dist/jscomp/test/inline_edge_cases.js @@ -3,7 +3,7 @@ function test3(_n) { - while(true) { + while (true) { const n = _n; if (n === 0) { return (n + 5 | 0) + 4 | 0; @@ -14,7 +14,7 @@ function test3(_n) { } function test2(_n) { - while(true) { + while (true) { const n = _n; if (n === 0) { return test3(n) + 3 | 0; @@ -25,11 +25,11 @@ function test2(_n) { } function test0(_n) { - while(true) { + while (true) { const n = _n; if (n === 0) { let _n$1 = n; - while(true) { + while (true) { const n$1 = _n$1; if (n$1 === 0) { return test2(n$1) + 2 | 0; diff --git a/jscomp/test/dist/jscomp/test/inline_map2_test.js b/jscomp/test/dist/jscomp/test/inline_map2_test.js index e09f62064..be032d236 100644 --- a/jscomp/test/dist/jscomp/test/inline_map2_test.js +++ b/jscomp/test/dist/jscomp/test/inline_map2_test.js @@ -136,7 +136,7 @@ function Make(Ord) { } }; const find = function (x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -152,7 +152,7 @@ function Make(Ord) { }; }; const mem = function (x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -166,7 +166,7 @@ function Make(Ord) { }; }; const min_binding = function (_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -185,7 +185,7 @@ function Make(Ord) { }; }; const max_binding = function (_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -242,7 +242,7 @@ function Make(Ord) { } }; const iter = function (f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -287,7 +287,7 @@ function Make(Ord) { }; }; const fold = function (f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -299,7 +299,7 @@ function Make(Ord) { }; }; const for_all = function (p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -315,7 +315,7 @@ function Make(Ord) { }; }; const exists = function (p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -485,7 +485,7 @@ function Make(Ord) { } }; const cons_enum = function (_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -505,7 +505,7 @@ function Make(Ord) { const compare = function (cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -534,7 +534,7 @@ function Make(Ord) { const equal = function (cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -566,7 +566,7 @@ function Make(Ord) { } }; const bindings_aux = function (_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -757,7 +757,7 @@ function add(x, data, param) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -774,7 +774,7 @@ function find(x, _param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -789,7 +789,7 @@ function mem(x, _param) { } function min_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -809,7 +809,7 @@ function min_binding(_param) { } function max_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -869,7 +869,7 @@ function remove(x, param) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -917,7 +917,7 @@ function mapi(f, param) { } function fold(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -930,7 +930,7 @@ function fold(f, _m, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -947,7 +947,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -1127,7 +1127,7 @@ function partition(p, param) { } function cons_enum(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -1148,7 +1148,7 @@ function cons_enum(_m, _e) { function compare(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -1178,7 +1178,7 @@ function compare(cmp, m1, m2) { function equal(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -1212,7 +1212,7 @@ function cardinal(param) { } function bindings_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -1432,7 +1432,7 @@ function add$1(x, data, param) { } function find$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1449,7 +1449,7 @@ function find$1(x, _param) { } function mem$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -1464,7 +1464,7 @@ function mem$1(x, _param) { } function min_binding$1(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1484,7 +1484,7 @@ function min_binding$1(_param) { } function max_binding$1(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1544,7 +1544,7 @@ function remove$1(x, param) { } function iter$1(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1592,7 +1592,7 @@ function mapi$1(f, param) { } function fold$1(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -1605,7 +1605,7 @@ function fold$1(f, _m, _accu) { } function for_all$1(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -1622,7 +1622,7 @@ function for_all$1(p, _param) { } function exists$1(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -1802,7 +1802,7 @@ function partition$1(p, param) { } function cons_enum$1(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -1823,7 +1823,7 @@ function cons_enum$1(_m, _e) { function compare$1(cmp, m1, m2) { let _e1 = cons_enum$1(m1, /* End */ 0); let _e2 = cons_enum$1(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -1853,7 +1853,7 @@ function compare$1(cmp, m1, m2) { function equal$1(cmp, m1, m2) { let _e1 = cons_enum$1(m1, /* End */ 0); let _e2 = cons_enum$1(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -1887,7 +1887,7 @@ function cardinal$1(param) { } function bindings_aux$1(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { diff --git a/jscomp/test/dist/jscomp/test/inline_map_test.js b/jscomp/test/dist/jscomp/test/inline_map_test.js index 05f0a06e1..40f39f839 100644 --- a/jscomp/test/dist/jscomp/test/inline_map_test.js +++ b/jscomp/test/dist/jscomp/test/inline_map_test.js @@ -120,7 +120,7 @@ function add(x, data, param) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { diff --git a/jscomp/test/dist/jscomp/test/inline_regression_test.js b/jscomp/test/dist/jscomp/test/inline_regression_test.js index 810f5534b..b83695570 100644 --- a/jscomp/test/dist/jscomp/test/inline_regression_test.js +++ b/jscomp/test/dist/jscomp/test/inline_regression_test.js @@ -12,7 +12,7 @@ function generic_basename(is_dir_sep, current_dir_name, name) { return current_dir_name; } else { let _n = name.length - 1 | 0; - while(true) { + while (true) { const n = _n; if (n < 0) { return Stdlib__String.sub(name, 0, 1); @@ -20,7 +20,7 @@ function generic_basename(is_dir_sep, current_dir_name, name) { if (!Curry._2(is_dir_sep, name, n)) { let _n$1 = n; let p = n + 1 | 0; - while(true) { + while (true) { const n$1 = _n$1; if (n$1 < 0) { return Stdlib__String.sub(name, 0, p); diff --git a/jscomp/test/dist/jscomp/test/int64_test.js b/jscomp/test/dist/jscomp/test/int64_test.js index fe38d960a..0be559add 100644 --- a/jscomp/test/dist/jscomp/test/int64_test.js +++ b/jscomp/test/dist/jscomp/test/int64_test.js @@ -829,7 +829,7 @@ const shift_right_logical_suites = [ ]; function fib(_n, _a, _b) { - while(true) { + while (true) { const b = _b; const a = _a; const n = _n; @@ -844,7 +844,7 @@ function fib(_n, _a, _b) { } function fac(_n, _acc) { - while(true) { + while (true) { const acc = _acc; const n = _n; if (n === 0) { diff --git a/jscomp/test/dist/jscomp/test/int_map.js b/jscomp/test/dist/jscomp/test/int_map.js index 68ea95915..94c5a2bcd 100644 --- a/jscomp/test/dist/jscomp/test/int_map.js +++ b/jscomp/test/dist/jscomp/test/int_map.js @@ -161,7 +161,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -178,7 +178,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -190,7 +190,7 @@ function find_first(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -217,7 +217,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -227,7 +227,7 @@ function find_first_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -254,7 +254,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -266,7 +266,7 @@ function find_last(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -293,7 +293,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -303,7 +303,7 @@ function find_last_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -330,7 +330,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -345,7 +345,7 @@ function find_opt(x, _param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -360,7 +360,7 @@ function mem(x, _param) { } function min_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -380,7 +380,7 @@ function min_binding(_param) { } function min_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -398,7 +398,7 @@ function min_binding_opt(_param) { } function max_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -418,7 +418,7 @@ function max_binding(_param) { } function max_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -563,7 +563,7 @@ function add_to_list(x, data, m) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -611,7 +611,7 @@ function mapi(f, param) { } function fold(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -624,7 +624,7 @@ function fold(f, _m, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -641,7 +641,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -875,7 +875,7 @@ function partition(p, param) { } function cons_enum(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -896,7 +896,7 @@ function cons_enum(_m, _e) { function compare$1(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -926,7 +926,7 @@ function compare$1(cmp, m1, m2) { function equal(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -960,7 +960,7 @@ function cardinal(param) { } function bindings_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -1023,7 +1023,7 @@ function to_seq(m) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1067,7 +1067,7 @@ function to_rev_seq(c) { function to_seq_from(low, m) { const aux = function (low, _m, _c) { - while(true) { + while (true) { const c = _c; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { diff --git a/jscomp/test/dist/jscomp/test/lexer_test.js b/jscomp/test/dist/jscomp/test/lexer_test.js index 97c10b093..eb44ff227 100644 --- a/jscomp/test/dist/jscomp/test/lexer_test.js +++ b/jscomp/test/dist/jscomp/test/lexer_test.js @@ -16,7 +16,7 @@ const Stdlib__List = require("melange/list.js"); function get_tokens(lex, str) { const buf = Stdlib__Lexing.from_string(undefined, str); let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; const v = Curry._1(lex, buf); if (Caml_obj.caml_equal(v, /* EOF */ 7)) { diff --git a/jscomp/test/dist/jscomp/test/loop_regression_test.js b/jscomp/test/dist/jscomp/test/loop_regression_test.js index da1704a5f..18b521f60 100644 --- a/jscomp/test/dist/jscomp/test/loop_regression_test.js +++ b/jscomp/test/dist/jscomp/test/loop_regression_test.js @@ -11,7 +11,7 @@ function f(param) { contents: 0 }; let n = 10; - while(true) { + while (true) { if (v.contents > n) { return acc.contents; } diff --git a/jscomp/test/dist/jscomp/test/map_find_test.js b/jscomp/test/dist/jscomp/test/map_find_test.js index 1d6d4bf7e..904feabfa 100644 --- a/jscomp/test/dist/jscomp/test/map_find_test.js +++ b/jscomp/test/dist/jscomp/test/map_find_test.js @@ -141,7 +141,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -318,7 +318,7 @@ function add$1(x, data, m) { } function find$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { diff --git a/jscomp/test/dist/jscomp/test/map_test.js b/jscomp/test/dist/jscomp/test/map_test.js index ab68a2ca8..5e9384757 100644 --- a/jscomp/test/dist/jscomp/test/map_test.js +++ b/jscomp/test/dist/jscomp/test/map_test.js @@ -142,7 +142,7 @@ function add(x, data, m) { } function cons_enum(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -163,7 +163,7 @@ function cons_enum(_m, _e) { function compare$1(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -193,7 +193,7 @@ function compare$1(cmp, m1, m2) { function equal(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -363,7 +363,7 @@ function add$1(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { diff --git a/jscomp/test/dist/jscomp/test/mario_game.js b/jscomp/test/dist/jscomp/test/mario_game.js index c165a0d09..3d8567121 100644 --- a/jscomp/test/dist/jscomp/test/mario_game.js +++ b/jscomp/test/dist/jscomp/test/mario_game.js @@ -2120,7 +2120,7 @@ function check_collisions(collid, all_collids, state) { const broad = broad_phase(collid, all_collids, state); let _cs = broad; let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; const cs = _cs; if (!cs) { @@ -2450,7 +2450,7 @@ const Director = { }; function mem_loc(checkloc, _loclist) { - while(true) { + while (true) { const loclist = _loclist; if (!loclist) { return false; @@ -2520,7 +2520,7 @@ function choose_sblock_typ(typ) { } function avoid_overlap(_lst, currentLst) { - while(true) { + while (true) { const lst = _lst; if (!lst) { return /* [] */ 0; @@ -2539,7 +2539,7 @@ function avoid_overlap(_lst, currentLst) { } function trim_edges(_lst, blockw, blockh) { - while(true) { + while (true) { const lst = _lst; if (!lst) { return /* [] */ 0; @@ -2579,7 +2579,7 @@ function generate_clouds(cbx, cby, typ, num) { } function generate_coins(_block_coord) { - while(true) { + while (true) { const block_coord = _block_coord; const place_coin = Stdlib__Random.$$int(2); if (!block_coord) { @@ -3034,7 +3034,7 @@ function choose_block_pattern(blockw, blockh, cbx, cby, prob) { } function generate_enemies(blockw, blockh, _cbx, _cby, acc) { - while(true) { + while (true) { const cby = _cby; const cbx = _cbx; if (cbx > blockw - 32) { @@ -3073,7 +3073,7 @@ function generate_enemies(blockw, blockh, _cbx, _cby, acc) { } function generate_block_enemies(_block_coord) { - while(true) { + while (true) { const block_coord = _block_coord; const place_enemy = Stdlib__Random.$$int(20); const enemy_typ = Stdlib__Random.$$int(3); @@ -3102,7 +3102,7 @@ function generate_block_enemies(_block_coord) { } function generate_block_locs(blockw, blockh, _cbx, _cby, _acc) { - while(true) { + while (true) { const acc = _acc; const cby = _cby; const cbx = _cbx; @@ -3146,7 +3146,7 @@ function generate_panel(context, blockw, blockh) { } function generate_ground(blockw, blockh, _inc, _acc) { - while(true) { + while (true) { const acc = _acc; const inc = _inc; if (inc > blockw) { diff --git a/jscomp/test/dist/jscomp/test/miss_colon_test.js b/jscomp/test/dist/jscomp/test/miss_colon_test.js index a31c872b5..acbfb112c 100644 --- a/jscomp/test/dist/jscomp/test/miss_colon_test.js +++ b/jscomp/test/dist/jscomp/test/miss_colon_test.js @@ -3,7 +3,7 @@ function $plus$colon(_f, _g) { - while(true) { + while (true) { const g = _g; const f = _f; if (f.TAG === /* Int */ 0) { @@ -47,7 +47,7 @@ function $plus$colon(_f, _g) { } function $star$colon(_f, _g) { - while(true) { + while (true) { const g = _g; const f = _f; let exit = 0; diff --git a/jscomp/test/dist/jscomp/test/number_lexer.js b/jscomp/test/dist/jscomp/test/number_lexer.js index 34eba8a3f..83855ac8f 100644 --- a/jscomp/test/dist/jscomp/test/number_lexer.js +++ b/jscomp/test/dist/jscomp/test/number_lexer.js @@ -23,7 +23,7 @@ const __ocaml_lex_tables = { }; function __ocaml_lex_token_rec(l, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { diff --git a/jscomp/test/dist/jscomp/test/ocaml_parsetree_test.js b/jscomp/test/dist/jscomp/test/ocaml_parsetree_test.js index 6c1f16293..77689783a 100644 --- a/jscomp/test/dist/jscomp/test/ocaml_parsetree_test.js +++ b/jscomp/test/dist/jscomp/test/ocaml_parsetree_test.js @@ -652,7 +652,7 @@ function parse_opt(error, active, flags, s) { Caml_array.set(error, i, true); }; const get_num = function (_n, _i) { - while(true) { + while (true) { const i = _i; const n = _n; if (i >= s.length) { @@ -699,7 +699,7 @@ function parse_opt(error, active, flags, s) { ]; }; const loop = function (_i) { - while(true) { + while (true) { const i = _i; if (i >= s.length) { return; @@ -1497,7 +1497,7 @@ function highlight_dumb(ppf, lb, loc) { } function highlight_locations(ppf, locs) { - while(true) { + while (true) { const num_lines = status.contents; if (/* tag */ typeof num_lines === "number" || typeof num_lines === "string") { if (num_lines === /* Uninitialised */ 0) { @@ -1559,7 +1559,7 @@ function show_filename(file) { if (absname.contents) { const s = Curry._1(Stdlib__Filename.is_relative, file) ? Stdlib__Filename.concat(Caml_sys.caml_sys_getcwd(undefined), file) : file; const aux = function (_s) { - while(true) { + while (true) { const s = _s; const base = Curry._1(Stdlib__Filename.basename, s); const dir = Curry._1(Stdlib__Filename.dirname, s); @@ -1866,7 +1866,7 @@ function prerr_warning(loc, w) { const out_functions = Stdlib__Format.pp_get_formatter_out_functions(ppf, undefined); const out_string = function (str, start, len) { const count = function (_i, _c) { - while(true) { + while (true) { const c = _c; const i = _i; if (i === (start + len | 0)) { @@ -2355,7 +2355,7 @@ function add_text_attrs(dsl, attrs) { function get_docstring(info, dsl) { let _param = dsl; - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -2379,7 +2379,7 @@ function get_docstring(info, dsl) { function get_docstrings(dsl) { let _acc = /* [] */ 0; let _param = dsl; - while(true) { + while (true) { const param = _param; const acc = _acc; if (!param) { @@ -10783,7 +10783,7 @@ Stdlib__Hashtbl.replace(directive_built_in_values, "WORD_SIZE", { function semantic_version_parse(str, start, last_index) { const aux = function (_start, _acc, last_index) { - while(true) { + while (true) { const acc = _acc; const start = _start; if (start > last_index) { @@ -10976,7 +10976,7 @@ function directive_parse(token_with_comments, lexbuf) { return v; } let _param; - while(true) { + while (true) { const t = Curry._1(token_with_comments, lexbuf); if (/* tag */ typeof t === "number" || typeof t === "string") { switch (t) { @@ -11990,7 +11990,7 @@ function remove_underscores(s) { const b = Caml_bytes.caml_create_bytes(l); let _src = 0; let _dst = 0; - while(true) { + while (true) { const dst = _dst; const src = _src; if (src >= l) { @@ -12310,7 +12310,7 @@ const __ocaml_lex_tables = { function token(lexbuf) { lexbuf.lex_mem = Caml_array.make(8, -1); let ___ocaml_lex_state = 0; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -12797,7 +12797,7 @@ function token(lexbuf) { } function __ocaml_lex_comment_rec(lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -12979,7 +12979,7 @@ function __ocaml_lex_comment_rec(lexbuf, ___ocaml_lex_state) { } function __ocaml_lex_quoted_string_rec(delim, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -13023,7 +13023,7 @@ function comment(lexbuf) { function string(lexbuf) { lexbuf.lex_mem = Caml_array.make(2, -1); let ___ocaml_lex_state = 164; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -13131,7 +13131,7 @@ function token$1(lexbuf) { set_pre_docstrings(pre_pos, b); }; const loop = function (_lines, _docs, lexbuf) { - while(true) { + while (true) { const docs = _docs; const lines = _lines; const doc = token_with_comments(lexbuf); @@ -13193,7 +13193,7 @@ function token$1(lexbuf) { return Curry._1(cont, lexbuf); } else { let _param; - while(true) { + while (true) { const token = token_with_comments(lexbuf); if (Caml_obj.caml_equal(token, /* EOF */ 25)) { throw new Caml_js_exceptions.MelangeError($$Error$2, { @@ -13261,7 +13261,7 @@ function token$1(lexbuf) { switch (if_then_else$1) { case /* Dir_if_true */ 0 : let _else_seen = Caml_obj.caml_equal(match, /* ELSE */ 23); - while(true) { + while (true) { const else_seen = _else_seen; const token$2 = token_with_comments(lexbuf); if (Caml_obj.caml_equal(token$2, /* EOF */ 25)) { @@ -13474,7 +13474,7 @@ function init$1(param) { } function skip_phrase(lexbuf) { - while(true) { + while (true) { try { const match = token$1(lexbuf); if (!/* tag */ (typeof match === "number" || typeof match === "string")) { diff --git a/jscomp/test/dist/jscomp/test/ocaml_proto_test.js b/jscomp/test/dist/jscomp/test/ocaml_proto_test.js index 85fe73d56..19eefed78 100644 --- a/jscomp/test/dist/jscomp/test/ocaml_proto_test.js +++ b/jscomp/test/dist/jscomp/test/ocaml_proto_test.js @@ -247,7 +247,7 @@ function pop_last(param) { } function apply_until(f, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -285,7 +285,7 @@ function string_fold_lefti(f, e0, s) { const len = s.length; let _acc = e0; let _i = 0; - while(true) { + while (true) { const i = _i; const acc = _acc; if (i === len) { @@ -1593,7 +1593,7 @@ const __ocaml_lex_tables = { }; function __ocaml_lex_multi_line_comment_rec(_l, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const l = _l; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); @@ -1626,7 +1626,7 @@ function __ocaml_lex_multi_line_comment_rec(_l, lexbuf, ___ocaml_lex_state) { } function __ocaml_lex_string_rec(_l, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const l = _l; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); @@ -1662,7 +1662,7 @@ function __ocaml_lex_string_rec(_l, lexbuf, ___ocaml_lex_state) { } function __ocaml_lex_comment_rec(_l, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const l = _l; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); @@ -1692,7 +1692,7 @@ function __ocaml_lex_comment_rec(_l, lexbuf, ___ocaml_lex_state) { function lexer(lexbuf) { let ___ocaml_lex_state = 0; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -2098,7 +2098,7 @@ function indentation_prefix(n) { function print(scope) { const loop = function (_acc, i, _param) { - while(true) { + while (true) { const param = _param; const acc = _acc; if (!param) { @@ -4020,7 +4020,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -4054,7 +4054,7 @@ function map$1(f, param) { } function fold(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -4692,7 +4692,7 @@ function not_found(f) { } function list_assoc2(x, _param) { - while(true) { + while (true) { const param = _param; if (param) { const match = param.hd; @@ -4931,7 +4931,7 @@ function compile_message_p2(types, param, message) { }; } const loop = function (_scopes, _l) { - while(true) { + while (true) { const l = _l; const scopes = _scopes; if (!l) { diff --git a/jscomp/test/dist/jscomp/test/ocaml_re_test.js b/jscomp/test/dist/jscomp/test/ocaml_re_test.js index 8ea5ef6a5..09b2ca60c 100644 --- a/jscomp/test/dist/jscomp/test/ocaml_re_test.js +++ b/jscomp/test/dist/jscomp/test/ocaml_re_test.js @@ -46,7 +46,7 @@ function eq(loc, x, y) { } function union(_l, _l$p) { - while(true) { + while (true) { const l$p = _l$p; const l = _l; if (!l$p) { @@ -105,7 +105,7 @@ function union(_l, _l$p) { } function inter(_l, _l$p) { - while(true) { + while (true) { const l$p = _l$p; const l = _l; if (!l$p) { @@ -151,7 +151,7 @@ function inter(_l, _l$p) { } function diff(_l, _l$p) { - while(true) { + while (true) { const l$p = _l$p; const l = _l; if (!l$p) { @@ -248,7 +248,7 @@ function offset(o, l) { } function mem(c, _s) { - while(true) { + while (true) { const s = _s; if (!s) { return false; @@ -425,7 +425,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -632,7 +632,7 @@ const empty = { function hash(m, accu) { let _l = m.marks; let _accu = hash_combine(Stdlib__Hashtbl.hash(m.pmarks), accu); - while(true) { + while (true) { const accu$1 = _accu; const l = _l; if (!l) { @@ -671,7 +671,7 @@ function marks_set_idx$1(marks, idx) { } function first(f, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -823,7 +823,7 @@ function rename(ids, x) { } function equal(_l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -901,7 +901,7 @@ function equal(_l1, _l2) { } function hash$1(_l, _accu) { - while(true) { + while (true) { const accu = _accu; const l = _l; if (!l) { @@ -1038,7 +1038,7 @@ function mark_used_indices(tbl) { } function find_free(tbl, _idx, len) { - while(true) { + while (true) { const idx = _idx; if (idx === len || !Caml_array.get(tbl, idx)) { return idx; @@ -1074,7 +1074,7 @@ function remove_matches(param) { } function split_at_match_rec(_l$p, _param) { - while(true) { + while (true) { const param = _param; const l$p = _l$p; if (param) { @@ -1109,7 +1109,7 @@ function split_at_match_rec(_l$p, _param) { } function remove_duplicates(prev, _l, y) { - while(true) { + while (true) { const l = _l; if (!l) { return [ @@ -1490,7 +1490,7 @@ const Re_automata_State = { }; function iter(_n, f, _v) { - while(true) { + while (true) { const v = _v; const n = _n; if (n === 0) { @@ -1577,7 +1577,7 @@ function loop(info, s, pos, st) { let _pos = pos; let _st = st; let _st$p = st$p; - while(true) { + while (true) { const st$p$1 = _st$p; const st$1 = _st; const pos$1 = _pos; @@ -1675,7 +1675,7 @@ function scan_str(info, s, initial_state, groups) { } else { let _pos = pos; let _st = initial_state; - while(true) { + while (true) { const st = _st; const pos$1 = _pos; if (pos$1 >= last) { @@ -1707,7 +1707,7 @@ function scan_str(info, s, initial_state, groups) { return st$1; } else { let pos$2 = last - 1 | 0; - while(true) { + while (true) { const st$p$1 = Caml_array.get(st$1.next, info$1.re.lnl); if (st$p$1.idx >= 0) { if (groups) { @@ -1763,7 +1763,7 @@ function trans_set(cache, cm, s) { } function is_charset(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -1802,7 +1802,7 @@ function split(s, cm) { Caml_bytes.set(cm, i, /* '\001' */1); Caml_bytes.set(cm, j + 1 | 0, /* '\001' */1); }; - while(true) { + while (true) { const t = _t; if (!t) { return; @@ -1852,7 +1852,7 @@ function colorize(c, regexp) { contents: false }; const colorize$1 = function (_regexp) { - while(true) { + while (true) { const regexp = _regexp; if (/* tag */ typeof regexp === "number" || typeof regexp === "string") { switch (regexp) { @@ -1935,7 +1935,7 @@ function flatten_cmap(cm) { } function equal$2(_x1, _x2) { - while(true) { + while (true) { const x2 = _x2; const x1 = _x1; if (/* tag */ typeof x1 === "number" || typeof x1 === "string") { @@ -2151,7 +2151,7 @@ function equal$2(_x1, _x2) { } function eq_list(_l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -2185,7 +2185,7 @@ function sequence(l) { } function merge_sequences(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -2277,7 +2277,7 @@ function enforce_kind(ids, kind, kind$p, cr) { } function translate(ids, kind, _ign_group, ign_case, _greedy, pos, cache, c, _s) { - while(true) { + while (true) { const s = _s; const greedy = _greedy; const ign_group = _ign_group; @@ -2580,7 +2580,7 @@ function as_set(s) { } function handle_case(_ign_case, _s) { - while(true) { + while (true) { const s = _s; const ign_case = _ign_case; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -2719,7 +2719,7 @@ function handle_case(_ign_case, _s) { } function anchored(_l) { - while(true) { + while (true) { const l = _l; if (/* tag */ typeof l === "number" || typeof l === "string") { switch (l) { @@ -3405,7 +3405,7 @@ function parse(multiline, dollar_endonly, dotall, ungreedy, s) { } if (accept(/* '#' */35)) { let _param; - while(true) { + while (true) { if (accept(/* ')' */41)) { return epsilon; } @@ -3643,7 +3643,7 @@ function parse(multiline, dollar_endonly, dotall, ungreedy, s) { return; } else { let _i = d - /* '0' */48 | 0; - while(true) { + while (true) { const i$1 = _i; if (i.contents === l) { return i$1; @@ -3665,7 +3665,7 @@ function parse(multiline, dollar_endonly, dotall, ungreedy, s) { } }; const branch$p = function (_left) { - while(true) { + while (true) { const left = _left; if (i.contents === l || test(/* '|' */124) || test(/* ')' */41)) { return seq$2(Stdlib__List.rev(left)); @@ -3678,7 +3678,7 @@ function parse(multiline, dollar_endonly, dotall, ungreedy, s) { }; }; const regexp$p = function (_left) { - while(true) { + while (true) { const left = _left; if (!accept(/* '|' */124)) { return left; @@ -3694,7 +3694,7 @@ function parse(multiline, dollar_endonly, dotall, ungreedy, s) { }; }; const bracket = function (_s) { - while(true) { + while (true) { const s = _s; if (Caml_obj.caml_notequal(s, /* [] */ 0) && accept(/* ']' */93)) { return s; diff --git a/jscomp/test/dist/jscomp/test/ocaml_typedtree_test.js b/jscomp/test/dist/jscomp/test/ocaml_typedtree_test.js index f885441a3..e6ae20cea 100644 --- a/jscomp/test/dist/jscomp/test/ocaml_typedtree_test.js +++ b/jscomp/test/dist/jscomp/test/ocaml_typedtree_test.js @@ -195,7 +195,7 @@ function map_end(f, l1, l2) { } function for_all2(pred, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -273,7 +273,7 @@ function may_map(f, x) { function find_in_path_uncap(path, name) { const uname = Caml_bytes.bytes_to_string(Stdlib__Bytes.uncapitalize_ascii(Caml_bytes.bytes_of_string(name))); let _param = path; - while(true) { + while (true) { const param = _param; if (param) { const dir = param.hd; @@ -931,7 +931,7 @@ function parse_opt(error, active, flags, s) { Caml_array.set(error, i, true); }; const get_num = function (_n, _i) { - while(true) { + while (true) { const i = _i; const n = _n; if (i >= s.length) { @@ -978,7 +978,7 @@ function parse_opt(error, active, flags, s) { ]; }; const loop = function (_i) { - while(true) { + while (true) { const i = _i; if (i >= s.length) { return; @@ -1776,7 +1776,7 @@ function highlight_dumb(ppf, lb, loc) { } function highlight_locations(ppf, locs) { - while(true) { + while (true) { const num_lines = status.contents; if (/* tag */ typeof num_lines === "number" || typeof num_lines === "string") { if (num_lines === /* Uninitialised */ 0) { @@ -1838,7 +1838,7 @@ function show_filename(file) { if (absname.contents) { const s = Curry._1(Stdlib__Filename.is_relative, file) ? Stdlib__Filename.concat(Caml_sys.caml_sys_getcwd(undefined), file) : file; const aux = function (_s) { - while(true) { + while (true) { const s = _s; const base = Curry._1(Stdlib__Filename.basename, s); const dir = Curry._1(Stdlib__Filename.dirname, s); @@ -2145,7 +2145,7 @@ function prerr_warning(loc, w) { const out_functions = Stdlib__Format.pp_get_formatter_out_functions(ppf, undefined); const out_string = function (str, start, len) { const count = function (_i, _c) { - while(true) { + while (true) { const c = _c; const i = _i; if (i === (start + len | 0)) { @@ -2539,7 +2539,7 @@ function add(id, data, param) { } function find_same(id, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -2554,7 +2554,7 @@ function find_same(id, _param) { } else { let s = id.stamp; let _k = k.previous; - while(true) { + while (true) { const k$1 = _k; if (k$1 !== undefined) { if (k$1.ident.stamp === s) { @@ -2575,7 +2575,7 @@ function find_same(id, _param) { } function find_name(name, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -2604,7 +2604,7 @@ function get_all(k) { } function find_all(name, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return /* [] */ 0; @@ -2623,7 +2623,7 @@ function find_all(name, _param) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -2637,7 +2637,7 @@ function iter(f, _param) { } function same(_p1, _p2) { - while(true) { + while (true) { const p2 = _p2; const p1 = _p1; switch (p1.TAG) { @@ -2684,7 +2684,7 @@ function same(_p1, _p2) { } function isfree(id, _id$p) { - while(true) { + while (true) { const id$p = _id$p; switch (id$p.TAG) { case /* Pident */ 0 : @@ -2704,7 +2704,7 @@ function isfree(id, _id$p) { } function binding_time(_id) { - while(true) { + while (true) { const id = _id; switch (id.TAG) { case /* Pident */ 0 : @@ -2740,7 +2740,7 @@ function name(parenOpt, id) { } function head(_id) { - while(true) { + while (true) { const id = _id; switch (id.TAG) { case /* Pident */ 0 : @@ -2763,7 +2763,7 @@ function head(_id) { } function last(_id) { - while(true) { + while (true) { const id = _id; switch (id.TAG) { case /* Pident */ 0 : @@ -2779,7 +2779,7 @@ function last(_id) { } function flat(_accu, _s) { - while(true) { + while (true) { const s = _s; const accu = _accu; switch (s.TAG) { @@ -3074,7 +3074,7 @@ function add$1(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -3091,7 +3091,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -3103,7 +3103,7 @@ function find_first(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -3130,7 +3130,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -3140,7 +3140,7 @@ function find_first_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -3167,7 +3167,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -3179,7 +3179,7 @@ function find_last(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -3206,7 +3206,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -3216,7 +3216,7 @@ function find_last_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -3243,7 +3243,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -3258,7 +3258,7 @@ function find_opt(x, _param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -3273,7 +3273,7 @@ function mem(x, _param) { } function min_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -3293,7 +3293,7 @@ function min_binding(_param) { } function min_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -3311,7 +3311,7 @@ function min_binding_opt(_param) { } function max_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -3331,7 +3331,7 @@ function max_binding(_param) { } function max_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -3476,7 +3476,7 @@ function add_to_list(x, data, m) { } function iter$1(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -3524,7 +3524,7 @@ function mapi(f, param) { } function fold(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -3537,7 +3537,7 @@ function fold(f, _m, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -3554,7 +3554,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -3788,7 +3788,7 @@ function partition(p, param) { } function cons_enum(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -3809,7 +3809,7 @@ function cons_enum(_m, _e) { function compare$2(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -3839,7 +3839,7 @@ function compare$2(cmp, m1, m2) { function equal$2(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -3873,7 +3873,7 @@ function cardinal(param) { } function bindings_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -3936,7 +3936,7 @@ function to_seq(m) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -3980,7 +3980,7 @@ function to_rev_seq(c) { function to_seq_from(low, m) { const aux = function (low, _m, _c) { - while(true) { + while (true) { const c = _c; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -4294,7 +4294,7 @@ function join$1(l, v, r) { } function min_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -4379,7 +4379,7 @@ function is_empty$1(param) { } function mem$2(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -4457,7 +4457,7 @@ function diff(s1, s2) { } function cons_enum$1(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -4477,7 +4477,7 @@ function cons_enum$1(_s, _e) { function compare$3(s1, s2) { let _e1 = cons_enum$1(s1, /* End */ 0); let _e2 = cons_enum$1(s2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -4505,7 +4505,7 @@ function equal$3(s1, s2) { } function fold$1(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -4518,7 +4518,7 @@ function fold$1(f, _s, _accu) { } function elements_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -4753,7 +4753,7 @@ function join$2(l, v, r) { } function min_elt$1(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -4838,7 +4838,7 @@ function is_empty$2(param) { } function mem$3(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -4916,7 +4916,7 @@ function diff$1(s1, s2) { } function subset$1(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -4967,7 +4967,7 @@ function subset$1(_s1, _s2) { } function fold$2(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -4980,7 +4980,7 @@ function fold$2(f, _s, _accu) { } function exists$1(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -4997,7 +4997,7 @@ function exists$1(p, _param) { } function elements_aux$1(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -5145,7 +5145,7 @@ function add$4(x, data, m) { } function find$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -5162,7 +5162,7 @@ function find$1(x, _param) { } function fold$3(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -5228,7 +5228,7 @@ function is_Tunivar(param) { const dummy_method = "*dummy method*"; function field_kind_repr(_kind) { - while(true) { + while (true) { const kind = _kind; if (/* tag */ typeof kind === "number" || typeof kind === "string") { return kind; @@ -5243,7 +5243,7 @@ function field_kind_repr(_kind) { } function repr(_t) { - while(true) { + while (true) { const t = _t; const t$p = t.desc; if (/* tag */ typeof t$p === "number" || typeof t$p === "string") { @@ -5266,7 +5266,7 @@ function repr(_t) { } function commu_repr(_r) { - while(true) { + while (true) { const r = _r; if (/* tag */ typeof r === "number" || typeof r === "string") { return r; @@ -5281,7 +5281,7 @@ function commu_repr(_r) { } function row_field_repr_aux(_tl, _fi) { - while(true) { + while (true) { const fi = _fi; const tl = _tl; if (/* tag */ typeof fi === "number" || typeof fi === "string") { @@ -5314,7 +5314,7 @@ function row_field_repr_aux(_tl, _fi) { } function rev_concat(_l, _ll) { - while(true) { + while (true) { const ll = _ll; const l = _l; if (!ll) { @@ -5327,7 +5327,7 @@ function rev_concat(_l, _ll) { } function row_repr_aux(_ll, _row) { - while(true) { + while (true) { const row = _row; const ll = _ll; const row$p = repr(row.row_more).desc; @@ -5357,7 +5357,7 @@ function row_repr_aux(_ll, _row) { function row_field(tag, row) { let _param = row.row_fields; - while(true) { + while (true) { const param = _param; if (param) { const match = param.hd; @@ -5378,7 +5378,7 @@ function row_field(tag, row) { } function row_more(_row) { - while(true) { + while (true) { const row = _row; const ty = repr(row.row_more); const row$p = ty.desc; @@ -5458,7 +5458,7 @@ function proxy(ty) { switch (row.TAG) { case /* Tobject */ 4 : let _ty = row._0; - while(true) { + while (true) { const ty$1 = _ty; const match = ty$1.desc; if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -5506,7 +5506,7 @@ function has_constr_row(t) { switch (row.TAG) { case /* Tobject */ 4 : let _t = row._0; - while(true) { + while (true) { const t$1 = _t; const match = repr(t$1).desc; if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -5565,7 +5565,7 @@ function is_constr_row(t) { } function iter_row(f, _row) { - while(true) { + while (true) { const row = _row; Stdlib__List.iter((function (param) { const match = row_field_repr_aux(/* [] */ 0, param[1]); @@ -5652,7 +5652,7 @@ function iter_type_expr(f, ty) { } function iter_abbrev(f, _rem) { - while(true) { + while (true) { const rem = _rem; if (/* tag */ typeof rem === "number" || typeof rem === "string") { return; @@ -5863,7 +5863,7 @@ function copy_row(f, fixed, row, keep, more) { } function copy_kind(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { if (param === /* Fpresent */ 0) { @@ -5907,7 +5907,7 @@ function copy_commu(c) { } function copy_type_desc(_keep_namesOpt, f, _ty) { - while(true) { + while (true) { const keep_namesOpt = _keep_namesOpt; const ty = _ty; const keep_names = keep_namesOpt !== undefined ? keep_namesOpt : false; @@ -6004,7 +6004,7 @@ function copy_type_desc(_keep_namesOpt, f, _ty) { case /* Tpoly */ 10 : const tyl = Stdlib__List.map((function (x) { let _ty = Curry._1(f, x); - while(true) { + while (true) { const ty = _ty; const ty$1 = ty.desc; if (!/* tag */ (typeof ty$1 === "number" || typeof ty$1 === "string")) { @@ -6191,7 +6191,7 @@ function unmark_class_signature(sign) { } function find_expans(priv, p1, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -6306,7 +6306,7 @@ function prefixed_label_name(l) { } function extract_label_aux(_hd, l, _param) { - while(true) { + while (true) { const param = _param; const hd = _hd; if (param) { @@ -6499,7 +6499,7 @@ function snapshot(param) { } function rev_log(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -6788,7 +6788,7 @@ function free_vars(ty) { contents: /* Empty */ 0 }; const loop = function (_ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (ty$1.level < 0) { @@ -7727,7 +7727,7 @@ function add_text_attrs(dsl, attrs) { function get_docstring(info, dsl) { let _param = dsl; - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -7751,7 +7751,7 @@ function get_docstring(info, dsl) { function get_docstrings(dsl) { let _acc = /* [] */ 0; let _param = dsl; - while(true) { + while (true) { const param = _param; const acc = _acc; if (!param) { @@ -10338,7 +10338,7 @@ function add$5(x, data, param) { } function find$2(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -10355,7 +10355,7 @@ function find$2(x, _param) { } function mem$4(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -10370,7 +10370,7 @@ function mem$4(x, _param) { } function iter$2(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -10383,7 +10383,7 @@ function iter$2(f, _param) { } function fold$4(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -11039,7 +11039,7 @@ function extension_constructor(s, ext) { } function rename_bound_idents(_s, _idents, _param) { - while(true) { + while (true) { const param = _param; const idents = _idents; const s = _s; @@ -11368,7 +11368,7 @@ function fold_name(f) { let _stack = /* [] */ 0; let _accu = param$1; let _param = param; - while(true) { + while (true) { const param$2 = _param; const accu = _accu; const stack = _stack; @@ -11647,7 +11647,7 @@ function add$7(x, t) { } function fold$5(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -11660,7 +11660,7 @@ function fold$5(f, _s, _accu) { } function elements_aux$2(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -12228,7 +12228,7 @@ function find_modtype_expansion(path, env) { } function is_functor_arg(_path, env) { - while(true) { + while (true) { const path = _path; switch (path.TAG) { case /* Pident */ 0 : @@ -12922,7 +12922,7 @@ const iter_env_cont = { }; function scrape_alias_safe(env, _mty) { - while(true) { + while (true) { const mty = _mty; if (mty.TAG !== /* Mty_alias */ 3) { return true; @@ -13197,7 +13197,7 @@ function is_Tlink(param) { function gadt_instance_level(env, t) { let _param = env.gadt_instances; - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -14669,7 +14669,7 @@ function add_item(comp, env) { } function add_signature(_sg, _env) { - while(true) { + while (true) { const env = _env; const sg = _sg; if (!sg) { @@ -22917,7 +22917,7 @@ Stdlib__Hashtbl.replace(directive_built_in_values, "WORD_SIZE", { function semantic_version_parse(str, start, last_index) { const aux = function (_start, _acc, last_index) { - while(true) { + while (true) { const acc = _acc; const start = _start; if (start > last_index) { @@ -23110,7 +23110,7 @@ function directive_parse(token_with_comments, lexbuf) { return v; } let _param; - while(true) { + while (true) { const t = Curry._1(token_with_comments, lexbuf); if (/* tag */ typeof t === "number" || typeof t === "string") { switch (t) { @@ -24130,7 +24130,7 @@ function remove_underscores(s) { const b = Caml_bytes.caml_create_bytes(l); let _src = 0; let _dst = 0; - while(true) { + while (true) { const dst = _dst; const src = _src; if (src >= l) { @@ -24450,7 +24450,7 @@ const __ocaml_lex_tables = { function token(lexbuf) { lexbuf.lex_mem = Caml_array.make(8, -1); let ___ocaml_lex_state = 0; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -24943,7 +24943,7 @@ function comment(lexbuf) { function string(lexbuf) { lexbuf.lex_mem = Caml_array.make(2, -1); let ___ocaml_lex_state = 164; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -24997,7 +24997,7 @@ function string(lexbuf) { } function __ocaml_lex_comment_rec(lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -25179,7 +25179,7 @@ function __ocaml_lex_comment_rec(lexbuf, ___ocaml_lex_state) { } function __ocaml_lex_quoted_string_rec(delim, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -25271,7 +25271,7 @@ function token$1(lexbuf) { set_pre_docstrings(pre_pos, b); }; const loop = function (_lines, _docs, lexbuf) { - while(true) { + while (true) { const docs = _docs; const lines = _lines; const doc = token_with_comments(lexbuf); @@ -25333,7 +25333,7 @@ function token$1(lexbuf) { return Curry._1(cont, lexbuf); } else { let _param; - while(true) { + while (true) { const token = token_with_comments(lexbuf); if (Caml_obj.caml_equal(token, /* EOF */ 25)) { throw new Caml_js_exceptions.MelangeError($$Error$4, { @@ -25401,7 +25401,7 @@ function token$1(lexbuf) { switch (if_then_else$1) { case /* Dir_if_true */ 0 : let _else_seen = Caml_obj.caml_equal(match, /* ELSE */ 23); - while(true) { + while (true) { const else_seen = _else_seen; const token$2 = token_with_comments(lexbuf); if (Caml_obj.caml_equal(token$2, /* EOF */ 25)) { @@ -25614,7 +25614,7 @@ function init$1(param) { } function skip_phrase(lexbuf) { - while(true) { + while (true) { try { const match = token$1(lexbuf); if (!/* tag */ (typeof match === "number" || typeof match === "string")) { @@ -25815,7 +25815,7 @@ const idents = { }; function bound_idents(_pat) { - while(true) { + while (true) { const pat = _pat; const d = pat.pat_desc; if (/* tag */ typeof d === "number" || typeof d === "string") { @@ -28274,7 +28274,7 @@ function object_fields(ty) { function flatten_fields(ty) { const flatten = function (_l, _ty) { - while(true) { + while (true) { const ty = _ty; const l = _l; const ty$1 = repr(ty); @@ -28334,7 +28334,7 @@ function associate_fields(fields1, fields2) { fields1, fields2 ]; - while(true) { + while (true) { const param = _param; const s$p = _s$p; const s = _s; @@ -28411,7 +28411,7 @@ function associate_fields(fields1, fields2) { } function object_row(_ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); const match = ty$1.desc; @@ -28469,7 +28469,7 @@ function close_object(ty) { } if (match.TAG === /* Tobject */ 4) { let _ty = match._0; - while(true) { + while (true) { const ty$1 = _ty; const ty$2 = repr(ty$1); const match$1 = ty$2.desc; @@ -28525,7 +28525,7 @@ function row_variable(ty) { } if (match.TAG === /* Tobject */ 4) { let _ty = match._0; - while(true) { + while (true) { const ty$1 = _ty; const ty$2 = repr(ty$1); const match$1 = ty$2.desc; @@ -28636,7 +28636,7 @@ function hide_private_methods(ty) { } function signature_of_class_type(_sign) { - while(true) { + while (true) { const sign = _sign; switch (sign.TAG) { case /* Cty_signature */ 1 : @@ -28651,7 +28651,7 @@ function signature_of_class_type(_sign) { } function class_type_arity(_param) { - while(true) { + while (true) { const param = _param; switch (param.TAG) { case /* Cty_constr */ 0 : @@ -28712,7 +28712,7 @@ function merge_row_fields(fi1, fi2) { let _pairs = /* [] */ 0; let _fi1 = sort_row_fields(fi1); let _fi2 = sort_row_fields(fi2); - while(true) { + while (true) { const fi2$1 = _fi2; const fi1$1 = _fi1; const pairs = _pairs; @@ -28791,7 +28791,7 @@ function filter_row_fields(erase, param) { const Non_closed0 = /* @__PURE__ */ Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Non_closed0"); function closed_schema_rec(_ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (ty$1.level < 0) { @@ -28858,7 +28858,7 @@ const really_closed = { }; function free_vars_rec(_real, _ty) { - while(true) { + while (true) { const ty = _ty; const real = _real; const ty$1 = repr(ty); @@ -29169,7 +29169,7 @@ function generalize_structure$1(var_level, ty) { } function generalize_spine(_ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (ty$1.level < current_level.contents || ty$1.level === 100000000) { @@ -29236,7 +29236,7 @@ function get_level(env, p) { } function normalize_package_path(env, _p) { - while(true) { + while (true) { const p = _p; let t; try { @@ -29262,7 +29262,7 @@ function normalize_package_path(env, _p) { } function update_level(env, level, _ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (ty$1.level <= level) { @@ -29420,7 +29420,7 @@ function generalize_contravariant(env) { } function generalize_expansive(env, var_level, _ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (ty$1.level === 100000000) { @@ -29671,7 +29671,7 @@ function compute_univars(ty) { } function find_repr(p1, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -31131,7 +31131,7 @@ function merge$2(r, b) { function occur(env, ty0, ty) { const old = type_changed.contents; try { - while(type_changed.contents = false, occur_rec(env, /* [] */ 0, ty0, ty), type_changed.contents) { + while (type_changed.contents = false, occur_rec(env, /* [] */ 0, ty0, ty), type_changed.contents) { }; return merge$2(type_changed, old); @@ -31166,7 +31166,7 @@ function occur_in(env, ty0, t) { } function unify_univar(t1, t2, _param) { - while(true) { + while (true) { const param = _param; if (param) { const match = param.hd; @@ -31241,7 +31241,7 @@ function occur_univar(env, ty) { contents: /* Empty */ 0 }; const occur_rec = function (_bound, _ty) { - while(true) { + while (true) { const ty = _ty; const bound = _bound; const ty$1 = repr(ty); @@ -31377,7 +31377,7 @@ function univars_escape(env, univar_pairs, vl, ty) { contents: /* Empty */ 0 }; const occur = function (_t) { - while(true) { + while (true) { const t = _t; const t$1 = repr(t); if (Curry._2(mem$3, t$1, visited.contents)) { @@ -31513,7 +31513,7 @@ const univar_pairs = { }; function has_cached_expansion(p, _abbrev) { - while(true) { + while (true) { const abbrev = _abbrev; if (/* tag */ typeof abbrev === "number" || typeof abbrev === "string") { return false; @@ -31776,7 +31776,7 @@ function expands_to_datatype(env, ty) { } function mcomp(type_pairs, env, _t1, _t2) { - while(true) { + while (true) { const t2 = _t2; const t1 = _t1; if (t1 === t2) { @@ -32080,7 +32080,7 @@ function mcomp(type_pairs, env, _t1, _t2) { let ys = match$5._0; let _x = xs; let _y = ys; - while(true) { + while (true) { const y = _y; const x = _x; if (x) { @@ -32604,7 +32604,7 @@ function mcomp_type_option(type_pairs, env, t, t$p) { function mcomp_record_description(type_pairs, env) { const iter = function (_x, _y) { - while(true) { + while (true) { const y = _y; const x = _x; if (x) { @@ -32803,7 +32803,7 @@ function complete_type_list(allow_absentOpt, env, nl1, lv2, mty2, nl2, tl2) { const id2 = create("Pkg"); const env$p = add_module$1(undefined, id2, mty2, env); const complete = function (_nl1, ntl2) { - while(true) { + while (true) { const nl1 = _nl1; if (!nl1) { return ntl2; @@ -33077,7 +33077,7 @@ function unify(env, t1, t2) { function unify2(env, t1, t2) { const expand_both = function (_t1$p$p, _t2$p$p) { - while(true) { + while (true) { const t2$p$p = _t2$p$p; const t1$p$p = _t1$p$p; const t1$p = expand_head_unif(env.contents, t1); @@ -33404,7 +33404,7 @@ function unify_row(env, row1, row2) { try { let _f1 = f1; let _f2 = f2; - while(true) { + while (true) { const f2$1 = _f2; const f1$1 = _f1; const f1$2 = row_field_repr_aux(/* [] */ 0, f1$1); @@ -33619,7 +33619,7 @@ function unify_row(env, row1, row2) { const tl1$1 = Stdlib__List.map(repr, tl1); const tl2$1 = Stdlib__List.map(repr, tl2); const remq = function (tl, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -34594,7 +34594,7 @@ function filter_arrow(env, t, l) { } function filter_method_field(env, name, priv, _ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = expand_head_trace(env, ty); const match = ty$1.desc; @@ -35450,7 +35450,7 @@ function moregeneral(env, inst_nongen, pat_sch, subj_sch) { } function rigidify_rec(vars, _ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (ty$1.level < 0) { @@ -35843,7 +35843,7 @@ function eqtype(rename, type_pairs, subst, env, t1, t2) { if (match$3.TAG === /* Tvariant */ 8) { let row1 = match$2._0; let _row2 = match$3._0; - while(true) { + while (true) { const row2 = _row2; const match$4 = expand_head_rigid(env, row_more(row2)); const row2$1 = match$4.desc; @@ -36143,7 +36143,7 @@ function eqtype_list(rename, type_pairs, subst, env, tl1, tl2) { } function eqtype_fields(rename, type_pairs, subst, env, ty1, _ty2) { - while(true) { + while (true) { const ty2 = _ty2; const match = flatten_fields(ty1); const rest1 = match[1]; @@ -37020,7 +37020,7 @@ function collect(l) { } function filter_visited(_l) { - while(true) { + while (true) { const l = _l; if (!l) { return /* [] */ 0; @@ -37649,7 +37649,7 @@ function subtype_error(env, trace) { } function subtype_rec(env, _trace, _t1, _t2, _cstrs) { - while(true) { + while (true) { const cstrs = _cstrs; const t2 = _t2; const t1 = _t1; @@ -38826,7 +38826,7 @@ const nondep_hash = Curry._1(TypeHash.create, 47); const nondep_variants = Curry._1(TypeHash.create, 17); function nondep_type_rec(env, id, _ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = ty.desc; let exit = 0; @@ -39236,7 +39236,7 @@ function nondep_class_signature(env, id, sign) { } function nondep_class_type(env, id, _sign) { - while(true) { + while (true) { const sign = _sign; switch (sign.TAG) { case /* Cty_constr */ 0 : @@ -39498,7 +39498,7 @@ function value_ident(ppf, name) { } function print_list(pr, sep, ppf, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -40520,7 +40520,7 @@ function print_simple_out_type(ppf, s) { } function print_fields(rest, ppf, _param) { - while(true) { + while (true) { const param = _param; if (!param) { if (rest !== undefined) { @@ -40726,7 +40726,7 @@ function print_row_field(ppf, param) { } function print_typlist(print_elem, sep, ppf, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -41746,7 +41746,7 @@ function print_out_signature(ppf, param) { switch (item._1) { case /* Oext_first */ 0 : const gather_extensions = function (_acc, _items) { - while(true) { + while (true) { const items = _items; const acc = _acc; if (!items) { @@ -42781,7 +42781,7 @@ function print_out_sig_item(ppf, param) { }); }; let _param = param$1; - while(true) { + while (true) { const param$2 = _param; if (!param$2) { return; @@ -43580,7 +43580,7 @@ function raw_list(pr, ppf, param) { } function safe_kind_repr(_v, _param) { - while(true) { + while (true) { const param = _param; const v = _v; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -43607,7 +43607,7 @@ function safe_kind_repr(_v, _param) { } function safe_commu_repr(_v, _r) { - while(true) { + while (true) { const r = _r; const v = _v; if (/* tag */ typeof r === "number" || typeof r === "string") { @@ -43631,7 +43631,7 @@ function safe_commu_repr(_v, _r) { } function safe_repr(_v, _t) { - while(true) { + while (true) { const t = _t; const v = _v; const t$1 = t.desc; @@ -43655,7 +43655,7 @@ function safe_repr(_v, _t) { } function list_of_memo(_rem) { - while(true) { + while (true) { const rem = _rem; if (/* tag */ typeof rem === "number" || typeof rem === "string") { return /* [] */ 0; @@ -45105,7 +45105,7 @@ const printing_pers = { }; function compare$4(_p1, _p2) { - while(true) { + while (true) { const p2 = _p2; const p1 = _p1; switch (p1.TAG) { @@ -45276,7 +45276,7 @@ function add$8(x, data, m) { } function find$4(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -45314,7 +45314,7 @@ function index(l, x) { } function uniq(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return true; @@ -45536,7 +45536,7 @@ function best_type_path(p) { const p$p = match[0]; const get_path = function (param) { let r = Curry._2(find$4, p$p, printing_map.contents); - while(true) { + while (true) { const p$p$1 = r.contents; if (p$p$1.TAG !== /* Paths */ 0) { return p$p$1._0; @@ -45568,7 +45568,7 @@ function best_type_path(p) { }); }; }; - while((function () { + while ((function () { let tmp = false; if (Caml_obj.caml_notequal(printing_cont.contents, /* [] */ 0)) { let tmp$1; @@ -45653,7 +45653,7 @@ function add_named_var(ty) { } function new_name(_param) { - while(true) { + while (true) { let name; if (name_counter.contents < 26) { const c = Stdlib__Char.chr(97 + name_counter.contents | 0); @@ -45702,7 +45702,7 @@ function name_of_type(t) { contents: name$1 }; let i = 0; - while(Stdlib__List.exists((function (param) { + while (Stdlib__List.exists((function (param) { return current_name.contents === param[1]; }), names.contents)) { current_name.contents = name$1 + String(i); @@ -45822,7 +45822,7 @@ function namable_row(row) { } function mark_loops_rec(_visited, _ty) { - while(true) { + while (true) { const ty = _ty; const visited = _visited; const ty$1 = repr(ty); @@ -46749,7 +46749,7 @@ function method_type(param) { } function prepare_class_type(params, _sign) { - while(true) { + while (true) { const sign = _sign; switch (sign.TAG) { case /* Cty_constr */ 0 : @@ -46792,7 +46792,7 @@ function prepare_class_type(params, _sign) { } function tree_of_class_type(sch, params, _sign) { - while(true) { + while (true) { const sign = _sign; switch (sign.TAG) { case /* Cty_constr */ 0 : @@ -48893,7 +48893,7 @@ function explanation(unif, mis, ppf) { } function path_same_name(_p1, _p2) { - while(true) { + while (true) { const p2 = _p2; const p1 = _p1; switch (p1.TAG) { @@ -48955,7 +48955,7 @@ function type_same_name(t1, t2) { } function trace_same_names(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -50240,7 +50240,7 @@ function report_type_mismatch(first, second, decl, ppf) { } function compare_variants(env, decl1, decl2, _n, _cstrs1, _cstrs2) { - while(true) { + while (true) { const cstrs2 = _cstrs2; const cstrs1 = _cstrs1; const n = _n; @@ -50356,7 +50356,7 @@ function compare_variants(env, decl1, decl2, _n, _cstrs1, _cstrs2) { } function compare_records(env, decl1, decl2, _n, _labels1, _labels2) { - while(true) { + while (true) { const labels2 = _labels2; const labels1 = _labels1; const n = _n; @@ -50835,7 +50835,7 @@ strengthen.contents = strengthen$1; function nondep_supertype(env, mid, mty) { const nondep_mty = function (env, va, _mty) { - while(true) { + while (true) { const mty = _mty; switch (mty.TAG) { case /* Mty_ident */ 0 : @@ -51117,7 +51117,7 @@ function type_paths(env, p, mty) { } function type_paths_sig(_env, p, _pos, _sg) { - while(true) { + while (true) { const sg = _sg; const pos = _pos; const env = _env; @@ -51171,7 +51171,7 @@ function type_paths_sig(_env, p, _pos, _sg) { } function contains_type(env, _path) { - while(true) { + while (true) { const path = _path; switch (path.TAG) { case /* Mty_ident */ 0 : @@ -51485,7 +51485,7 @@ function union$4(s1, s2) { } function fold$6(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -51624,7 +51624,7 @@ function add$10(x, data, m) { } function find$5(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -51837,7 +51837,7 @@ function split$4(x, param) { } function mem$5(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -51890,7 +51890,7 @@ function get_prefixes(param) { } function get_arg_paths(_param) { - while(true) { + while (true) { const param = _param; switch (param.TAG) { case /* Pident */ 0 : @@ -51907,7 +51907,7 @@ function get_arg_paths(_param) { } function rollback_path(subst, _p) { - while(true) { + while (true) { const p = _p; try { return { @@ -52040,7 +52040,7 @@ function collect_arg_paths(mty) { } function remove_aliases(env, excl, _mty) { - while(true) { + while (true) { const mty = _mty; switch (mty.TAG) { case /* Mty_signature */ 1 : @@ -52517,7 +52517,7 @@ function modtypes(env, cxt, subst, mty1, mty2) { } function try_modtypes(env, cxt, subst, _mty1, mty2) { - while(true) { + while (true) { const mty1 = _mty1; switch (mty1.TAG) { case /* Mty_ident */ 0 : @@ -52758,7 +52758,7 @@ function signatures(env, cxt, subst, sig1, sig2) { ], sig1); const id_pos_list = match[0]; const build_component_table = function (_pos, _tbl, _param) { - while(true) { + while (true) { const param = _param; const tbl = _tbl; const pos = _pos; @@ -52792,7 +52792,7 @@ function signatures(env, cxt, subst, sig1, sig2) { } }), 0, sig2); const pair_components = function (subst, paired, _unpaired, _param) { - while(true) { + while (true) { const param = _param; const unpaired = _unpaired; if (param) { @@ -52892,7 +52892,7 @@ function signatures(env, cxt, subst, sig1, sig2) { const cc = signature_components(env, new_env, cxt, subst, Stdlib__List.rev(paired)); if (len1 === len2) { const is_identity_coercion = function (_pos, _param) { - while(true) { + while (true) { const param = _param; const pos = _pos; if (!param) { @@ -54277,7 +54277,7 @@ function path_of_context(param) { _0: id._0 }; let _param = param.tl; - while(true) { + while (true) { const param$1 = _param; const path = _path; if (!param$1) { @@ -54676,7 +54676,7 @@ function records_args(l1, l2) { let _r2 = /* [] */ 0; let _l1 = l1; let _l2 = l2; - while(true) { + while (true) { const l2$1 = _l2; const l1$1 = _l1; const r2 = _r2; @@ -54760,7 +54760,7 @@ function records_args(l1, l2) { } function compat(_p, _q) { - while(true) { + while (true) { const q = _q; const p = _p; const match = p.pat_desc; @@ -55001,7 +55001,7 @@ function compat(_p, _q) { } function compats(_ps, _qs) { - while(true) { + while (true) { const qs = _qs; const ps = _ps; if (ps) { @@ -56178,7 +56178,7 @@ function get_field(pos, arg) { } function simple_match_args(p1, _p2) { - while(true) { + while (true) { const p2 = _p2; const args = p2.pat_desc; if (!/* tag */ (typeof args === "number" || typeof args === "string")) { @@ -56271,7 +56271,7 @@ function simple_match_args(p1, _p2) { } function normalize_pat(_q) { - while(true) { + while (true) { const q = _q; const args = q.pat_desc; if (/* tag */ typeof args === "number" || typeof args === "string") { @@ -56347,7 +56347,7 @@ function discr_pat(q, pss) { if (/* tag */ typeof tmp === "number" || typeof tmp === "string" || tmp.TAG === /* Tpat_record */ 6) { let _acc = q$1; let _pss = pss; - while(true) { + while (true) { const pss$1 = _pss; const acc = _acc; if (!pss$1) { @@ -56582,7 +56582,7 @@ function do_set_args(erase_mutable, q, r) { function filter_one(q, pss) { const filter_rec = function (_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -56640,7 +56640,7 @@ function filter_one(q, pss) { function filter_extra(pss) { const filter_rec = function (_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -56735,7 +56735,7 @@ function filter_all(pat0, pss) { }; }; const filter_rec = function (_env, _param) { - while(true) { + while (true) { const param = _param; const env = _env; if (!param) { @@ -56814,7 +56814,7 @@ function filter_all(pat0, pss) { } let _env = filter_rec(tmp, pss); let _param = pss; - while(true) { + while (true) { const param = _param; const env = _env; if (!param) { @@ -56895,7 +56895,7 @@ function set_last(a, param) { } function mark_partial(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -57034,7 +57034,7 @@ function generalized_constructor(x) { function clean_env(env) { const loop = function (_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -57278,7 +57278,7 @@ function pat_of_constrs(ex_pat, param) { } function get_variant_constructors(env, _ty) { - while(true) { + while (true) { const ty = _ty; const match = repr(ty).desc; if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -57302,7 +57302,7 @@ function get_variant_constructors(env, _ty) { } function map_filter(f, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -57346,7 +57346,7 @@ function build_other_constant(proj, make, first, next, p, env) { return Curry._1(proj, param[0].pat_desc); }), env); let _i = first; - while(true) { + while (true) { const i = _i; if (!Stdlib__List.mem(i, all)) { return make_pat(Curry._1(make, i), p.pat_type, p.pat_env); @@ -57446,7 +57446,7 @@ function build_other(ext, env) { } } }; - while(true) { + while (true) { const param = _param; if (!param) { return omega; @@ -57455,7 +57455,7 @@ function build_other(ext, env) { try { let _i = match[0]; let imax = match[1]; - while(true) { + while (true) { const i = _i; if (i > imax) { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -57768,7 +57768,7 @@ function build_other(ext, env) { }); }), env); let _l = 0; - while(true) { + while (true) { const l = _l; if (!Stdlib__List.mem(l, all_lengths)) { return make_pat({ @@ -57816,7 +57816,7 @@ function build_other_gadt(ext, env) { } function has_instance(_p) { - while(true) { + while (true) { const p = _p; const p$1 = p.pat_desc; if (/* tag */ typeof p$1 === "number" || typeof p$1 === "string") { @@ -57859,7 +57859,7 @@ function has_instance(_p) { } function has_instances(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return true; @@ -57873,7 +57873,7 @@ function has_instances(_param) { } function satisfiable(_pss, _qs) { - while(true) { + while (true) { const qs = _qs; const pss = _pss; if (!pss) { @@ -58027,7 +58027,7 @@ function exhaust(ext, pss, n) { }; if (full_match(true, false, constrs) && !should_extend(ext, constrs)) { let _param = constrs; - while(true) { + while (true) { const param = _param; if (!param) { return /* Rnone */ 0; @@ -58232,7 +58232,7 @@ function exhaust_gadt$1(ext, pss, n) { } function pressure_variants(_tdefs, _pss) { - while(true) { + while (true) { const pss = _pss; const tdefs = _tdefs; if (!pss) { @@ -58294,7 +58294,7 @@ function make_row(ps) { } function unalias$1(_p) { - while(true) { + while (true) { const p = _p; const match = p.pat_desc; if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -58332,7 +58332,7 @@ function is_var_column(rs) { } function or_args(_p) { - while(true) { + while (true) { const p = _p; const match = p.pat_desc; if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -58438,7 +58438,7 @@ function discr_pat$1(q, rs) { function filter_one$1(q, rs) { const filter_rec = function (_rs) { - while(true) { + while (true) { const rs = _rs; if (!rs) { return /* [] */ 0; @@ -58582,7 +58582,7 @@ function extract_columns(pss, qs) { } function every_satisfiables(_pss, _qs) { - while(true) { + while (true) { const qs = _qs; const pss = _pss; const match = qs.active; @@ -58785,7 +58785,7 @@ function every_both(pss, qs, q1, q2) { } function le_pat(_p, _q) { - while(true) { + while (true) { const q = _q; const p = _p; const match = p.pat_desc; @@ -58955,7 +58955,7 @@ function le_pat(_p, _q) { } function le_pats(_ps, _qs) { - while(true) { + while (true) { const qs = _qs; const ps = _ps; if (!ps) { @@ -58975,7 +58975,7 @@ function le_pats(_ps, _qs) { function get_mins(le, ps) { const select_rec = function (_r, _param) { - while(true) { + while (true) { const param = _param; const r = _r; if (!param) { @@ -59014,7 +59014,7 @@ function pressure_variants$1(tdefs, patl) { } function initial_matrix(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -59080,7 +59080,7 @@ function do_filter_var(param) { function do_filter_one(q, pss) { const filter_rec = function (_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -59151,7 +59151,7 @@ function do_filter_one(q, pss) { } function do_match(_pss, _qs) { - while(true) { + while (true) { const qs = _qs; const pss = _pss; if (qs) { @@ -59213,7 +59213,7 @@ function check_partial_all(v, casel) { } function get_first(f, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -59270,7 +59270,7 @@ function conv(typed) { const constrs = Stdlib__Hashtbl.create(undefined, 0); const labels = Stdlib__Hashtbl.create(undefined, 0); const loop = function (_pat) { - while(true) { + while (true) { const pat = _pat; const lst = pat.pat_desc; if (/* tag */ typeof lst === "number" || typeof lst === "string") { @@ -59511,7 +59511,7 @@ function extendable_path(path) { } function collect_paths_from_pat(_r, _p) { - while(true) { + while (true) { const p = _p; const r = _r; const p$1 = p.pat_desc; @@ -60632,7 +60632,7 @@ function transl_type(env, policy, styp) { const match$2 = lookup_type$1(lid$1.txt, env); const decl$1 = match$2[1]; const check = function (_decl) { - while(true) { + while (true) { const decl = _decl; const ty = decl.type_manifest; if (ty !== undefined) { @@ -62664,7 +62664,7 @@ function snd3(param) { function iter_expression(f, e) { const expr = function (_e) { - while(true) { + while (true) { const e = _e; Curry._1(f, e); const pel = e.pexp_desc; @@ -62754,7 +62754,7 @@ function iter_expression(f, e) { expr(x.pvb_expr); }; const module_expr = function (_me) { - while(true) { + while (true) { const me = _me; const str = me.pmod_desc; switch (str.TAG) { @@ -62803,7 +62803,7 @@ function iter_expression(f, e) { } }; const class_expr = function (_ce) { - while(true) { + while (true) { const ce = _ce; const match = ce.pcl_desc; switch (match.TAG) { @@ -63468,7 +63468,7 @@ function enter_orpat_variables(loc, env, p1_vs, p2_vs) { const p1_vs$1 = sort_pattern_variables(p1_vs); const p2_vs$1 = sort_pattern_variables(p2_vs); const unify_vars = function (_p1_vs, _p2_vs) { - while(true) { + while (true) { const p2_vs = _p2_vs; const p1_vs = _p1_vs; if (p1_vs) { @@ -63551,7 +63551,7 @@ function enter_orpat_variables(loc, env, p1_vs, p2_vs) { } function build_as_type(env, _p) { - while(true) { + while (true) { const p = _p; const pl = p.pat_desc; if (/* tag */ typeof pl === "number" || typeof pl === "string") { @@ -63919,7 +63919,7 @@ function build_or_pat(env, loc, lid) { } function expand_path(env, _p) { - while(true) { + while (true) { const p = _p; let decl; try { @@ -64063,7 +64063,7 @@ function lookup_from_type(env, tpath, lid) { } function unique(eq, _acc, _param) { - while(true) { + while (true) { const param = _param; const acc = _acc; if (!param) { @@ -64426,7 +64426,7 @@ function disambiguate_lid_a_list(loc, closed, env, opath, lid_a_list) { } function find_record_qual(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -64641,7 +64641,7 @@ function lookup_from_type$1(env, tpath, lid) { } function unique$1(eq, _acc, _param) { - while(true) { + while (true) { const param = _param; const acc = _acc; if (!param) { @@ -65907,7 +65907,7 @@ function force_delayed_checks(param) { } function final_subexpression(_sexp) { - while(true) { + while (true) { const sexp = _sexp; const match = sexp.pexp_desc; switch (match.TAG) { @@ -65935,7 +65935,7 @@ function final_subexpression(_sexp) { } function is_nonexpansive(_exp) { - while(true) { + while (true) { const exp = _exp; const el = exp.exp_desc; switch (el.TAG) { @@ -66051,7 +66051,7 @@ function is_nonexpansive(_exp) { } function is_nonexpansive_mod(_mexp) { - while(true) { + while (true) { const mexp = _mexp; const str = mexp.mod_desc; switch (str.TAG) { @@ -66115,7 +66115,7 @@ function is_nonexpansive_opt(e) { } function approx_type(env, _sty) { - while(true) { + while (true) { const sty = _sty; const args = sty.ptyp_desc; if (/* tag */ typeof args === "number" || typeof args === "string") { @@ -66173,7 +66173,7 @@ function approx_type(env, _sty) { } function type_approx(env, _sexp) { - while(true) { + while (true) { const sexp = _sexp; const l = sexp.pexp_desc; switch (l.TAG) { @@ -66304,7 +66304,7 @@ function list_labels(env, ty) { let _visited = /* [] */ 0; let _ls = /* [] */ 0; let _ty_fun = param; - while(true) { + while (true) { const ty_fun = _ty_fun; const ls = _ls; const visited = _visited; @@ -67106,7 +67106,7 @@ function type_expect_(in_function, env, sexp, ty_expected) { wrap_trace_gadt_instances(env, (function (param) { let _seen = /* [] */ 0; let _ty_fun = param; - while(true) { + while (true) { const ty_fun = _ty_fun; const seen = _seen; const ty = expand_head(env, ty_fun); @@ -67173,7 +67173,7 @@ function type_expect_(in_function, env, sexp, ty_expected) { generalize_expansive$1(env, arg.exp_type); } const split_cases = function (_vc, _ec, _param) { - while(true) { + while (true) { const param = _param; const ec = _ec; const vc = _vc; @@ -67644,7 +67644,7 @@ function type_expect_(in_function, env, sexp, ty_expected) { }), lid_sexp_list); unify_exp_types(loc, env, ty_record, instance(undefined, env, ty_expected)); const check_duplicates = function (_param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -67728,7 +67728,7 @@ function type_expect_(in_function, env, sexp, ty_expected) { }), lbl_exp_list); const label_names = extract_label_names(sexp, env, ty_expected); const missing_labels = function (_n, _param) { - while(true) { + while (true) { const param = _param; const n = _n; if (!param) { @@ -69352,7 +69352,7 @@ function type_argument(env, sarg, ty_expected$p, ty_expected) { } }; const is_inferred = function (_sexp) { - while(true) { + while (true) { const sexp = _sexp; const match = sexp.pexp_desc; switch (match.TAG) { @@ -69400,7 +69400,7 @@ function type_argument(env, sarg, ty_expected$p, ty_expected) { generalize_structure$1(current_level.contents, texp.exp_type); } const make_args = function (_args, _ty_fun) { - while(true) { + while (true) { const ty_fun = _ty_fun; const args = _args; const match = expand_head(env, ty_fun).desc; @@ -69664,7 +69664,7 @@ function type_application(env, funct, sargs) { contents: false }; const type_args = function (_args, _omitted, _ty_fun, _ty_fun0, _ty_old, _sargs, _more_sargs) { - while(true) { + while (true) { const more_sargs = _more_sargs; const sargs = _sargs; const ty_old = _ty_old; @@ -69891,7 +69891,7 @@ function type_application(env, funct, sargs) { let _args$1 = args; let _ty_fun$1 = ty_fun0; let _param = Stdlib.$at(sargs, more_sargs); - while(true) { + while (true) { const param = _param; const ty_fun$2 = _ty_fun$1; const args$1 = _args$1; @@ -70303,7 +70303,7 @@ function type_cases(in_function, env, ty_arg, ty_res, partial_flag, loc, caselis } let _pref = /* [] */ 0; let _param = cases; - while(true) { + while (true) { const param$1 = _param; const pref = _pref; if (!param$1) { @@ -72814,7 +72814,7 @@ function is_fixed_type(sd) { const sty = sd.ptype_manifest; if (sty !== undefined && Caml_obj.caml_equal(sd.ptype_kind, /* Ptype_abstract */ 0) && sd.ptype_private === /* Private */ 0) { let _sty = sty; - while(true) { + while (true) { const sty$1 = _sty; const match = sty$1.ptyp_desc; if (/* tag */ typeof match === "number" || typeof match === "string") { @@ -73041,7 +73041,7 @@ function add$12(x, t) { } function mem$6(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -73156,7 +73156,7 @@ function generalize_decl(decl) { } function check_constraints_rec(env, loc, visited, _ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (Curry._2(mem$3, ty$1, visited.contents)) { @@ -73361,7 +73361,7 @@ function add$13(x, data, m) { } function find$6(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -73602,7 +73602,7 @@ function check_recursion(env, loc, path, decl, to_check) { contents: /* [] */ 0 }; const check_regular = function (cpath, args, prev_exp, _ty) { - while(true) { + while (true) { const ty = _ty; const ty$1 = repr(ty); if (Stdlib__List.memq(ty$1, visited.contents)) { @@ -73709,7 +73709,7 @@ function get_variance(ty, visited) { function compute_variance(env, visited, vari, ty) { const compute_variance_rec = function (_vari, _ty) { - while(true) { + while (true) { const ty = _ty; const vari = _vari; const ty$1 = repr(ty); @@ -74217,7 +74217,7 @@ function is_sharp(id) { } function compute_variance_fixpoint(env, decls, required, _variances) { - while(true) { + while (true) { const variances = _variances; const new_decls = Stdlib__List.map2((function (param, variance) { const decl = param[1]; @@ -74976,7 +74976,7 @@ function transl_type_decl(env, rec_flag, sdecl_list) { }; const pl = find_pl(param.ptype_kind); const get_loc = function (name, _param) { - while(true) { + while (true) { const param = _param; if (param) { const pld = param.hd; @@ -77322,7 +77322,7 @@ const unbound_class = { }; function scrape_class_type(_cty) { - while(true) { + while (true) { const cty = _cty; switch (cty.TAG) { case /* Cty_constr */ 0 : @@ -77337,7 +77337,7 @@ function scrape_class_type(_cty) { } function generalize_class_type(gen, _param) { - while(true) { + while (true) { const param = _param; switch (param.TAG) { case /* Cty_constr */ 0 : @@ -77378,7 +77378,7 @@ function virtual_methods(sign) { } function constructor_type(constr, _cty) { - while(true) { + while (true) { const cty = _cty; switch (cty.TAG) { case /* Cty_constr */ 0 : @@ -77404,7 +77404,7 @@ function constructor_type(constr, _cty) { } function class_body(_cty) { - while(true) { + while (true) { const cty = _cty; switch (cty.TAG) { case /* Cty_constr */ 0 : @@ -77467,7 +77467,7 @@ function abbreviate_class_type(path, params, cty) { function closed_class$1(cty) { if (Stdlib__List.for_all(closed_schema, cty.cty_params)) { let _sign = cty.cty_type; - while(true) { + while (true) { const sign = _sign; switch (sign.TAG) { case /* Cty_constr */ 0 : @@ -77500,7 +77500,7 @@ function closed_class$1(cty) { } function limited_generalize$1(rv, _sign) { - while(true) { + while (true) { const sign = _sign; switch (sign.TAG) { case /* Cty_constr */ 0 : @@ -79084,7 +79084,7 @@ function class_structure(cl_num, $$final, val_env, met_env, loc, param) { } function class_expr(cl_num, val_env, met_env, _scl) { - while(true) { + while (true) { const scl = _scl; const cl_str = scl.pcl_desc; switch (cl_str.TAG) { @@ -79360,7 +79360,7 @@ function class_expr(cl_num, val_env, met_env, _scl) { generalize_class_type(generalize_structure$2, cl$2.cl_type); } const nonopt_labels = function (_ls, _ty_fun) { - while(true) { + while (true) { const ty_fun = _ty_fun; const ls = _ls; switch (ty_fun.TAG) { @@ -79394,7 +79394,7 @@ function class_expr(cl_num, val_env, met_env, _scl) { }), labels) && (prerr_warning(cl$2.cl_loc, /* Labels_omitted */ 3), true); } const type_args = function (_args, _omitted, _ty_fun, _ty_fun0, _sargs, _more_sargs) { - while(true) { + while (true) { const more_sargs = _more_sargs; const sargs = _sargs; const ty_fun0 = _ty_fun0; @@ -79763,7 +79763,7 @@ const var_option = type_option(newty2(100000000, { })); function approx_declaration(_cl) { - while(true) { + while (true) { const cl = _cl; const match = cl.pcl_desc; switch (match.TAG) { @@ -80578,7 +80578,7 @@ function unify_parents_struct(env, ty, st) { const match = param.cf_desc; if (match.TAG === /* Tcf_inherit */ 0) { let _cl = match._1; - while(true) { + while (true) { const cl = _cl; const st = cl.cl_desc; switch (st.TAG) { @@ -82253,7 +82253,7 @@ const type_module_type_of_fwd = { }; function add_rec_types(_env, _param) { - while(true) { + while (true) { const param = _param; const env = _env; if (!param) { @@ -82370,7 +82370,7 @@ function merge_constraint(initial_env, loc, sg, constr) { contents: undefined }; const merge = function (env, _sg, namelist, _row_id) { - while(true) { + while (true) { const row_id = _row_id; const sg = _sg; if (sg) { @@ -82942,7 +82942,7 @@ function map_ext(fn, exts, rem) { } function approx_modtype(env, _smty) { - while(true) { + while (true) { const smty = _smty; const lid = smty.pmty_desc; switch (lid.TAG) { @@ -83002,7 +83002,7 @@ function approx_module_declaration(env, pmd) { } function approx_sig(_env, _ssg) { - while(true) { + while (true) { const ssg = _ssg; const env = _env; if (!ssg) { @@ -83269,7 +83269,7 @@ function add$14(x, t) { } function mem$7(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -83317,7 +83317,7 @@ function check_sig_item(type_names, module_names, modtype_names, loc, param) { } function remove_duplicates(val_ids, ext_ids, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -83397,7 +83397,7 @@ function remove_duplicates(val_ids, ext_ids, _param) { } function get_values(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -83415,7 +83415,7 @@ function get_values(_param) { } function get_extension_constructors(_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -84190,7 +84190,7 @@ function simplify_signature(sg) { const Not_a_path = /* @__PURE__ */ Caml_exceptions.create("Ocaml_typedtree_test.Typemod.Not_a_path"); function path_of_module(_mexp) { - while(true) { + while (true) { const mexp = _mexp; const match = mexp.mod_desc; switch (match.TAG) { @@ -84232,7 +84232,7 @@ function path_of_module$1(mexp) { } function closed_modtype(_p) { - while(true) { + while (true) { const p = _p; switch (p.TAG) { case /* Mty_signature */ 1 : @@ -84312,7 +84312,7 @@ function check_recmodule_inclusion(env, bindings) { let _n = Stdlib__List.length(bindings); let _env = env; let _s = identity; - while(true) { + while (true) { const s = _s; const env$1 = _env; const n = _n; @@ -84442,7 +84442,7 @@ function package_constraints(env, loc, mty, constrs) { const md = item._1; const id$1 = item._0; const aux = function (_param) { - while(true) { + while (true) { const param = _param; if (!param) { return /* [] */ 0; @@ -85579,7 +85579,7 @@ function normalize_signature(env) { return normalize_type(env, param._1.val_type); case /* Sig_module */ 3 : let _p = param._1.md_type; - while(true) { + while (true) { const p = _p; switch (p.TAG) { case /* Mty_signature */ 1 : diff --git a/jscomp/test/dist/jscomp/test/offset.js b/jscomp/test/dist/jscomp/test/offset.js index e13b50df0..340a3f8f1 100644 --- a/jscomp/test/dist/jscomp/test/offset.js +++ b/jscomp/test/dist/jscomp/test/offset.js @@ -170,7 +170,7 @@ function join(l, v, r) { } function min_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -187,7 +187,7 @@ function min_elt(_param) { } function min_elt_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -202,7 +202,7 @@ function min_elt_opt(_param) { } function max_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -219,7 +219,7 @@ function max_elt(_param) { } function max_elt_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -302,7 +302,7 @@ function is_empty(param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -437,7 +437,7 @@ function split_bis(x, param) { } function disjoint(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -482,7 +482,7 @@ function diff(s1, s2) { } function cons_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -502,7 +502,7 @@ function cons_enum(_s, _e) { function compare(s1, s2) { let _e1 = cons_enum(s1, /* End */ 0); let _e2 = cons_enum(s2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -530,7 +530,7 @@ function equal(s1, s2) { } function subset(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -581,7 +581,7 @@ function subset(_s1, _s2) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -594,7 +594,7 @@ function iter(f, _param) { } function fold(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -607,7 +607,7 @@ function fold(f, _s, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -624,7 +624,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -698,7 +698,7 @@ function cardinal(param) { } function elements_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -718,7 +718,7 @@ function elements(s) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -736,7 +736,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -747,7 +747,7 @@ function find_first(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -769,7 +769,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -778,7 +778,7 @@ function find_first_opt(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -800,7 +800,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -811,7 +811,7 @@ function find_last(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -833,7 +833,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -842,7 +842,7 @@ function find_last_opt(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -864,7 +864,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1097,7 +1097,7 @@ function to_seq(c) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1137,7 +1137,7 @@ function to_rev_seq(c) { function to_seq_from(low, s) { const aux = function (low, _s, _c) { - while(true) { + while (true) { const c = _c; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { diff --git a/jscomp/test/dist/jscomp/test/parser_api.js b/jscomp/test/dist/jscomp/test/parser_api.js index d541668c4..69af58ed5 100644 --- a/jscomp/test/dist/jscomp/test/parser_api.js +++ b/jscomp/test/dist/jscomp/test/parser_api.js @@ -820,7 +820,7 @@ function map_left_right(f, param) { } function for_all2(pred, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -898,7 +898,7 @@ function split_last(param) { } function samelist(pred, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -937,7 +937,7 @@ function may_map(f, x) { function find_in_path(path, name) { if (Curry._1(Stdlib__Filename.is_implicit, name)) { let _param = path; - while(true) { + while (true) { const param = _param; if (param) { const fullname = Stdlib__Filename.concat(param.hd, name); @@ -962,7 +962,7 @@ function find_in_path(path, name) { function find_in_path_rel(path, name) { const simplify = function (_s) { - while(true) { + while (true) { const s = _s; const base = Curry._1(Stdlib__Filename.basename, s); const dir = Curry._1(Stdlib__Filename.dirname, s); @@ -977,7 +977,7 @@ function find_in_path_rel(path, name) { }; }; let _param = path; - while(true) { + while (true) { const param = _param; if (param) { const fullname = simplify(Stdlib__Filename.concat(param.hd, name)); @@ -996,7 +996,7 @@ function find_in_path_rel(path, name) { function find_in_path_uncap(path, name) { const uname = Caml_bytes.bytes_to_string(Stdlib__Bytes.uncapitalize_ascii(Caml_bytes.bytes_of_string(name))); let _param = path; - while(true) { + while (true) { const param = _param; if (param) { const dir = param.hd; @@ -1049,7 +1049,7 @@ function create_hashtable(size, init) { function copy_file(ic, oc) { const buff = Caml_bytes.caml_create_bytes(4096); let _param; - while(true) { + while (true) { const n = Stdlib.input(ic, buff, 0, 4096); if (n === 0) { return; @@ -1063,7 +1063,7 @@ function copy_file(ic, oc) { function copy_file_chunk(ic, oc, len) { const buff = Caml_bytes.caml_create_bytes(4096); let _n = len; - while(true) { + while (true) { const n = _n; if (n <= 0) { return; @@ -1084,7 +1084,7 @@ function string_of_file(ic) { const b = Stdlib__Buffer.create(65536); const buff = Caml_bytes.caml_create_bytes(4096); let _param; - while(true) { + while (true) { const n = Stdlib.input(ic, buff, 0, 4096); if (n === 0) { return Stdlib__Buffer.contents(b); @@ -1164,7 +1164,7 @@ function chop_extensions(file) { function search_substring(pat, str, start) { let _i = start; let _j = 0; - while(true) { + while (true) { const j = _j; const i = _i; if (j >= pat.length) { @@ -1187,7 +1187,7 @@ function search_substring(pat, str, start) { function replace_substring(before, after, str) { const search = function (_acc, _curr) { - while(true) { + while (true) { const curr = _curr; const acc = _acc; let next; @@ -1219,7 +1219,7 @@ function replace_substring(before, after, str) { function rev_split_words(s) { const split1 = function (res, _i) { - while(true) { + while (true) { const i = _i; if (i >= s.length) { return res; @@ -1240,7 +1240,7 @@ function rev_split_words(s) { }; }; const split2 = function (res, i, _j) { - while(true) { + while (true) { const j = _j; if (j >= s.length) { return { @@ -1397,7 +1397,7 @@ function split(s, c) { const len = s.length; let _pos = 0; let _to_rev = /* [] */ 0; - while(true) { + while (true) { const to_rev = _to_rev; const pos = _pos; if (pos === len) { @@ -2076,7 +2076,7 @@ function parse_opt(error, active, flags, s) { Caml_array.set(error, i, true); }; const get_num = function (_n, _i) { - while(true) { + while (true) { const i = _i; const n = _n; if (i >= s.length) { @@ -2123,7 +2123,7 @@ function parse_opt(error, active, flags, s) { ]; }; const loop = function (_i) { - while(true) { + while (true) { const i = _i; if (i >= s.length) { return; @@ -3216,7 +3216,7 @@ function print_updating_num_loc_lines(ppf, f, arg) { const out_functions = Stdlib__Format.pp_get_formatter_out_functions(ppf, undefined); const out_string = function (str, start, len) { const count = function (_i, _c) { - while(true) { + while (true) { const c = _c; const i = _i; if (i === (start + len | 0)) { @@ -3420,7 +3420,7 @@ function highlight_dumb(ppf, lb, loc) { } function highlight_locations(ppf, locs) { - while(true) { + while (true) { const num_lines = status.contents; if (/* tag */ typeof num_lines === "number" || typeof num_lines === "string") { if (num_lines === /* Uninitialised */ 0) { @@ -3481,7 +3481,7 @@ function highlight_locations(ppf, locs) { function absolute_path(s) { const s$1 = Curry._1(Stdlib__Filename.is_relative, s) ? Stdlib__Filename.concat(Caml_sys.caml_sys_getcwd(undefined), s) : s; const aux = function (_s) { - while(true) { + while (true) { const s = _s; const base = Curry._1(Stdlib__Filename.basename, s); const dir = Curry._1(Stdlib__Filename.dirname, s); @@ -3882,7 +3882,7 @@ function register_error_of_exn(f) { function error_of_exn$1(exn) { let _param = error_of_exn.contents; - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -4037,7 +4037,7 @@ register_error_of_exn(function (msg) { function report_exception(ppf, exn) { let _n = 5; let _exn = exn; - while(true) { + while (true) { const exn$1 = _exn; const n = _n; try { @@ -4164,7 +4164,7 @@ const Asttypes = {}; function flatten(lid) { let _accu = /* [] */ 0; let _s = lid; - while(true) { + while (true) { const s = _s; const accu = _accu; switch (s.TAG) { @@ -4432,7 +4432,7 @@ function add_text_attrs(dsl, attrs) { function get_docstring(info, dsl) { let _param = dsl; - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -4456,7 +4456,7 @@ function get_docstring(info, dsl) { function get_docstrings(dsl) { let _acc = /* [] */ 0; let _param = dsl; - while(true) { + while (true) { const param = _param; const acc = _acc; if (!param) { @@ -13905,7 +13905,7 @@ Stdlib__Hashtbl.replace(directive_built_in_values, "WORD_SIZE", { function semantic_version_parse(str, start, last_index) { const aux = function (_start, _acc, last_index) { - while(true) { + while (true) { const acc = _acc; const start = _start; if (start > last_index) { @@ -14320,7 +14320,7 @@ function directive_parse(token_with_comments, lexbuf) { return v; } let _param; - while(true) { + while (true) { const t = Curry._1(token_with_comments, lexbuf); if (/* tag */ typeof t === "number" || typeof t === "string") { switch (t) { @@ -15229,7 +15229,7 @@ function remove_underscores(s) { const b = Caml_bytes.caml_create_bytes(l); let _src = 0; let _dst = 0; - while(true) { + while (true) { const dst = _dst; const src = _src; if (src >= l) { @@ -15553,7 +15553,7 @@ const __ocaml_lex_tables = { function token(lexbuf) { lexbuf.lex_mem = Caml_array.make(8, -1); let ___ocaml_lex_state = 0; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -16042,7 +16042,7 @@ function token(lexbuf) { function string(lexbuf) { lexbuf.lex_mem = Caml_array.make(2, -1); let ___ocaml_lex_state = 164; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.new_engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -16096,7 +16096,7 @@ function string(lexbuf) { } function __ocaml_lex_comment_rec(lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -16278,7 +16278,7 @@ function __ocaml_lex_comment_rec(lexbuf, ___ocaml_lex_state) { } function __ocaml_lex_quoted_string_rec(delim, lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -16321,7 +16321,7 @@ function comment(lexbuf) { function skip_sharp_bang(lexbuf) { let ___ocaml_lex_state = 192; - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { @@ -16401,7 +16401,7 @@ function interpret_directive(lexbuf, cont, look_ahead) { return Curry._1(cont, lexbuf); } else { let _param; - while(true) { + while (true) { const token = token_with_comments(lexbuf); if (Caml_obj.caml_equal(token, /* EOF */ 25)) { throw new Caml_js_exceptions.MelangeError($$Error$2, { @@ -16469,7 +16469,7 @@ function interpret_directive(lexbuf, cont, look_ahead) { switch (if_then_else$1) { case /* Dir_if_true */ 0 : let _else_seen = Caml_obj.caml_equal(match, /* ELSE */ 23); - while(true) { + while (true) { const else_seen = _else_seen; const token$2 = token_with_comments(lexbuf); if (Caml_obj.caml_equal(token$2, /* EOF */ 25)) { @@ -16565,7 +16565,7 @@ function token$1(lexbuf) { set_pre_docstrings(pre_pos, b); }; const loop = function (_lines, _docs, lexbuf) { - while(true) { + while (true) { const docs = _docs; const lines = _lines; const doc = token_with_comments(lexbuf); @@ -16739,7 +16739,7 @@ function init$2(param) { } function filter_directive(pos, acc, lexbuf) { - while(true) { + while (true) { const match = token_with_comments(lexbuf); if (/* tag */ typeof match === "number" || typeof match === "string") { switch (match) { @@ -16811,7 +16811,7 @@ const Lexer = { }; function skip_phrase(lexbuf) { - while(true) { + while (true) { try { const match = token$1(lexbuf); if (!/* tag */ (typeof match === "number" || typeof match === "string")) { diff --git a/jscomp/test/dist/jscomp/test/qcc.js b/jscomp/test/dist/jscomp/test/qcc.js index 0c56dcdda..cc04b2fa3 100644 --- a/jscomp/test/dist/jscomp/test/qcc.js +++ b/jscomp/test/dist/jscomp/test/qcc.js @@ -77,7 +77,7 @@ const syms = { }; function find(s, _n) { - while(true) { + while (true) { const n = _n; if (n >= syms.contents) { syms.contents = syms.contents + 1 | 0; @@ -144,7 +144,7 @@ function isid(param) { } function skip(_param) { - while(true) { + while (true) { const ch = Curry._1(getch, undefined); if (ch >= 14) { if (ch !== 32) { @@ -152,7 +152,7 @@ function skip(_param) { return ch; } else { let _param$1 = (Curry._1(getch, undefined), undefined); - while(true) { + while (true) { const match = Curry._1(getch, undefined); if (match !== 42) { _param$1 = undefined; @@ -206,7 +206,7 @@ function next(param) { if (c === 34) { let b = gpos.contents; let _e = gpos.contents; - while(true) { + while (true) { const e = _e; const match = peekch(undefined); if (match !== 34) { @@ -226,7 +226,7 @@ function next(param) { if (c >= 48) { if (c < 58) { let _n = c - 48 | 0; - while(true) { + while (true) { const n = _n; const match$1 = peekch(undefined); if (match$1 > 57 || match$1 < 48) { @@ -257,7 +257,7 @@ function next(param) { if (isid(c)) { let _n$1 = 0; let _ch = c; - while(true) { + while (true) { const ch$1 = _ch; const n$1 = _n$1; Caml_bytes.set(s, n$1, ch$1); @@ -303,7 +303,7 @@ function next(param) { } } }; - while(true) { + while (true) { const param$1 = _param; if (!param$1) { return { @@ -880,7 +880,7 @@ function binary(stk, lvl) { } }; const foldtst = function (_loc) { - while(true) { + while (true) { const loc = _loc; const o = Curry._1(next$1, undefined); if (o.TAG === /* Op */ 0) { @@ -900,7 +900,7 @@ function binary(stk, lvl) { binary(stk, lvl - 1 | 0); if (lvl < 8) { let _param; - while(true) { + while (true) { const o = Curry._1(next$1, undefined); if (o.TAG !== /* Op */ 0) { return Curry._1(unnext, o); @@ -1077,7 +1077,7 @@ function postfix(stk) { switch (op$1) { case "(" : const emitargs = function (_l, _rl) { - while(true) { + while (true) { const rl = _rl; const l = _l; if (nextis({ @@ -1188,7 +1188,7 @@ function postfix(stk) { function expr(stk) { binary(stk, 10); let _param; - while(true) { + while (true) { const t = Curry._1(next$1, undefined); if (t.TAG !== /* Op */ 0) { return Curry._1(unnext, t); @@ -1212,17 +1212,17 @@ function expr(stk) { } function decl(g, _n, _stk) { - while(true) { + while (true) { const stk = _stk; const n = _n; const t = Curry._1(next$1, undefined); if (Caml_obj.caml_equal(t, tokint)) { const top = stk ? stk.hd[1] : 0; const vars = function (_n, _stk) { - while(true) { + while (true) { const stk = _stk; const n = _n; - while(nextis({ + while (nextis({ TAG: /* Op */ 0, _0: "*" })) { @@ -1481,7 +1481,7 @@ function block(brk, stk) { const match = decl(false, 0, stk); const stk$p = match[1]; const n = match[0]; - while(!nextis({ + while (!nextis({ TAG: /* Op */ 0, _0: "}" })) { @@ -1498,7 +1498,7 @@ function block(brk, stk) { } function top(_param) { - while(true) { + while (true) { if (nextis({ TAG: /* Op */ 0, _0: "EOF!" @@ -1525,7 +1525,7 @@ function top(_param) { va: opos.contents }); const emitargs = function (_regs, _n, _stk) { - while(true) { + while (true) { const stk = _stk; const n = _n; const regs = _regs; @@ -1593,7 +1593,7 @@ function top(_param) { } } }, 1, /* [] */ 0); - while(Caml_obj.caml_notequal(Curry._1(next$1, undefined), { + while (Caml_obj.caml_notequal(Curry._1(next$1, undefined), { TAG: /* Op */ 0, _0: "{" })) { @@ -1762,7 +1762,7 @@ function elfgen(outf) { }; itr(function (param, param$1, l) { const genrel = function (_l) { - while(true) { + while (true) { const l = _l; if (l === 0) { return; @@ -1979,7 +1979,7 @@ function main(param) { return Stdlib.print_bytes(Stdlib__Bytes.sub(obuf, 0, opos.contents)); case "-lex" : let _param; - while(true) { + while (true) { const tok = Curry._1(next$1, undefined); if (tok.TAG === /* Op */ 0) { if (tok._0 === "EOF!") { diff --git a/jscomp/test/dist/jscomp/test/rbset.js b/jscomp/test/dist/jscomp/test/rbset.js index 5e7ac3c66..93cfafb61 100644 --- a/jscomp/test/dist/jscomp/test/rbset.js +++ b/jscomp/test/dist/jscomp/test/rbset.js @@ -32,7 +32,7 @@ function is_empty(param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; diff --git a/jscomp/test/dist/jscomp/test/re_or_res/reasonReactRouter.js b/jscomp/test/dist/jscomp/test/re_or_res/reasonReactRouter.js index b93f28b1b..3a57342f0 100644 --- a/jscomp/test/dist/jscomp/test/re_or_res/reasonReactRouter.js +++ b/jscomp/test/dist/jscomp/test/re_or_res/reasonReactRouter.js @@ -30,7 +30,7 @@ function path(param) { let a = raw$2.split("/", undefined); let _i = a.length - 1 | 0; let _res = /* [] */ 0; - while(true) { + while (true) { const res = _res; const i = _i; if (i < 0) { @@ -104,7 +104,7 @@ function urlNotEqual(a, b) { } else { let _aList = a.path; let _bList = b.path; - while(true) { + while (true) { const bList = _bList; const aList = _aList; if (!aList) { diff --git a/jscomp/test/dist/jscomp/test/rec_module_test.js b/jscomp/test/dist/jscomp/test/rec_module_test.js index 85121d3ef..a0ddcecc3 100644 --- a/jscomp/test/dist/jscomp/test/rec_module_test.js +++ b/jscomp/test/dist/jscomp/test/rec_module_test.js @@ -255,7 +255,7 @@ function join(l, v, r) { } function min_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -272,7 +272,7 @@ function min_elt(_param) { } function min_elt_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -287,7 +287,7 @@ function min_elt_opt(_param) { } function max_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -304,7 +304,7 @@ function max_elt(_param) { } function max_elt_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -387,7 +387,7 @@ function is_empty(param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -522,7 +522,7 @@ function split_bis(x, param) { } function disjoint(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -567,7 +567,7 @@ function diff(s1, s2) { } function cons_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -587,7 +587,7 @@ function cons_enum(_s, _e) { function compare$1(s1, s2) { let _e1 = cons_enum(s1, /* End */ 0); let _e2 = cons_enum(s2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -615,7 +615,7 @@ function equal(s1, s2) { } function subset(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -666,7 +666,7 @@ function subset(_s1, _s2) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -679,7 +679,7 @@ function iter(f, _param) { } function fold(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -692,7 +692,7 @@ function fold(f, _s, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -709,7 +709,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -783,7 +783,7 @@ function cardinal(param) { } function elements_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -803,7 +803,7 @@ function elements(s) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -821,7 +821,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -832,7 +832,7 @@ function find_first(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -854,7 +854,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -863,7 +863,7 @@ function find_first_opt(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -885,7 +885,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -896,7 +896,7 @@ function find_last(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -918,7 +918,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -927,7 +927,7 @@ function find_last_opt(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -949,7 +949,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1182,7 +1182,7 @@ function to_seq(c) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1222,7 +1222,7 @@ function to_rev_seq(c) { function to_seq_from(low, s) { const aux = function (low, _s, _c) { - while(true) { + while (true) { const c = _c; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { diff --git a/jscomp/test/dist/jscomp/test/rec_value_test.js b/jscomp/test/dist/jscomp/test/rec_value_test.js index d8eb7c206..2778ab13a 100644 --- a/jscomp/test/dist/jscomp/test/rec_value_test.js +++ b/jscomp/test/dist/jscomp/test/rec_value_test.js @@ -154,7 +154,7 @@ function even(n) { } function even2(_n) { - while(true) { + while (true) { const n = _n; if (n === 0) { return true; @@ -172,7 +172,7 @@ const lazy_v = { }; function sum(_acc, _n) { - while(true) { + while (true) { const n = _n; const acc = _acc; if (n <= 0) { diff --git a/jscomp/test/dist/jscomp/test/scanf_io.js b/jscomp/test/dist/jscomp/test/scanf_io.js index cc157c989..e6425939a 100644 --- a/jscomp/test/dist/jscomp/test/scanf_io.js +++ b/jscomp/test/dist/jscomp/test/scanf_io.js @@ -66,7 +66,7 @@ function get_lines(fname) { contents: /* [] */ 0 }; try { - while(!Stdlib__Scanf.Scanning.end_of_input(ib)) { + while (!Stdlib__Scanf.Scanning.end_of_input(ib)) { Curry._1(Stdlib__Scanf.bscanf(ib, { TAG: /* Format */ 0, _0: { @@ -184,7 +184,7 @@ function add_digest_ib(ob, ib) { Stdlib__Buffer.add_char(ob, /* '\n' */10); }; try { - while(true) { + while (true) { scan_line(ib, output_line_digest); }; return; diff --git a/jscomp/test/dist/jscomp/test/set_gen.js b/jscomp/test/dist/jscomp/test/set_gen.js index a05dca9ba..65666c444 100644 --- a/jscomp/test/dist/jscomp/test/set_gen.js +++ b/jscomp/test/dist/jscomp/test/set_gen.js @@ -9,7 +9,7 @@ const Stdlib = require("melange/stdlib.js"); const Stdlib__List = require("melange/list.js"); function cons_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -35,7 +35,7 @@ function height(param) { } function min_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -52,7 +52,7 @@ function min_elt(_param) { } function max_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -77,7 +77,7 @@ function is_empty(param) { } function cardinal_aux(_acc, _param) { - while(true) { + while (true) { const param = _param; const acc = _acc; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -94,7 +94,7 @@ function cardinal(s) { } function elements_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -114,7 +114,7 @@ function elements(s) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -127,7 +127,7 @@ function iter(f, _param) { } function fold(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -140,7 +140,7 @@ function fold(f, _s, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -157,7 +157,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -681,7 +681,7 @@ function invariant(cmp, t) { } function compare_aux(cmp, _e1, _e2) { - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { diff --git a/jscomp/test/dist/jscomp/test/sexp.js b/jscomp/test/dist/jscomp/test/sexp.js index a1238b9e5..ab87fb5ab 100644 --- a/jscomp/test/dist/jscomp/test/sexp.js +++ b/jscomp/test/dist/jscomp/test/sexp.js @@ -165,7 +165,7 @@ function $great$great$eq(e, f) { function map_opt(f, l) { let _acc = /* [] */ 0; let _l = l; - while(true) { + while (true) { const l$1 = _l; const acc = _acc; if (!l$1) { @@ -187,7 +187,7 @@ function map_opt(f, l) { function list_any(f, e) { if (e.NAME === "List") { let _l = e.VAL; - while(true) { + while (true) { const l = _l; if (!l) { return; @@ -207,7 +207,7 @@ function list_all(f, e) { if (e.NAME === "List") { let _acc = /* [] */ 0; let _l = e.VAL; - while(true) { + while (true) { const l = _l; const acc = _acc; if (!l) { @@ -357,7 +357,7 @@ function to_list_with(f, e) { function get_field(name, e) { if (e.NAME === "List") { let _l = e.VAL; - while(true) { + while (true) { const l = _l; if (!l) { return; @@ -409,7 +409,7 @@ function field(name, f, e) { } function _get_field_list(name, _l) { - while(true) { + while (true) { const l = _l; if (!l) { return; @@ -453,7 +453,7 @@ function field_list(name, f, e) { } function _get_variant(s, args, _l) { - while(true) { + while (true) { const l = _l; if (!l) { return; diff --git a/jscomp/test/dist/jscomp/test/sexpm.js b/jscomp/test/dist/jscomp/test/sexpm.js index a842896e5..3acd20af9 100644 --- a/jscomp/test/dist/jscomp/test/sexpm.js +++ b/jscomp/test/dist/jscomp/test/sexpm.js @@ -507,7 +507,7 @@ function _error_eof(t) { } function expr(k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return expr(k, param); @@ -598,7 +598,7 @@ function expr_starting_with(c, k, t) { } function expr_list(acc, k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return expr_list(acc, k, param); @@ -661,7 +661,7 @@ function _return_atom(last, k, t) { } function atom(k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return atom(k, param); @@ -727,7 +727,7 @@ function atom(k, t) { } function quoted(k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return quoted(k, param); @@ -879,7 +879,7 @@ function read1int(i, k, t) { } function skip_comment(k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return skip_comment(k, param); @@ -894,7 +894,7 @@ function skip_comment(k, t) { } function expr_or_end(k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return expr_or_end(k, param); @@ -985,7 +985,7 @@ function parse_chan_list(bufsize, ic) { return Stdlib.input(ic, param, param$1, param$2); })); let _acc = /* [] */ 0; - while(true) { + while (true) { const acc = _acc; const e = next(d); if (typeof e === "string") { @@ -1122,7 +1122,7 @@ function MakeDecode(funarg) { }); }; const expr = function (k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return expr(k, param); @@ -1211,7 +1211,7 @@ function MakeDecode(funarg) { return atom(k, t); }; const expr_list = function (acc, k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return expr_list(acc, k, param); @@ -1272,7 +1272,7 @@ function MakeDecode(funarg) { }); }; const atom = function (k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return atom(k, param); @@ -1337,7 +1337,7 @@ function MakeDecode(funarg) { }; }; const quoted = function (k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return quoted(k, param); @@ -1485,7 +1485,7 @@ function MakeDecode(funarg) { } }; const skip_comment = function (k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return skip_comment(k, param); @@ -1499,7 +1499,7 @@ function MakeDecode(funarg) { }; }; const expr_or_end = function (k, t) { - while(true) { + while (true) { if (t.i === t.len) { return _refill(t, (function (param) { return expr_or_end(k, param); diff --git a/jscomp/test/dist/jscomp/test/simple_lexer_test.js b/jscomp/test/dist/jscomp/test/simple_lexer_test.js index 17f557025..fb7ef2752 100644 --- a/jscomp/test/dist/jscomp/test/simple_lexer_test.js +++ b/jscomp/test/dist/jscomp/test/simple_lexer_test.js @@ -22,7 +22,7 @@ const __ocaml_lex_tables = { }; function __ocaml_lex_translate_rec(lexbuf, ___ocaml_lex_state) { - while(true) { + while (true) { const __ocaml_lex_state = ___ocaml_lex_state; const __ocaml_lex_state$1 = Stdlib__Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf); switch (__ocaml_lex_state$1) { diff --git a/jscomp/test/dist/jscomp/test/small_inline_test.js b/jscomp/test/dist/jscomp/test/small_inline_test.js index 6978a6bcc..a1c801fba 100644 --- a/jscomp/test/dist/jscomp/test/small_inline_test.js +++ b/jscomp/test/dist/jscomp/test/small_inline_test.js @@ -28,7 +28,7 @@ function hello5(y, f) { } function f(_x) { - while(true) { + while (true) { const x = _x; _x = x + 1 | 0; continue; @@ -36,7 +36,7 @@ function f(_x) { } function ff(_x, _y) { - while(true) { + while (true) { const y = _y; const x = _x; _y = x + 1 | 0; @@ -46,7 +46,7 @@ function ff(_x, _y) { } function fff(_x, _y) { - while(true) { + while (true) { const y = _y; const x = _x; _y = x; diff --git a/jscomp/test/dist/jscomp/test/stack_test.js b/jscomp/test/dist/jscomp/test/stack_test.js index 21478f539..3df847498 100644 --- a/jscomp/test/dist/jscomp/test/stack_test.js +++ b/jscomp/test/dist/jscomp/test/stack_test.js @@ -8,7 +8,7 @@ const Stdlib__Stack = require("melange/stack.js"); function to_list(v) { let acc = /* [] */ 0; - while(!Caml_obj.caml_equal(v.c, /* [] */ 0)) { + while (!Caml_obj.caml_equal(v.c, /* [] */ 0)) { acc = { hd: Stdlib__Stack.pop(v), tl: acc diff --git a/jscomp/test/dist/jscomp/test/stdlib_bytes_utf8_test.js b/jscomp/test/dist/jscomp/test/stdlib_bytes_utf8_test.js index 7b2bf26b8..28a68febf 100644 --- a/jscomp/test/dist/jscomp/test/stdlib_bytes_utf8_test.js +++ b/jscomp/test/dist/jscomp/test/stdlib_bytes_utf8_test.js @@ -15,7 +15,7 @@ const Stdlib__Uchar = require("melange/uchar.js"); function fold_uchars(f, acc) { let _acc = acc; let _u = Stdlib__Uchar.min; - while(true) { + while (true) { const u = _u; const acc$1 = _acc; const acc$2 = Curry._2(f, acc$1, u); diff --git a/jscomp/test/dist/jscomp/test/string_set.js b/jscomp/test/dist/jscomp/test/string_set.js index 6fd00133a..edae3b920 100644 --- a/jscomp/test/dist/jscomp/test/string_set.js +++ b/jscomp/test/dist/jscomp/test/string_set.js @@ -131,7 +131,7 @@ function diff(s1, s2) { } function mem(x, _tree) { - while(true) { + while (true) { const tree = _tree; if (/* tag */ typeof tree === "number" || typeof tree === "string") { return false; @@ -171,7 +171,7 @@ function equal(s1, s2) { } function subset(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -222,7 +222,7 @@ function subset(_s1, _s2) { } function find(x, _tree) { - while(true) { + while (true) { const tree = _tree; if (/* tag */ typeof tree === "number" || typeof tree === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { diff --git a/jscomp/test/dist/jscomp/test/string_test.js b/jscomp/test/dist/jscomp/test/string_test.js index c770f13d1..c6716b427 100644 --- a/jscomp/test/dist/jscomp/test/string_test.js +++ b/jscomp/test/dist/jscomp/test/string_test.js @@ -85,7 +85,7 @@ function xsplit(delim, s) { if (len !== 0) { let _l = /* [] */ 0; let _i = len; - while(true) { + while (true) { const i = _i; const l = _l; if (i === 0) { diff --git a/jscomp/test/dist/jscomp/test/tailcall_inline_test.js b/jscomp/test/dist/jscomp/test/tailcall_inline_test.js index 8ce8fdba1..080fe10ee 100644 --- a/jscomp/test/dist/jscomp/test/tailcall_inline_test.js +++ b/jscomp/test/dist/jscomp/test/tailcall_inline_test.js @@ -7,7 +7,7 @@ const Stdlib__Array = require("melange/array.js"); function f(param) { const f$1 = function (_acc, _n) { - while(true) { + while (true) { const n = _n; const acc = _acc; if (n <= 0) { diff --git a/jscomp/test/dist/jscomp/test/test_ari.js b/jscomp/test/dist/jscomp/test/test_ari.js index d257e3182..570a3f74e 100644 --- a/jscomp/test/dist/jscomp/test/test_ari.js +++ b/jscomp/test/dist/jscomp/test/test_ari.js @@ -33,7 +33,7 @@ function ff(param) { const fff = VV.test_primit2(3); function length_aux(_len, _param) { - while(true) { + while (true) { const param = _param; const len = _len; if (!param) { diff --git a/jscomp/test/dist/jscomp/test/test_cps.js b/jscomp/test/dist/jscomp/test/test_cps.js index b42d64bd3..6c5a2e633 100644 --- a/jscomp/test/dist/jscomp/test/test_cps.js +++ b/jscomp/test/dist/jscomp/test/test_cps.js @@ -5,7 +5,7 @@ const Caml_array = require("melange.js/caml_array.js"); const Curry = require("melange.js/curry.js"); function f(_n, _acc) { - while(true) { + while (true) { const acc = _acc; const n = _n; if (n === 0) { diff --git a/jscomp/test/dist/jscomp/test/test_fib.js b/jscomp/test/dist/jscomp/test/test_fib.js index 8d45cfee0..2ad1294da 100644 --- a/jscomp/test/dist/jscomp/test/test_fib.js +++ b/jscomp/test/dist/jscomp/test/test_fib.js @@ -66,7 +66,7 @@ function map(f, x) { function f(x) { let v = x; let sum = 0; - while(v > 0) { + while (v > 0) { sum = sum + v | 0; v = v - 1 | 0; }; @@ -77,7 +77,7 @@ function fib3(n) { let _a = 0; let _b = 1; let _n = n; - while(true) { + while (true) { const n$1 = _n; const b = _b; const a = _a; diff --git a/jscomp/test/dist/jscomp/test/test_for_map.js b/jscomp/test/dist/jscomp/test/test_for_map.js index fefbbaa4d..a0513df74 100644 --- a/jscomp/test/dist/jscomp/test/test_for_map.js +++ b/jscomp/test/dist/jscomp/test/test_for_map.js @@ -161,7 +161,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -178,7 +178,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -190,7 +190,7 @@ function find_first(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -217,7 +217,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -227,7 +227,7 @@ function find_first_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -254,7 +254,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -266,7 +266,7 @@ function find_last(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -293,7 +293,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -303,7 +303,7 @@ function find_last_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -330,7 +330,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -345,7 +345,7 @@ function find_opt(x, _param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -360,7 +360,7 @@ function mem(x, _param) { } function min_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -380,7 +380,7 @@ function min_binding(_param) { } function min_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -398,7 +398,7 @@ function min_binding_opt(_param) { } function max_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -418,7 +418,7 @@ function max_binding(_param) { } function max_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -563,7 +563,7 @@ function add_to_list(x, data, m) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -611,7 +611,7 @@ function mapi(f, param) { } function fold(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -624,7 +624,7 @@ function fold(f, _m, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -641,7 +641,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -875,7 +875,7 @@ function partition(p, param) { } function cons_enum(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -896,7 +896,7 @@ function cons_enum(_m, _e) { function compare$1(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -926,7 +926,7 @@ function compare$1(cmp, m1, m2) { function equal(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -960,7 +960,7 @@ function cardinal(param) { } function bindings_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -1023,7 +1023,7 @@ function to_seq(m) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1067,7 +1067,7 @@ function to_rev_seq(c) { function to_seq_from(low, m) { const aux = function (low, _m, _c) { - while(true) { + while (true) { const c = _c; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { diff --git a/jscomp/test/dist/jscomp/test/test_internalOO.js b/jscomp/test/dist/jscomp/test/test_internalOO.js index db0180a78..09a300739 100644 --- a/jscomp/test/dist/jscomp/test/test_internalOO.js +++ b/jscomp/test/dist/jscomp/test/test_internalOO.js @@ -195,7 +195,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -212,7 +212,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -224,7 +224,7 @@ function find_first(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -251,7 +251,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -261,7 +261,7 @@ function find_first_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -288,7 +288,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -300,7 +300,7 @@ function find_last(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -327,7 +327,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -337,7 +337,7 @@ function find_last_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -364,7 +364,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -379,7 +379,7 @@ function find_opt(x, _param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -394,7 +394,7 @@ function mem(x, _param) { } function min_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -414,7 +414,7 @@ function min_binding(_param) { } function min_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -432,7 +432,7 @@ function min_binding_opt(_param) { } function max_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -452,7 +452,7 @@ function max_binding(_param) { } function max_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -597,7 +597,7 @@ function add_to_list(x, data, m) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -645,7 +645,7 @@ function mapi(f, param) { } function fold(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -658,7 +658,7 @@ function fold(f, _m, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -675,7 +675,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -909,7 +909,7 @@ function partition(p, param) { } function cons_enum(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -930,7 +930,7 @@ function cons_enum(_m, _e) { function compare$1(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -960,7 +960,7 @@ function compare$1(cmp, m1, m2) { function equal(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -994,7 +994,7 @@ function cardinal(param) { } function bindings_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -1057,7 +1057,7 @@ function to_seq(m) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1101,7 +1101,7 @@ function to_rev_seq(c) { function to_seq_from(low, m) { const aux = function (low, _m, _c) { - while(true) { + while (true) { const c = _c; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -1339,7 +1339,7 @@ function add$1(x, data, m) { } function find$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1356,7 +1356,7 @@ function find$1(x, _param) { } function find_first$1(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1368,7 +1368,7 @@ function find_first$1(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -1395,7 +1395,7 @@ function find_first$1(f, _param) { } function find_first_opt$1(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1405,7 +1405,7 @@ function find_first_opt$1(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -1432,7 +1432,7 @@ function find_first_opt$1(f, _param) { } function find_last$1(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1444,7 +1444,7 @@ function find_last$1(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -1471,7 +1471,7 @@ function find_last$1(f, _param) { } function find_last_opt$1(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1481,7 +1481,7 @@ function find_last_opt$1(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -1508,7 +1508,7 @@ function find_last_opt$1(f, _param) { } function find_opt$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1523,7 +1523,7 @@ function find_opt$1(x, _param) { } function mem$1(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -1538,7 +1538,7 @@ function mem$1(x, _param) { } function min_binding$1(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1558,7 +1558,7 @@ function min_binding$1(_param) { } function min_binding_opt$1(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1576,7 +1576,7 @@ function min_binding_opt$1(_param) { } function max_binding$1(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1596,7 +1596,7 @@ function max_binding$1(_param) { } function max_binding_opt$1(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1741,7 +1741,7 @@ function add_to_list$1(x, data, m) { } function iter$1(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1789,7 +1789,7 @@ function mapi$1(f, param) { } function fold$1(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -1802,7 +1802,7 @@ function fold$1(f, _m, _accu) { } function for_all$1(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -1819,7 +1819,7 @@ function for_all$1(p, _param) { } function exists$1(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -2053,7 +2053,7 @@ function partition$1(p, param) { } function cons_enum$1(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -2074,7 +2074,7 @@ function cons_enum$1(_m, _e) { function compare$3(cmp, m1, m2) { let _e1 = cons_enum$1(m1, /* End */ 0); let _e2 = cons_enum$1(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -2104,7 +2104,7 @@ function compare$3(cmp, m1, m2) { function equal$1(cmp, m1, m2) { let _e1 = cons_enum$1(m1, /* End */ 0); let _e2 = cons_enum$1(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -2138,7 +2138,7 @@ function cardinal$1(param) { } function bindings_aux$1(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -2201,7 +2201,7 @@ function to_seq$1(m) { } function snoc_enum$1(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -2245,7 +2245,7 @@ function to_rev_seq$1(c) { function to_seq_from$1(low, m) { const aux = function (low, _m, _c) { - while(true) { + while (true) { const c = _c; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -2483,7 +2483,7 @@ function add$2(x, data, m) { } function find$2(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -2500,7 +2500,7 @@ function find$2(x, _param) { } function find_first$2(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -2512,7 +2512,7 @@ function find_first$2(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -2539,7 +2539,7 @@ function find_first$2(f, _param) { } function find_first_opt$2(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -2549,7 +2549,7 @@ function find_first_opt$2(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -2576,7 +2576,7 @@ function find_first_opt$2(f, _param) { } function find_last$2(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -2588,7 +2588,7 @@ function find_last$2(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -2615,7 +2615,7 @@ function find_last$2(f, _param) { } function find_last_opt$2(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -2625,7 +2625,7 @@ function find_last_opt$2(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -2652,7 +2652,7 @@ function find_last_opt$2(f, _param) { } function find_opt$2(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -2667,7 +2667,7 @@ function find_opt$2(x, _param) { } function mem$2(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -2682,7 +2682,7 @@ function mem$2(x, _param) { } function min_binding$2(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -2702,7 +2702,7 @@ function min_binding$2(_param) { } function min_binding_opt$2(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -2720,7 +2720,7 @@ function min_binding_opt$2(_param) { } function max_binding$2(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -2740,7 +2740,7 @@ function max_binding$2(_param) { } function max_binding_opt$2(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -2885,7 +2885,7 @@ function add_to_list$2(x, data, m) { } function iter$2(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -2933,7 +2933,7 @@ function mapi$2(f, param) { } function fold$2(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -2946,7 +2946,7 @@ function fold$2(f, _m, _accu) { } function for_all$2(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -2963,7 +2963,7 @@ function for_all$2(p, _param) { } function exists$2(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -3197,7 +3197,7 @@ function partition$2(p, param) { } function cons_enum$2(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -3218,7 +3218,7 @@ function cons_enum$2(_m, _e) { function compare$5(cmp, m1, m2) { let _e1 = cons_enum$2(m1, /* End */ 0); let _e2 = cons_enum$2(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -3248,7 +3248,7 @@ function compare$5(cmp, m1, m2) { function equal$2(cmp, m1, m2) { let _e1 = cons_enum$2(m1, /* End */ 0); let _e2 = cons_enum$2(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -3282,7 +3282,7 @@ function cardinal$2(param) { } function bindings_aux$2(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -3345,7 +3345,7 @@ function to_seq$2(m) { } function snoc_enum$2(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -3389,7 +3389,7 @@ function to_rev_seq$2(c) { function to_seq_from$2(low, m) { const aux = function (low, _m, _c) { - while(true) { + while (true) { const c = _c; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -3851,7 +3851,7 @@ function dummy_class(loc) { } function iter_f(obj, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -3906,7 +3906,7 @@ function lookup_keys(i, keys, tables) { } const key = Caml_array.get(keys, i); let _tables = tables; - while(true) { + while (true) { const tables$1 = _tables; if (tables$1.key === key) { return lookup_keys(i - 1 | 0, keys, tables$1.data); @@ -4222,7 +4222,7 @@ function set_methods(table, methods) { const i = { contents: 0 }; - while(i.contents < len) { + while (i.contents < len) { const label = Caml_array.get(methods, i.contents); const clo = method_impl(table, i, methods); set_method(table, label, clo); diff --git a/jscomp/test/dist/jscomp/test/test_list.js b/jscomp/test/dist/jscomp/test/test_list.js index 8ec697d7f..6b459d0c8 100644 --- a/jscomp/test/dist/jscomp/test/test_list.js +++ b/jscomp/test/dist/jscomp/test/test_list.js @@ -8,7 +8,7 @@ const Stdlib = require("melange/stdlib.js"); const Stdlib__List = require("melange/list.js"); function length_aux(_len, _param) { - while(true) { + while (true) { const param = _param; const len = _len; if (!param) { @@ -53,7 +53,7 @@ function nth(l, n) { } let _l = l; let _n = n; - while(true) { + while (true) { const n$1 = _n; const l$1 = _l; if (l$1) { @@ -72,7 +72,7 @@ function nth(l, n) { } function rev_append(_l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (!l1) { @@ -128,7 +128,7 @@ function mapi$1(f, l) { function rev_map(f, l) { let _accu = /* [] */ 0; let _param = l; - while(true) { + while (true) { const param = _param; const accu = _accu; if (!param) { @@ -144,7 +144,7 @@ function rev_map(f, l) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return; @@ -158,7 +158,7 @@ function iter(f, _param) { function iteri(f, l) { let _i = 0; let _param = l; - while(true) { + while (true) { const param = _param; const i = _i; if (!param) { @@ -172,7 +172,7 @@ function iteri(f, l) { } function fold_left(f, _accu, _l) { - while(true) { + while (true) { const l = _l; const accu = _accu; if (!l) { @@ -219,7 +219,7 @@ function rev_map2(f, l1, l2) { let _accu = /* [] */ 0; let _l1 = l1; let _l2 = l2; - while(true) { + while (true) { const l2$1 = _l2; const l1$1 = _l1; const accu = _accu; @@ -249,7 +249,7 @@ function rev_map2(f, l1, l2) { } function iter2(f, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (l1) { @@ -275,7 +275,7 @@ function iter2(f, _l1, _l2) { } function fold_left2(f, _accu, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; const accu = _accu; @@ -321,7 +321,7 @@ function fold_right2(f, l1, l2, accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return true; @@ -335,7 +335,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return false; @@ -349,7 +349,7 @@ function exists(p, _param) { } function for_all2(p, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (l1) { @@ -377,7 +377,7 @@ function for_all2(p, _l1, _l2) { } function exists2(p, _l1, _l2) { - while(true) { + while (true) { const l2 = _l2; const l1 = _l1; if (l1) { @@ -405,7 +405,7 @@ function exists2(p, _l1, _l2) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return false; @@ -419,7 +419,7 @@ function mem(x, _param) { } function memq(x, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return false; @@ -433,7 +433,7 @@ function memq(x, _param) { } function assoc(x, _param) { - while(true) { + while (true) { const param = _param; if (param) { const match = param.hd; @@ -450,7 +450,7 @@ function assoc(x, _param) { } function assq(x, _param) { - while(true) { + while (true) { const param = _param; if (param) { const match = param.hd; @@ -467,7 +467,7 @@ function assq(x, _param) { } function mem_assoc(x, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return false; @@ -481,7 +481,7 @@ function mem_assoc(x, _param) { } function mem_assq(x, _param) { - while(true) { + while (true) { const param = _param; if (!param) { return false; @@ -527,7 +527,7 @@ function remove_assq(x, param) { } function find(p, _param) { - while(true) { + while (true) { const param = _param; if (param) { const x = param.hd; @@ -547,7 +547,7 @@ function find_all(p) { return function (param) { let _accu = /* [] */ 0; let _param = param; - while(true) { + while (true) { const param$1 = _param; const accu = _accu; if (!param$1) { @@ -573,7 +573,7 @@ function partition(p, l) { let _yes = /* [] */ 0; let _no = /* [] */ 0; let _param = l; - while(true) { + while (true) { const param = _param; const no = _no; const yes = _yes; @@ -671,7 +671,7 @@ function merge(cmp, l1, l2) { } function chop(_k, _l) { - while(true) { + while (true) { const l = _l; const k = _k; if (k === 0) { @@ -812,7 +812,7 @@ function stable_sort(cmp, l) { let _l1 = s1; let _l2 = s2; let _accu = /* [] */ 0; - while(true) { + while (true) { const accu = _accu; const l2$1 = _l2; const l1 = _l1; @@ -958,7 +958,7 @@ function stable_sort(cmp, l) { let _l1 = s1; let _l2 = s2; let _accu = /* [] */ 0; - while(true) { + while (true) { const accu = _accu; const l2$1 = _l2; const l1 = _l1; @@ -1186,7 +1186,7 @@ function sort_uniq(cmp, l) { let _l1 = s1; let _l2 = s2; let _accu = /* [] */ 0; - while(true) { + while (true) { const accu = _accu; const l2$1 = _l2; const l1 = _l1; @@ -1417,7 +1417,7 @@ function sort_uniq(cmp, l) { let _l1 = s1; let _l2 = s2; let _accu = /* [] */ 0; - while(true) { + while (true) { const accu = _accu; const l2$1 = _l2; const l1 = _l1; diff --git a/jscomp/test/dist/jscomp/test/test_order_tailcall.js b/jscomp/test/dist/jscomp/test/test_order_tailcall.js index 52716e294..89eaba800 100644 --- a/jscomp/test/dist/jscomp/test/test_order_tailcall.js +++ b/jscomp/test/dist/jscomp/test/test_order_tailcall.js @@ -3,7 +3,7 @@ function f(_x, _y) { - while(true) { + while (true) { const y = _y; const x = _x; _y = x; @@ -13,7 +13,7 @@ function f(_x, _y) { } function f1(_x, _y, _z) { - while(true) { + while (true) { const z = _z; const y = _y; const x = _x; @@ -26,7 +26,7 @@ function f1(_x, _y, _z) { } function f2(x, _y) { - while(true) { + while (true) { const y = _y; _y = y + 10 | 0; continue; @@ -34,7 +34,7 @@ function f2(x, _y) { } function f3(_x, _y) { - while(true) { + while (true) { const y = _y; const x = _x; _y = x + 10 | 0; @@ -44,7 +44,7 @@ function f3(_x, _y) { } function f4(_x, _y) { - while(true) { + while (true) { const y = _y; const x = _x; _y = y + x | 0; @@ -54,7 +54,7 @@ function f4(_x, _y) { } function f5(_x, _y, z) { - while(true) { + while (true) { const y = _y; _y = z + 20 | 0; _x = y + 10 | 0; @@ -63,7 +63,7 @@ function f5(_x, _y, z) { } function f6(b) { - while(true) { + while (true) { if (!b) { return false; } @@ -72,7 +72,7 @@ function f6(b) { } function f7(b) { - while(true) { + while (true) { if (b) { return true; } @@ -81,7 +81,7 @@ function f7(b) { } function f8(_x, _y) { - while(true) { + while (true) { const y = _y; const x = _x; if (x > 10) { diff --git a/jscomp/test/dist/jscomp/test/test_per.js b/jscomp/test/dist/jscomp/test/test_per.js index 34d3baf80..11b3eb971 100644 --- a/jscomp/test/dist/jscomp/test/test_per.js +++ b/jscomp/test/dist/jscomp/test/test_per.js @@ -139,7 +139,7 @@ function string_of_int(n) { function valid_float_lexem(s) { const l = s.length; let _i = 0; - while(true) { + while (true) { const i = _i; if (i >= l) { return $caret(s, "."); @@ -219,7 +219,7 @@ function open_out_bin(name) { function flush_all(param) { let _param = Caml_io.caml_ml_out_channels_list(undefined); - while(true) { + while (true) { const param$1 = _param; if (!param$1) { return; @@ -322,7 +322,7 @@ function input(ic, s, ofs, len) { } function unsafe_really_input(ic, s, _ofs, _len) { - while(true) { + while (true) { const len = _len; const ofs = _ofs; if (len <= 0) { @@ -358,7 +358,7 @@ function really_input_string(ic, len) { function input_line(chan) { const build_result = function (buf, _pos, _param) { - while(true) { + while (true) { const param = _param; const pos = _pos; if (!param) { @@ -374,7 +374,7 @@ function input_line(chan) { }; let _accu = /* [] */ 0; let _len = 0; - while(true) { + while (true) { const len = _len; const accu = _accu; const n = Caml_external_polyfill.resolve("caml_ml_input_scan_line")(chan); diff --git a/jscomp/test/dist/jscomp/test/test_seq.js b/jscomp/test/dist/jscomp/test/test_seq.js index 4f5e9fc5c..4660866ee 100644 --- a/jscomp/test/dist/jscomp/test/test_seq.js +++ b/jscomp/test/dist/jscomp/test/test_seq.js @@ -14,7 +14,7 @@ const Help = /* @__PURE__ */ Caml_exceptions.create("Test_seq.Help"); const Stop = /* @__PURE__ */ Caml_exceptions.create("Test_seq.Stop"); function assoc3(x, _l) { - while(true) { + while (true) { const l = _l; if (l) { const match = l.hd; diff --git a/jscomp/test/dist/jscomp/test/test_set.js b/jscomp/test/dist/jscomp/test/test_set.js index af65e78af..0e83d06a0 100644 --- a/jscomp/test/dist/jscomp/test/test_set.js +++ b/jscomp/test/dist/jscomp/test/test_set.js @@ -145,7 +145,7 @@ function Make(Ord) { } }; const min_elt = function (_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -161,7 +161,7 @@ function Make(Ord) { }; }; const max_elt = function (_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -250,7 +250,7 @@ function Make(Ord) { } }; const mem = function (x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -340,7 +340,7 @@ function Make(Ord) { } }; const cons_enum = function (_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -357,7 +357,7 @@ function Make(Ord) { }; }; const compare_aux = function (_e1, _e2) { - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -386,7 +386,7 @@ function Make(Ord) { return compare(s1, s2) === 0; }; const subset = function (_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -436,7 +436,7 @@ function Make(Ord) { }; }; const iter = function (f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -448,7 +448,7 @@ function Make(Ord) { }; }; const fold = function (f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -460,7 +460,7 @@ function Make(Ord) { }; }; const for_all = function (p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -476,7 +476,7 @@ function Make(Ord) { }; }; const exists = function (p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -540,7 +540,7 @@ function Make(Ord) { } }; const elements_aux = function (_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -558,7 +558,7 @@ function Make(Ord) { return elements_aux(/* [] */ 0, s); }; const find = function (x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { diff --git a/jscomp/test/dist/jscomp/test/test_simple_tailcall.js b/jscomp/test/dist/jscomp/test/test_simple_tailcall.js index 2483a6ba3..63d5517aa 100644 --- a/jscomp/test/dist/jscomp/test/test_simple_tailcall.js +++ b/jscomp/test/dist/jscomp/test/test_simple_tailcall.js @@ -3,7 +3,7 @@ function tailcall(x) { - while(true) { + while (true) { continue; }; } @@ -17,7 +17,7 @@ function non_length(x) { } function length(_acc, _x) { - while(true) { + while (true) { const x = _x; const acc = _acc; if (!x) { diff --git a/jscomp/test/dist/jscomp/test/test_string_map.js b/jscomp/test/dist/jscomp/test/test_string_map.js index c12e26e27..091e797ef 100644 --- a/jscomp/test/dist/jscomp/test/test_string_map.js +++ b/jscomp/test/dist/jscomp/test/test_string_map.js @@ -139,7 +139,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { diff --git a/jscomp/test/dist/jscomp/test/test_u.js b/jscomp/test/dist/jscomp/test/test_u.js index 4476e7e27..f06eeffda 100644 --- a/jscomp/test/dist/jscomp/test/test_u.js +++ b/jscomp/test/dist/jscomp/test/test_u.js @@ -5,7 +5,7 @@ function f(x) { let v = x; let sum = 0; - while(v > 0) { + while (v > 0) { sum = sum + v | 0; v = v - 1 | 0; }; diff --git a/jscomp/test/dist/jscomp/test/test_while_closure.js b/jscomp/test/dist/jscomp/test/test_while_closure.js index e05c16258..fcb318cd3 100644 --- a/jscomp/test/dist/jscomp/test/test_while_closure.js +++ b/jscomp/test/dist/jscomp/test/test_while_closure.js @@ -16,7 +16,7 @@ const arr = Caml_array.make(10, (function (param) { function f(param) { let n = 0; - while(n < 10) { + while (n < 10) { const j = n; Caml_array.set(arr, j, (function (param) { v.contents = v.contents + j | 0; diff --git a/jscomp/test/dist/jscomp/test/test_while_side_effect.js b/jscomp/test/dist/jscomp/test/test_while_side_effect.js index d261ab7a1..c84f2b34e 100644 --- a/jscomp/test/dist/jscomp/test/test_while_side_effect.js +++ b/jscomp/test/dist/jscomp/test/test_while_side_effect.js @@ -6,7 +6,7 @@ const v = { contents: 0 }; -while(console.log(String(v.contents)), v.contents = v.contents + 1 | 0, v.contents < 10) { +while (console.log(String(v.contents)), v.contents = v.contents + 1 | 0, v.contents < 10) { }; @@ -22,7 +22,7 @@ const x = { contents: 3 }; -while((function () { +while ((function () { let y = 3; console.log(String(x.contents)); y = y + 1 | 0; diff --git a/jscomp/test/dist/jscomp/test/ticker.js b/jscomp/test/dist/jscomp/test/ticker.js index b33b5d58d..ba1b258bd 100644 --- a/jscomp/test/dist/jscomp/test/ticker.js +++ b/jscomp/test/dist/jscomp/test/ticker.js @@ -18,7 +18,7 @@ function split(delim, s) { if (len !== 0) { let _l = /* [] */ 0; let _i = len; - while(true) { + while (true) { const i = _i; const l = _l; if (i === 0) { @@ -267,7 +267,7 @@ function add(x, data, m) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -284,7 +284,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -296,7 +296,7 @@ function find_first(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -323,7 +323,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -333,7 +333,7 @@ function find_first_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -360,7 +360,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -372,7 +372,7 @@ function find_last(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -399,7 +399,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -409,7 +409,7 @@ function find_last_opt(f, _param) { let _v0 = v; let _d0 = param.d; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const d0 = _d0; const v0 = _v0; @@ -436,7 +436,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -451,7 +451,7 @@ function find_opt(x, _param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -466,7 +466,7 @@ function mem(x, _param) { } function min_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -486,7 +486,7 @@ function min_binding(_param) { } function min_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -504,7 +504,7 @@ function min_binding_opt(_param) { } function max_binding(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -524,7 +524,7 @@ function max_binding(_param) { } function max_binding_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -669,7 +669,7 @@ function add_to_list(x, data, m) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -717,7 +717,7 @@ function mapi(f, param) { } function fold(f, _m, _accu) { - while(true) { + while (true) { const accu = _accu; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -730,7 +730,7 @@ function fold(f, _m, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -747,7 +747,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -981,7 +981,7 @@ function partition(p, param) { } function cons_enum(_m, _e) { - while(true) { + while (true) { const e = _e; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -1002,7 +1002,7 @@ function cons_enum(_m, _e) { function compare$1(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -1032,7 +1032,7 @@ function compare$1(cmp, m1, m2) { function equal(cmp, m1, m2) { let _e1 = cons_enum(m1, /* End */ 0); let _e2 = cons_enum(m2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -1066,7 +1066,7 @@ function cardinal(param) { } function bindings_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -1129,7 +1129,7 @@ function to_seq(m) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1173,7 +1173,7 @@ function to_rev_seq(c) { function to_seq_from(low, m) { const aux = function (low, _m, _c) { - while(true) { + while (true) { const c = _c; const m = _m; if (/* tag */ typeof m === "number" || typeof m === "string") { @@ -1300,7 +1300,7 @@ function compute_update_sequences(all_tickers) { }, map); } const loop = function (_up, _map, _ticker) { - while(true) { + while (true) { const ticker = _ticker; const map = _map; const up = _up; @@ -1549,7 +1549,7 @@ function process_input_line(ticker_map, all_tickers, line) { } function loop(_lines, _param) { - while(true) { + while (true) { const param = _param; const lines = _lines; const all_tickers = param[0]; diff --git a/jscomp/test/dist/jscomp/test/topsort_test.js b/jscomp/test/dist/jscomp/test/topsort_test.js index 021ef35cc..ba15c342c 100644 --- a/jscomp/test/dist/jscomp/test/topsort_test.js +++ b/jscomp/test/dist/jscomp/test/topsort_test.js @@ -75,7 +75,7 @@ function nexts(x, g) { } function dfs1(_nodes, graph, _visited) { - while(true) { + while (true) { const visited = _visited; const nodes = _nodes; if (!nodes) { @@ -171,7 +171,7 @@ if (!Caml_obj.caml_equal(dfs1({ function dfs2(nodes, graph, visited) { const aux = function (_nodes, graph, _visited) { - while(true) { + while (true) { const visited = _visited; const nodes = _nodes; if (!nodes) { @@ -604,7 +604,7 @@ function join(l, v, r) { } function min_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -621,7 +621,7 @@ function min_elt(_param) { } function min_elt_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -636,7 +636,7 @@ function min_elt_opt(_param) { } function max_elt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -653,7 +653,7 @@ function max_elt(_param) { } function max_elt_opt(_param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -736,7 +736,7 @@ function is_empty(param) { } function mem(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -871,7 +871,7 @@ function split_bis(x, param) { } function disjoint(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -916,7 +916,7 @@ function diff(s1, s2) { } function cons_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -936,7 +936,7 @@ function cons_enum(_s, _e) { function compare(s1, s2) { let _e1 = cons_enum(s1, /* End */ 0); let _e2 = cons_enum(s2, /* End */ 0); - while(true) { + while (true) { const e2 = _e2; const e1 = _e1; if (/* tag */ typeof e1 === "number" || typeof e1 === "string") { @@ -964,7 +964,7 @@ function equal(s1, s2) { } function subset(_s1, _s2) { - while(true) { + while (true) { const s2 = _s2; const s1 = _s1; if (/* tag */ typeof s1 === "number" || typeof s1 === "string") { @@ -1015,7 +1015,7 @@ function subset(_s1, _s2) { } function iter(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1028,7 +1028,7 @@ function iter(f, _param) { } function fold(f, _s, _accu) { - while(true) { + while (true) { const accu = _accu; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1041,7 +1041,7 @@ function fold(f, _s, _accu) { } function for_all(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return true; @@ -1058,7 +1058,7 @@ function for_all(p, _param) { } function exists(p, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return false; @@ -1132,7 +1132,7 @@ function cardinal(param) { } function elements_aux(_accu, _param) { - while(true) { + while (true) { const param = _param; const accu = _accu; if (/* tag */ typeof param === "number" || typeof param === "string") { @@ -1152,7 +1152,7 @@ function elements(s) { } function find(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1170,7 +1170,7 @@ function find(x, _param) { } function find_first(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1181,7 +1181,7 @@ function find_first(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -1203,7 +1203,7 @@ function find_first(f, _param) { } function find_first_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1212,7 +1212,7 @@ function find_first_opt(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.l; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -1234,7 +1234,7 @@ function find_first_opt(f, _param) { } function find_last(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { throw new Caml_js_exceptions.MelangeError(Stdlib.Not_found, { @@ -1245,7 +1245,7 @@ function find_last(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -1267,7 +1267,7 @@ function find_last(f, _param) { } function find_last_opt(f, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1276,7 +1276,7 @@ function find_last_opt(f, _param) { if (Curry._1(f, v)) { let _v0 = v; let _param$1 = param.r; - while(true) { + while (true) { const param$1 = _param$1; const v0 = _v0; if (/* tag */ typeof param$1 === "number" || typeof param$1 === "string") { @@ -1298,7 +1298,7 @@ function find_last_opt(f, _param) { } function find_opt(x, _param) { - while(true) { + while (true) { const param = _param; if (/* tag */ typeof param === "number" || typeof param === "string") { return; @@ -1531,7 +1531,7 @@ function to_seq(c) { } function snoc_enum(_s, _e) { - while(true) { + while (true) { const e = _e; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { @@ -1571,7 +1571,7 @@ function to_rev_seq(c) { function to_seq_from(low, s) { const aux = function (low, _s, _c) { - while(true) { + while (true) { const c = _c; const s = _s; if (/* tag */ typeof s === "number" || typeof s === "string") { diff --git a/jscomp/test/dist/jscomp/test/tramp_fib.js b/jscomp/test/dist/jscomp/test/tramp_fib.js index c9734bd68..3b0c5d2c7 100644 --- a/jscomp/test/dist/jscomp/test/tramp_fib.js +++ b/jscomp/test/dist/jscomp/test/tramp_fib.js @@ -40,7 +40,7 @@ const u = fib(10, (function (x) { })); function iter(_bounce) { - while(true) { + while (true) { const bounce = _bounce; if (bounce.TAG === /* Continue */ 0) { return bounce._0; diff --git a/jscomp/test/dist/jscomp/test/uncurry_test.js b/jscomp/test/dist/jscomp/test/uncurry_test.js index bf8f99369..b6e0102f8 100644 --- a/jscomp/test/dist/jscomp/test/uncurry_test.js +++ b/jscomp/test/dist/jscomp/test/uncurry_test.js @@ -414,7 +414,7 @@ console.log(f21(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 console.log(f22(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)); function xx() { - while(true) { + while (true) { continue; }; } diff --git a/jscomp/test/dist/jscomp/test/unsafe_full_apply_primitive.js b/jscomp/test/dist/jscomp/test/unsafe_full_apply_primitive.js index f79d1e877..1a636f512 100644 --- a/jscomp/test/dist/jscomp/test/unsafe_full_apply_primitive.js +++ b/jscomp/test/dist/jscomp/test/unsafe_full_apply_primitive.js @@ -3,7 +3,7 @@ function f(a) { - while(true) { + while (true) { continue; }; } diff --git a/test/blackbox-tests/mel-as-variants-lists.t b/test/blackbox-tests/mel-as-variants-lists.t index e5cbe8cac..d2d6329cd 100644 --- a/test/blackbox-tests/mel-as-variants-lists.t +++ b/test/blackbox-tests/mel-as-variants-lists.t @@ -27,7 +27,7 @@ function f(_x) { - while(true) { + while (true) { const x = _x; if (!x) { return "empty"; @@ -58,7 +58,7 @@ function f(_x) { - while(true) { + while (true) { const x = _x; if (!x) { return "empty"; @@ -93,7 +93,7 @@ function f(_x) { - while(true) { + while (true) { const x = _x; if (!x) { return "empty";