Skip to content

Commit 5e07da6

Browse files
committed
snapshot changes
1 parent 18bce15 commit 5e07da6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+8180
-8182
lines changed

jscomp/test/adt_optimize_test.js

+29-29
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ function f4(param) {
2929
function f5(param) {
3030
if (typeof param === "number") {
3131
switch (param) {
32-
case 0 :
32+
case 0 :
3333
return 1;
34-
case 1 :
34+
case 1 :
3535
return 3;
36-
case 2 :
36+
case 2 :
3737
return 4;
3838

3939
}
4040
} else {
4141
switch (param.tag | 0) {
42-
case 0 :
43-
case 1 :
42+
case 0 :
43+
case 1 :
4444
return 1;
45-
case 2 :
45+
case 2 :
4646
return 2;
4747

4848
}
@@ -64,21 +64,21 @@ function f6(param) {
6464
function f7(param) {
6565
if (typeof param === "number") {
6666
switch (param) {
67-
case 0 :
67+
case 0 :
6868
return 1;
69-
case 1 :
69+
case 1 :
7070
return 2;
71-
case 2 :
71+
case 2 :
7272
return -1;
7373

7474
}
7575
} else {
7676
switch (param.tag | 0) {
77-
case 0 :
77+
case 0 :
7878
return 3;
79-
case 1 :
79+
case 1 :
8080
return 4;
81-
case 2 :
81+
case 2 :
8282
return -1;
8383

8484
}
@@ -88,16 +88,16 @@ function f7(param) {
8888
function f8(param) {
8989
if (typeof param === "number") {
9090
switch (param) {
91-
case 0 :
92-
case 1 :
91+
case 0 :
92+
case 1 :
9393
return 1;
9494
default:
9595
return 3;
9696
}
9797
} else {
9898
switch (param.tag | 0) {
99-
case 0 :
100-
case 1 :
99+
case 0 :
100+
case 1 :
101101
return 2;
102102
default:
103103
return 3;
@@ -108,17 +108,17 @@ function f8(param) {
108108
function f9(param) {
109109
if (typeof param === "number") {
110110
switch (param) {
111-
case 0 :
112-
case 1 :
113-
case 2 :
111+
case 0 :
112+
case 1 :
113+
case 2 :
114114
return 1;
115115
default:
116116
return 3;
117117
}
118118
} else {
119119
switch (param.tag | 0) {
120-
case 0 :
121-
case 1 :
120+
case 0 :
121+
case 1 :
122122
return 2;
123123
default:
124124
return 3;
@@ -129,23 +129,23 @@ function f9(param) {
129129
function f10(param) {
130130
if (typeof param === "number") {
131131
switch (param) {
132-
case 0 :
132+
case 0 :
133133
return 0;
134-
case 1 :
134+
case 1 :
135135
return 2;
136-
case 2 :
136+
case 2 :
137137
return 4;
138-
case 3 :
138+
case 3 :
139139
return 1;
140140

141141
}
142142
} else {
143143
switch (param.tag | 0) {
144-
case 0 :
145-
case 1 :
144+
case 0 :
145+
case 1 :
146146
return 2;
147-
case 2 :
148-
case 3 :
147+
case 2 :
148+
case 3 :
149149
return 3;
150150

151151
}

jscomp/test/arith_lexer.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,26 @@ function __ocaml_lex_lexeme_rec(lexbuf, ___ocaml_lex_state) {
2525
var __ocaml_lex_state = ___ocaml_lex_state;
2626
var __ocaml_lex_state$1 = Lexing.engine(__ocaml_lex_tables, __ocaml_lex_state, lexbuf);
2727
switch (__ocaml_lex_state$1) {
28-
case 0 :
28+
case 0 :
2929
___ocaml_lex_state = 0;
3030
continue ;
31-
case 1 :
31+
case 1 :
3232
return /* NUMERAL */Block.__(0, [Caml_format.caml_int_of_string(Lexing.lexeme(lexbuf))]);
33-
case 2 :
33+
case 2 :
3434
return /* IDENT */Block.__(1, [Lexing.lexeme(lexbuf)]);
35-
case 3 :
35+
case 3 :
3636
return /* PLUS */0;
37-
case 4 :
37+
case 4 :
3838
return /* MINUS */1;
39-
case 5 :
39+
case 5 :
4040
return /* TIMES */2;
41-
case 6 :
41+
case 6 :
4242
return /* DIVIDE */3;
43-
case 7 :
43+
case 7 :
4444
return /* LPAREN */5;
45-
case 8 :
45+
case 8 :
4646
return /* RPAREN */6;
47-
case 9 :
47+
case 9 :
4848
return /* EOF */7;
4949
default:
5050
Curry._1(lexbuf[/* refill_buff */0], lexbuf);
@@ -60,19 +60,19 @@ function lexeme(lexbuf) {
6060

6161
function str(e) {
6262
switch (e.tag | 0) {
63-
case 0 :
63+
case 0 :
6464
return Pervasives.string_of_float(e[0]);
65-
case 1 :
65+
case 1 :
6666
return str(e[0]) + ("+" + str(e[1]));
67-
case 2 :
67+
case 2 :
6868
return str(e[0]) + ("-" + str(e[1]));
69-
case 3 :
69+
case 3 :
7070
return str(e[0]) + ("*" + str(e[1]));
71-
case 4 :
71+
case 4 :
7272
return str(e[0]) + ("/" + str(e[1]));
73-
case 5 :
73+
case 5 :
7474
return "-" + str(e[0]);
75-
case 6 :
75+
case 6 :
7676
return e[0];
7777

7878
}

jscomp/test/arith_syntax.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ var Pervasives = require("../../lib/js/pervasives.js");
44

55
function str(e) {
66
switch (e.tag | 0) {
7-
case 0 :
7+
case 0 :
88
return Pervasives.string_of_float(e[0]);
9-
case 1 :
9+
case 1 :
1010
return str(e[0]) + ("+" + str(e[1]));
11-
case 2 :
11+
case 2 :
1212
return str(e[0]) + ("-" + str(e[1]));
13-
case 3 :
13+
case 3 :
1414
return str(e[0]) + ("*" + str(e[1]));
15-
case 4 :
15+
case 4 :
1616
return str(e[0]) + ("/" + str(e[1]));
17-
case 5 :
17+
case 5 :
1818
return "-" + str(e[0]);
19-
case 6 :
19+
case 6 :
2020
return e[0];
2121

2222
}

jscomp/test/arity_infer.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ function f1(x) {
2323
function f3(x) {
2424
var tmp;
2525
switch (x) {
26-
case 0 :
26+
case 0 :
2727
tmp = (function (x) {
2828
return x + 1 | 0;
2929
});
3030
break;
31-
case 1 :
31+
case 1 :
3232
tmp = (function (x) {
3333
return x + 2 | 0;
3434
});
3535
break;
36-
case 2 :
36+
case 2 :
3737
tmp = (function (x) {
3838
return x + 3 | 0;
3939
});
4040
break;
41-
case 3 :
41+
case 3 :
4242
tmp = (function (x) {
4343
return x + 4 | 0;
4444
});

jscomp/test/ast_js_mapper_poly_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ function eqVOpt(x, y) {
116116

117117
function s(param) {
118118
switch (param) {
119-
case 0 :
119+
case 0 :
120120
return "A0";
121-
case 1 :
121+
case 1 :
122122
return "A1";
123-
case 2 :
123+
case 2 :
124124
return "A2";
125-
case 3 :
125+
case 3 :
126126
return "A3";
127127

128128
}

jscomp/test/bb.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ function f(x) {
1616

1717
function ff(x) {
1818
switch (x) {
19-
case "a" :
19+
case "a" :
2020
return /* a */97;
21-
case "b" :
21+
case "b" :
2222
return /* b */98;
23-
case "c" :
23+
case "c" :
2424
return /* c */99;
2525
default:
2626
throw [
@@ -37,13 +37,13 @@ function ff(x) {
3737
function test(x) {
3838
var match;
3939
switch (x) {
40-
case "a" :
40+
case "a" :
4141
match = /* a */97;
4242
break;
43-
case "b" :
43+
case "b" :
4444
match = /* b */98;
4545
break;
46-
case "c" :
46+
case "c" :
4747
match = /* c */99;
4848
break;
4949
default:

jscomp/test/bdd.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ function and2(n1, n2) {
237237
var match = cmpVar(v1, v2);
238238
var f;
239239
switch (match) {
240-
case 0 :
240+
case 0 :
241241
f = mkNode(and2(l1, n2), v1, and2(r1, n2));
242242
break;
243-
case 1 :
243+
case 1 :
244244
f = mkNode(and2(l1, l2), v1, and2(r1, r2));
245245
break;
246-
case 2 :
246+
case 2 :
247247
f = mkNode(and2(n1, l2), v2, and2(n1, r2));
248248
break;
249249

@@ -287,13 +287,13 @@ function xor(n1, n2) {
287287
var match = cmpVar(v1, v2);
288288
var f;
289289
switch (match) {
290-
case 0 :
290+
case 0 :
291291
f = mkNode(xor(l1, n2), v1, xor(r1, n2));
292292
break;
293-
case 1 :
293+
case 1 :
294294
f = mkNode(xor(l1, l2), v1, xor(r1, r2));
295295
break;
296-
case 2 :
296+
case 2 :
297297
f = mkNode(xor(n1, l2), v2, xor(n1, r2));
298298
break;
299299

0 commit comments

Comments
 (0)