-
Notifications
You must be signed in to change notification settings - Fork 465
/
Copy pathalias_default_value_test.js
77 lines (63 loc) · 1.32 KB
/
alias_default_value_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
function Alias_default_value_test$C0(props) {
let __b = props.b;
let __a = props.a;
let a = __a !== undefined ? __a : 2;
let b = __b !== undefined ? __b : (a << 1);
return a + b | 0;
}
let C0 = {
make: Alias_default_value_test$C0
};
function Alias_default_value_test$C1(props) {
let __bar = props.foo;
if (__bar !== undefined) {
return __bar;
} else {
return "";
}
}
let C1 = {
make: Alias_default_value_test$C1
};
function Alias_default_value_test$C2(props) {
let __a = props.a;
let __bar = props.foo;
let bar = __bar !== undefined ? __bar : "";
let a = __a !== undefined ? __a : bar;
return bar + a + props.b;
}
let C2 = {
make: Alias_default_value_test$C2
};
function Alias_default_value_test$C3(props) {
let __text = props.text;
if (__text !== undefined) {
return __text;
} else {
return "Test";
}
}
let C3 = {
make: Alias_default_value_test$C3
};
function Alias_default_value_test$C4(props) {
return props.a;
}
let C4 = {
make: Alias_default_value_test$C4
};
function Alias_default_value_test$C6(props) {
return props.comp.xx;
}
let C6 = {
make: Alias_default_value_test$C6
};
exports.C0 = C0;
exports.C1 = C1;
exports.C2 = C2;
exports.C3 = C3;
exports.C4 = C4;
exports.C6 = C6;
/* No side effect */