Skip to content

Commit 596d64b

Browse files
committed
snapshot
1 parent 61de16f commit 596d64b

File tree

279 files changed

+14154
-14154
lines changed

Some content is hidden

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

279 files changed

+14154
-14154
lines changed

jscomp/main/builtin_cmi_datasets.ml

+125-125
Large diffs are not rendered by default.

jscomp/test/a_filename_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function eq(loc, x, y) {
1919
loc + (" id " + String(test_id.contents)),
2020
(function (param) {
2121
return {
22-
tag: /* Eq */0,
22+
TAG: /* Eq */0,
2323
_0: x,
2424
_1: y
2525
};

jscomp/test/a_list_test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var suites_0 = [
77
"drop",
88
(function (param) {
99
return {
10-
tag: /* Eq */0,
10+
TAG: /* Eq */0,
1111
_0: Ext_list_test.drop(3, /* :: */{
1212
_0: 0,
1313
_1: /* :: */{
@@ -28,7 +28,7 @@ var suites_1 = /* :: */{
2828
"drop1",
2929
(function (param) {
3030
return {
31-
tag: /* Eq */0,
31+
TAG: /* Eq */0,
3232
_0: Ext_list_test.drop(2, /* :: */{
3333
_0: 0,
3434
_1: /* :: */{
@@ -51,7 +51,7 @@ var suites_1 = /* :: */{
5151
"flat_map",
5252
(function (param) {
5353
return {
54-
tag: /* Eq */0,
54+
TAG: /* Eq */0,
5555
_0: /* :: */{
5656
_0: 0,
5757
_1: /* :: */{

jscomp/test/a_string_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var suites_0 = [
88
"split",
99
(function (param) {
1010
return {
11-
tag: /* Eq */0,
11+
TAG: /* Eq */0,
1212
_0: Ext_string_test.split(true, "hihi", /* "i" */105),
1313
_1: /* :: */{
1414
_0: "h",
@@ -29,7 +29,7 @@ var suites_1 = /* :: */{
2929
"split_non_empty",
3030
(function (param) {
3131
return {
32-
tag: /* Eq */0,
32+
TAG: /* Eq */0,
3333
_0: Ext_string_test.split(undefined, "hihi", /* "i" */105),
3434
_1: /* :: */{
3535
_0: "h",
@@ -46,7 +46,7 @@ var suites_1 = /* :: */{
4646
"split_empty",
4747
(function (param) {
4848
return {
49-
tag: /* Eq */0,
49+
TAG: /* Eq */0,
5050
_0: Ext_string_test.split(true, "", /* "i" */105),
5151
_1: /* [] */0
5252
};
@@ -57,7 +57,7 @@ var suites_1 = /* :: */{
5757
"split_normal",
5858
(function (param) {
5959
return {
60-
tag: /* Eq */0,
60+
TAG: /* Eq */0,
6161
_0: Ext_string_test.split(true, "h i i", /* " " */32),
6262
_1: /* :: */{
6363
_0: "h",
@@ -77,7 +77,7 @@ var suites_1 = /* :: */{
7777
"split_by",
7878
(function (param) {
7979
return {
80-
tag: /* Eq */0,
80+
TAG: /* Eq */0,
8181
_0: List.filter(function (s) {
8282
return s !== "";
8383
})(Ext_string_test.split_by(undefined, (function (x) {

jscomp/test/adt_optimize_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function f5(param) {
3737

3838
}
3939
} else {
40-
switch (param.tag | 0) {
40+
switch (param.TAG | 0) {
4141
case /* C */0 :
4242
case /* D */1 :
4343
return 1;
@@ -72,7 +72,7 @@ function f7(param) {
7272

7373
}
7474
} else {
75-
switch (param.tag | 0) {
75+
switch (param.TAG | 0) {
7676
case /* C */0 :
7777
return 3;
7878
case /* D */1 :
@@ -94,7 +94,7 @@ function f8(param) {
9494
return 3;
9595
}
9696
} else {
97-
switch (param.tag | 0) {
97+
switch (param.TAG | 0) {
9898
case /* T64 */0 :
9999
case /* T65 */1 :
100100
return 2;
@@ -112,7 +112,7 @@ function f9(param) {
112112
return 1;
113113
}
114114
}
115-
switch (param.tag | 0) {
115+
switch (param.TAG | 0) {
116116
case /* T64 */0 :
117117
case /* T65 */1 :
118118
return 2;
@@ -137,7 +137,7 @@ function f10(param) {
137137

138138
}
139139
} else {
140-
switch (param.tag | 0) {
140+
switch (param.TAG | 0) {
141141
case /* T64 */0 :
142142
case /* T65 */1 :
143143
return 2;
@@ -153,7 +153,7 @@ function f11(x) {
153153
if (typeof x === "number") {
154154
return 2;
155155
}
156-
if (!x.tag) {
156+
if (!x.TAG) {
157157
return 1;
158158
}
159159
throw {

jscomp/test/and_or_tailcall_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var suites_0 = [
3434
"and_tail",
3535
(function (param) {
3636
return {
37-
tag: /* Eq */0,
37+
TAG: /* Eq */0,
3838
_0: false,
3939
_1: f(true, 1, 0)
4040
};
@@ -46,7 +46,7 @@ var suites_1 = /* :: */{
4646
"or_tail",
4747
(function (param) {
4848
return {
49-
tag: /* Eq */0,
49+
TAG: /* Eq */0,
5050
_0: false,
5151
_1: or_f(false, 1, 0)
5252
};

jscomp/test/argv_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var test = {
1919
var arg_spec_0 = [
2020
"-c",
2121
{
22-
tag: /* Set */2,
22+
TAG: /* Set */2,
2323
_0: compile
2424
},
2525
" Compile"
@@ -29,7 +29,7 @@ var arg_spec_1 = /* :: */{
2929
_0: [
3030
"-d",
3131
{
32-
tag: /* Clear */3,
32+
TAG: /* Clear */3,
3333
_0: test
3434
},
3535
" Test"

jscomp/test/ari_regress_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var suites_0 = [
3131
"curry",
3232
(function (param) {
3333
return {
34-
tag: /* Eq */0,
34+
TAG: /* Eq */0,
3535
_0: g,
3636
_1: 7
3737
};
@@ -43,7 +43,7 @@ var suites_1 = /* :: */{
4343
"curry2",
4444
(function (param) {
4545
return {
46-
tag: /* Eq */0,
46+
TAG: /* Eq */0,
4747
_0: 14,
4848
_1: (Curry._1(v, 1), Curry._1(v, 1))
4949
};
@@ -54,7 +54,7 @@ var suites_1 = /* :: */{
5454
"curry3",
5555
(function (param) {
5656
return {
57-
tag: /* Eq */0,
57+
TAG: /* Eq */0,
5858
_0: x,
5959
_1: 14
6060
};
@@ -65,7 +65,7 @@ var suites_1 = /* :: */{
6565
"File \"ari_regress_test.ml\", line 20, characters 4-11",
6666
(function (param) {
6767
return {
68-
tag: /* Eq */0,
68+
TAG: /* Eq */0,
6969
_0: h.contents,
7070
_1: 1
7171
};

jscomp/test/arith_lexer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ function __ocaml_lex_lexeme_rec(lexbuf, ___ocaml_lex_state) {
2929
continue ;
3030
case 1 :
3131
return {
32-
tag: /* NUMERAL */0,
32+
TAG: /* NUMERAL */0,
3333
_0: Caml_format.caml_int_of_string(Lexing.lexeme(lexbuf))
3434
};
3535
case 2 :
3636
return {
37-
tag: /* IDENT */1,
37+
TAG: /* IDENT */1,
3838
_0: Lexing.lexeme(lexbuf)
3939
};
4040
case 3 :
@@ -64,7 +64,7 @@ function lexeme(lexbuf) {
6464
}
6565

6666
function str(e) {
67-
switch (e.tag | 0) {
67+
switch (e.TAG | 0) {
6868
case /* Numeral */0 :
6969
return Pervasives.string_of_float(e._0);
7070
case /* Plus */1 :

jscomp/test/arith_parser.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@ var yyact = [
5656
(function (__caml_parser_env) {
5757
var _1 = Parsing.peek_val(__caml_parser_env, 0);
5858
return {
59-
tag: /* Numeral */0,
59+
TAG: /* Numeral */0,
6060
_0: _1
6161
};
6262
}),
6363
(function (__caml_parser_env) {
6464
var _1 = Parsing.peek_val(__caml_parser_env, 0);
6565
return {
66-
tag: /* Variable */6,
66+
TAG: /* Variable */6,
6767
_0: _1
6868
};
6969
}),
7070
(function (__caml_parser_env) {
7171
var _1 = Parsing.peek_val(__caml_parser_env, 2);
7272
var _3 = Parsing.peek_val(__caml_parser_env, 0);
7373
return {
74-
tag: /* Plus */1,
74+
TAG: /* Plus */1,
7575
_0: _1,
7676
_1: _3
7777
};
@@ -80,7 +80,7 @@ var yyact = [
8080
var _1 = Parsing.peek_val(__caml_parser_env, 2);
8181
var _3 = Parsing.peek_val(__caml_parser_env, 0);
8282
return {
83-
tag: /* Minus */2,
83+
TAG: /* Minus */2,
8484
_0: _1,
8585
_1: _3
8686
};
@@ -89,7 +89,7 @@ var yyact = [
8989
var _1 = Parsing.peek_val(__caml_parser_env, 2);
9090
var _3 = Parsing.peek_val(__caml_parser_env, 0);
9191
return {
92-
tag: /* Times */3,
92+
TAG: /* Times */3,
9393
_0: _1,
9494
_1: _3
9595
};
@@ -98,15 +98,15 @@ var yyact = [
9898
var _1 = Parsing.peek_val(__caml_parser_env, 2);
9999
var _3 = Parsing.peek_val(__caml_parser_env, 0);
100100
return {
101-
tag: /* Divide */4,
101+
TAG: /* Divide */4,
102102
_0: _1,
103103
_1: _3
104104
};
105105
}),
106106
(function (__caml_parser_env) {
107107
var _2 = Parsing.peek_val(__caml_parser_env, 0);
108108
return {
109-
tag: /* Negate */5,
109+
TAG: /* Negate */5,
110110
_0: _2
111111
};
112112
}),

jscomp/test/arith_syntax.js

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

55
function str(e) {
6-
switch (e.tag | 0) {
6+
switch (e.TAG | 0) {
77
case /* Numeral */0 :
88
return Pervasives.string_of_float(e._0);
99
case /* Plus */1 :

jscomp/test/arity_deopt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function eq(loc, x, y) {
1818
loc + (" id " + String(test_id.contents)),
1919
(function (param) {
2020
return {
21-
tag: /* Eq */0,
21+
TAG: /* Eq */0,
2222
_0: x,
2323
_1: y
2424
};

jscomp/test/array_subtle_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function eq(loc, param) {
2020
loc + (" id " + String(test_id.contents)),
2121
(function (param) {
2222
return {
23-
tag: /* Eq */0,
23+
TAG: /* Eq */0,
2424
_0: x,
2525
_1: y
2626
};

0 commit comments

Comments
 (0)