-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathJITTest.clcl
134 lines (105 loc) · 2.01 KB
/
JITTest.clcl
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
133
class JITTestClassA {
value:int;
def initialize() {
value = 123;
}
}
class JITTestException {
message:String;
def initialize(aaa:String) {
message = aaa;
}
}
class JITTest
{
def initialize() {
}
def method():int {
1+1
}
def method2():bool {
true;
}
def method3():bool {
false;
}
def method4():int {
if(false || false || false || false) {
return 123
}
else {
return 245
}
return 1+1;
}
def method5(a:int, b:int):int {
return a + b;
}
def method6():int {
return method5(1, 2);
}
def method7():int {
a := JITTestClassA();
a.value = 234;
return a.value;
}
def method8(block_:lambda(int, int):int):int {
return block_(1, 2);
}
def clone(): JITTestException {
message := "ABC";
if(true) { #message.identifyWith(null)) {
111; #return JITTestException("");
}
else {
222
#return JITTestException("");
}
}
def method9():regex {
a := 1;
b := "BBB";
return regex "\{a} \{b}";
}
def getmaxy(): int {
return 21;
}
def getmaxx(): int {
return 22;
}
def getmaxx():int {
return 123;
}
def getmaxy():int {
return 123;
}
def mvprintw(y:int, x:int, str:String): static throws Exception {
}
def mvprintw(y:int, x:int, format:String, params:Array<Object>): static throws Exception {
}
def attron(a:int) {
}
def attroff(b:int) {
}
def refresh() {
}
def getch(): int {
return 123;
}
def endwin() {
}
A_REVERSE:static int;
KEY_UP:static int;
KEY_DOWN:static int;
KEY_ENTER:static int;
def initscr() {
}
stdscr:static int;
def keypad(stdscr_:int, bbb:bool) {
}
def noecho() {
}
def raw() {
}
data:String;
}