-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.js
132 lines (132 loc) · 3.54 KB
/
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// Generated by Haxe 4.2.1+bf9ff69
import { Constants } from "../../System/Common/Constants.js";
import { DynamicValue } from "../../System/System/DynamicValue.js";
;var $global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this;
function Main_main() {
let speedNormal = Constants.SMALL_FONT_SIZE;
let this1 = DynamicValue.createNone();
let d = DynamicValue.createNumber(3);
let this2 = d == null ? DynamicValue.createNone() : d;
let result = this1.getValue();
let resultTwo = this2.getValue();
let d1 = DynamicValue.createNumber(10);
let resultThree = (d1 == null ? DynamicValue.createNone() : d1).getValue();
haxe_Log.trace(result,{ fileName : "src/Main.hx", lineNumber : 13, className : "_Main.Main_Fields_", methodName : "main", customParams : [resultTwo,resultThree,"Main result"]});
haxe_Log.trace(speedNormal,{ fileName : "src/Main.hx", lineNumber : 14, className : "_Main.Main_Fields_", methodName : "main", customParams : ["Speed normal from Constants"]});
haxe_Log.trace("Paper Maker plugin from Haxe programming language",{ fileName : "src/Main.hx", lineNumber : 15, className : "_Main.Main_Fields_", methodName : "main"});
}
Math.__name__ = true;
class Std {
static string(s) {
return js_Boot.__string_rec(s,"");
}
}
Std.__name__ = true;
class haxe_Log {
static formatOutput(v,infos) {
let str = Std.string(v);
if(infos == null) {
return str;
}
let pstr = infos.fileName + ":" + infos.lineNumber;
if(infos.customParams != null) {
let _g = 0;
let _g1 = infos.customParams;
while(_g < _g1.length) str += ", " + Std.string(_g1[_g++]);
}
return pstr + ": " + str;
}
static trace(v,infos) {
let str = haxe_Log.formatOutput(v,infos);
if(typeof(console) != "undefined" && console.log != null) {
console.log(str);
}
}
}
haxe_Log.__name__ = true;
class haxe_iterators_ArrayIterator {
constructor(array) {
this.current = 0;
this.array = array;
}
hasNext() {
return this.current < this.array.length;
}
next() {
return this.array[this.current++];
}
}
haxe_iterators_ArrayIterator.__name__ = true;
class js_Boot {
static __string_rec(o,s) {
if(o == null) {
return "null";
}
if(s.length >= 5) {
return "<...>";
}
let t = typeof(o);
if(t == "function" && (o.__name__ || o.__ename__)) {
t = "object";
}
switch(t) {
case "function":
return "<function>";
case "object":
if(((o) instanceof Array)) {
let str = "[";
s += "\t";
let _g = 0;
let _g1 = o.length;
while(_g < _g1) {
let i = _g++;
str += (i > 0 ? "," : "") + js_Boot.__string_rec(o[i],s);
}
str += "]";
return str;
}
let tostr;
try {
tostr = o.toString;
} catch( _g ) {
return "???";
}
if(tostr != null && tostr != Object.toString && typeof(tostr) == "function") {
let s2 = o.toString();
if(s2 != "[object Object]") {
return s2;
}
}
let str = "{\n";
s += "\t";
let hasp = o.hasOwnProperty != null;
let k = null;
for( k in o ) {
if(hasp && !o.hasOwnProperty(k)) {
continue;
}
if(k == "prototype" || k == "__class__" || k == "__super__" || k == "__interfaces__" || k == "__properties__") {
continue;
}
if(str.length != 2) {
str += ", \n";
}
str += s + k + " : " + js_Boot.__string_rec(o[k],s);
}
s = s.substring(1);
str += "\n" + s + "}";
return str;
case "string":
return o;
default:
return String(o);
}
}
}
js_Boot.__name__ = true;
{
String.__name__ = true;
Array.__name__ = true;
}
js_Boot.__toStr = ({ }).toString;
Main_main();