forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbs_qualified.js
52 lines (47 loc) · 1.1 KB
/
bs_qualified.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
'use strict';
var ZZ = require("X");
var Z = require("z");
var Vscode = require("vscode");
var GlMatrix = require("gl-matrix");
function f(a, b, c) {
Vscode.commands.executeCommands("hi", a, b, c);
return process.env;
}
function f2() {
return /* tuple */[
Z.a0.a1.a2.hi,
a0.a1.a2.ho,
Math.imul(1, 2)
];
}
function f3(x) {
new (global.Buffer)(20);
new (global.a0.a1.a2.Buffer)(20);
new (ZZ.global.a0.a1.a2.Buffer)(100);
new (ZZ.global.a0.a1.a2.makeBuffer3)(20);
console.log(Math.max(1.0, 2.0));
console.log(x.a0[0]);
console.log(x.a0.a1[0]);
console.log(x.a0.a1.a2[0]);
x.a0[0] = "x";
x.a0.a1[0] = "x";
x.a0.a1.a2[0] = "x";
console.log(x.a0.getX1);
console.log(x.a0.a1.getX2);
console.log(x.a0.a1.a2.getX3);
x.a0.setX1 = 0;
x.a0.a1.setX2 = 0;
x.a0.a1.a2.setX3 = 0;
x["a0-hi"].a1.a2.setXWeird3 = 0;
x.a0.send1(0);
x.a0.a1.send2(0);
x.a0.a1.send3(0);
x.a0.psend1(0);
x.a0.a1.psend2(0);
x.a0.a1.psend3(0);
return GlMatrix.mat4.create();
}
exports.f = f;
exports.f2 = f2;
exports.f3 = f3;
/* X Not a pure module */