Skip to content

Commit 3730be5

Browse files
committed
修改if语句的实现逻辑
1 parent 7d81d7a commit 3730be5

File tree

12 files changed

+130
-298
lines changed

12 files changed

+130
-298
lines changed

.mclib

Lines changed: 24 additions & 250 deletions
Original file line numberDiff line numberDiff line change
@@ -4,278 +4,52 @@
44
"id":"default",
55
"functions":[
66
{
7-
"id":"main",
7+
"id":"base",
88
"normalParams":[
99

1010
],
1111
"returnType":"void",
1212
"isAbstract":false,
1313
"tags":[
1414

15-
]
16-
}
17-
],
18-
"classes":[
19-
{
20-
"id":"Test",
21-
"parents":[
22-
"mcfpp:any"
23-
],
24-
"generic":[
25-
{
26-
"id":"i",
27-
"type":"int"
28-
}
29-
],
30-
"context":"ACED00057372002B746F702E6D636670702E7574696C2E53657269616C697A61626C65436C617373426F6479436F6E74657874054A027FE4B581400200007870",
31-
"field":{
32-
"vars":[
33-
34-
],
35-
"functions":[
36-
{
37-
"id":"_class_preinit_Test",
38-
"normalParams":[
39-
40-
],
41-
"returnType":"void",
42-
"isAbstract":false,
43-
"tags":[
44-
45-
]
46-
}
47-
]
48-
},
49-
"staticField":{
50-
"vars":[
51-
52-
],
53-
"functions":[
54-
{
55-
"id":"_class_prestaticinit_Test",
56-
"normalParams":[
57-
58-
],
59-
"returnType":"void",
60-
"isAbstract":false,
61-
"tags":[
62-
63-
]
64-
}
65-
]
66-
},
67-
"constructors":[
68-
6915
]
7016
},
7117
{
72-
"id":"Test",
73-
"parents":[
74-
"mcfpp:any"
75-
],
76-
"generic":[
77-
{
78-
"id":"i",
79-
"type":"int"
80-
},
81-
{
82-
"id":"j",
83-
"type":"int"
84-
}
18+
"id":"_if_branch_ed5be6b6-1b8d-44c7-911d-9f257d1b8761",
19+
"normalParams":[
20+
8521
],
86-
"context":"ACED00057372002B746F702E6D636670702E7574696C2E53657269616C697A61626C65436C617373426F6479436F6E74657874054A027FE4B581400200007870",
87-
"field":{
88-
"vars":[
89-
90-
],
91-
"functions":[
92-
{
93-
"id":"_class_preinit_Test",
94-
"normalParams":[
95-
96-
],
97-
"returnType":"void",
98-
"isAbstract":false,
99-
"tags":[
100-
101-
]
102-
}
103-
]
104-
},
105-
"staticField":{
106-
"vars":[
107-
108-
],
109-
"functions":[
110-
{
111-
"id":"_class_prestaticinit_Test",
112-
"normalParams":[
113-
114-
],
115-
"returnType":"void",
116-
"isAbstract":false,
117-
"tags":[
118-
119-
]
120-
}
121-
]
122-
},
123-
"constructors":[
22+
"returnType":"void",
23+
"isAbstract":false,
24+
"tags":[
12425

12526
]
12627
},
12728
{
128-
"id":"Test_int_int_0",
129-
"parents":[
130-
"mcfpp:any"
29+
"id":"expression_2b5d5e58-dff2-4c90-b43d-720c0f3baa42",
30+
"normalParams":[
31+
13132
],
132-
"field":{
133-
"vars":[
134-
{
135-
"id":"e702de50-7f50-49f6-82f9-282fde1cbff8",
136-
"type":"int"
137-
},
138-
{
139-
"id":"a09cff90-4fad-425a-8fd6-0b7541219411",
140-
"type":"int"
141-
}
142-
],
143-
"functions":[
144-
{
145-
"id":"_class_preinit_Test_int_int_0",
146-
"normalParams":[
147-
148-
],
149-
"returnType":"void",
150-
"isAbstract":false,
151-
"tags":[
152-
153-
]
154-
},
155-
{
156-
"id":"print",
157-
"normalParams":[
158-
159-
],
160-
"returnType":"void",
161-
"isAbstract":false,
162-
"tags":[
163-
164-
]
165-
},
166-
{
167-
"id":"_init_test_int_int_0_0_lead",
168-
"normalParams":[
169-
170-
],
171-
"returnType":"void",
172-
"isAbstract":false,
173-
"tags":[
174-
175-
]
176-
}
177-
]
178-
},
179-
"staticField":{
180-
"vars":[
181-
182-
],
183-
"functions":[
184-
{
185-
"id":"_class_prestaticinit_Test_int_int_0",
186-
"normalParams":[
187-
188-
],
189-
"returnType":"void",
190-
"isAbstract":false,
191-
"tags":[
192-
193-
]
194-
}
195-
]
196-
},
197-
"constructors":[
198-
{
199-
"normalParams":[
200-
201-
]
202-
}
33+
"returnType":"void",
34+
"isAbstract":false,
35+
"tags":[
36+
20337
]
20438
},
20539
{
206-
"id":"Test_int_0",
207-
"parents":[
208-
"mcfpp:any"
40+
"id":"_if_branch_c2e1e1ba-f3a4-48ce-9e2b-518a32dbacbb",
41+
"normalParams":[
42+
20943
],
210-
"field":{
211-
"vars":[
212-
{
213-
"id":"082e4970-deaa-4823-bb56-82e9482be6c1",
214-
"type":"int"
215-
}
216-
],
217-
"functions":[
218-
{
219-
"id":"_class_preinit_Test_int_0",
220-
"normalParams":[
221-
222-
],
223-
"returnType":"void",
224-
"isAbstract":false,
225-
"tags":[
226-
227-
]
228-
},
229-
{
230-
"id":"print",
231-
"normalParams":[
232-
233-
],
234-
"returnType":"void",
235-
"isAbstract":false,
236-
"tags":[
237-
238-
]
239-
},
240-
{
241-
"id":"_init_test_int_0_0_lead",
242-
"normalParams":[
243-
244-
],
245-
"returnType":"void",
246-
"isAbstract":false,
247-
"tags":[
248-
249-
]
250-
}
251-
]
252-
},
253-
"staticField":{
254-
"vars":[
255-
256-
],
257-
"functions":[
258-
{
259-
"id":"_class_prestaticinit_Test_int_0",
260-
"normalParams":[
261-
262-
],
263-
"returnType":"void",
264-
"isAbstract":false,
265-
"tags":[
266-
267-
]
268-
}
269-
]
270-
},
271-
"constructors":[
272-
{
273-
"normalParams":[
274-
275-
]
276-
}
44+
"returnType":"void",
45+
"isAbstract":false,
46+
"tags":[
47+
27748
]
27849
}
50+
],
51+
"classes":[
52+
27953
],
28054
"template":[
28155

0 commit comments

Comments
 (0)