Skip to content

Commit 5a8fe53

Browse files
committed
refactorization succeed -- bootstrapping successful
1 parent 3fea588 commit 5a8fe53

23 files changed

+1022
-830
lines changed

src/cold/ast_macros.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let fibm y =
1818
(`App (_loc, (`Lid (_loc, "fib")), (x :>Astf.exp)) :>Astf.exp)
1919
let _ = register_macro ("FIB", fibm)
2020
let macro_expander =
21-
object (self : 'this_type__008_)
21+
object (self : 'this_type__016_)
2222
inherit Astf_map.map as super
2323
method! exp =
2424
function

src/cold/astf_fold.ml

Lines changed: 121 additions & 121 deletions
Large diffs are not rendered by default.

src/cold/astf_map.ml

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
open StdFan
22
open Astf
33
class map =
4-
object (self : 'this_type__117_)
4+
object (self : 'this_type__125_)
55
inherit mapbase
6-
method loc : loc -> loc= fun eta__008_ -> self#locf_t eta__008_
6+
method loc : loc -> loc= fun eta__016_ -> self#locf_t eta__016_
77
method ant : ant -> ant=
88
fun (`Ant (_a0,_a1)) ->
99
let _a0 = self#loc _a0 in
@@ -1133,272 +1133,272 @@ class map =
11331133
method locf_t : Locf.t -> Locf.t= self#unknown
11341134
end
11351135
let map_loc f =
1136-
object (_this__115_ : 'this_type__116_)
1136+
object (_this__123_ : 'this_type__124_)
11371137
inherit map as super
11381138
method! loc x = f (super#loc x)
11391139
end
11401140
let map_ant f =
1141-
object (_this__113_ : 'this_type__114_)
1141+
object (_this__121_ : 'this_type__122_)
11421142
inherit map as super
11431143
method! ant x = f (super#ant x)
11441144
end
11451145
let map_literal f =
1146-
object (_this__111_ : 'this_type__112_)
1146+
object (_this__119_ : 'this_type__120_)
11471147
inherit map as super
11481148
method! literal x = f (super#literal x)
11491149
end
11501150
let map_flag f =
1151-
object (_this__109_ : 'this_type__110_)
1151+
object (_this__117_ : 'this_type__118_)
11521152
inherit map as super
11531153
method! flag x = f (super#flag x)
11541154
end
11551155
let map_position_flag f =
1156-
object (_this__107_ : 'this_type__108_)
1156+
object (_this__115_ : 'this_type__116_)
11571157
inherit map as super
11581158
method! position_flag x = f (super#position_flag x)
11591159
end
11601160
let map_strings f =
1161-
object (_this__105_ : 'this_type__106_)
1161+
object (_this__113_ : 'this_type__114_)
11621162
inherit map as super
11631163
method! strings x = f (super#strings x)
11641164
end
11651165
let map_lident f =
1166-
object (_this__103_ : 'this_type__104_)
1166+
object (_this__111_ : 'this_type__112_)
11671167
inherit map as super
11681168
method! lident x = f (super#lident x)
11691169
end
11701170
let map_alident f =
1171-
object (_this__101_ : 'this_type__102_)
1171+
object (_this__109_ : 'this_type__110_)
11721172
inherit map as super
11731173
method! alident x = f (super#alident x)
11741174
end
11751175
let map_auident f =
1176-
object (_this__099_ : 'this_type__100_)
1176+
object (_this__107_ : 'this_type__108_)
11771177
inherit map as super
11781178
method! auident x = f (super#auident x)
11791179
end
11801180
let map_aident f =
1181-
object (_this__097_ : 'this_type__098_)
1181+
object (_this__105_ : 'this_type__106_)
11821182
inherit map as super
11831183
method! aident x = f (super#aident x)
11841184
end
11851185
let map_astring f =
1186-
object (_this__095_ : 'this_type__096_)
1186+
object (_this__103_ : 'this_type__104_)
11871187
inherit map as super
11881188
method! astring x = f (super#astring x)
11891189
end
11901190
let map_uident f =
1191-
object (_this__093_ : 'this_type__094_)
1191+
object (_this__101_ : 'this_type__102_)
11921192
inherit map as super
11931193
method! uident x = f (super#uident x)
11941194
end
11951195
let map_ident f =
1196-
object (_this__091_ : 'this_type__092_)
1196+
object (_this__099_ : 'this_type__100_)
11971197
inherit map as super
11981198
method! ident x = f (super#ident x)
11991199
end
12001200
let map_ident' f =
1201-
object (_this__089_ : 'this_type__090_)
1201+
object (_this__097_ : 'this_type__098_)
12021202
inherit map as super
12031203
method! ident' x = f (super#ident' x)
12041204
end
12051205
let map_vid f =
1206-
object (_this__087_ : 'this_type__088_)
1206+
object (_this__095_ : 'this_type__096_)
12071207
inherit map as super
12081208
method! vid x = f (super#vid x)
12091209
end
12101210
let map_vid' f =
1211-
object (_this__085_ : 'this_type__086_)
1211+
object (_this__093_ : 'this_type__094_)
12121212
inherit map as super
12131213
method! vid' x = f (super#vid' x)
12141214
end
12151215
let map_dupath f =
1216-
object (_this__083_ : 'this_type__084_)
1216+
object (_this__091_ : 'this_type__092_)
12171217
inherit map as super
12181218
method! dupath x = f (super#dupath x)
12191219
end
12201220
let map_dlpath f =
1221-
object (_this__081_ : 'this_type__082_)
1221+
object (_this__089_ : 'this_type__090_)
12221222
inherit map as super
12231223
method! dlpath x = f (super#dlpath x)
12241224
end
12251225
let map_any f =
1226-
object (_this__079_ : 'this_type__080_)
1226+
object (_this__087_ : 'this_type__088_)
12271227
inherit map as super
12281228
method! any x = f (super#any x)
12291229
end
12301230
let map_ctyp f =
1231-
object (_this__077_ : 'this_type__078_)
1231+
object (_this__085_ : 'this_type__086_)
12321232
inherit map as super
12331233
method! ctyp x = f (super#ctyp x)
12341234
end
12351235
let map_type_parameters f =
1236-
object (_this__075_ : 'this_type__076_)
1236+
object (_this__083_ : 'this_type__084_)
12371237
inherit map as super
12381238
method! type_parameters x = f (super#type_parameters x)
12391239
end
12401240
let map_row_field f =
1241-
object (_this__073_ : 'this_type__074_)
1241+
object (_this__081_ : 'this_type__082_)
12421242
inherit map as super
12431243
method! row_field x = f (super#row_field x)
12441244
end
12451245
let map_tag_names f =
1246-
object (_this__071_ : 'this_type__072_)
1246+
object (_this__079_ : 'this_type__080_)
12471247
inherit map as super
12481248
method! tag_names x = f (super#tag_names x)
12491249
end
12501250
let map_decl f =
1251-
object (_this__069_ : 'this_type__070_)
1251+
object (_this__077_ : 'this_type__078_)
12521252
inherit map as super
12531253
method! decl x = f (super#decl x)
12541254
end
12551255
let map_type_constr f =
1256-
object (_this__067_ : 'this_type__068_)
1256+
object (_this__075_ : 'this_type__076_)
12571257
inherit map as super
12581258
method! type_constr x = f (super#type_constr x)
12591259
end
12601260
let map_opt_type_constr f =
1261-
object (_this__065_ : 'this_type__066_)
1261+
object (_this__073_ : 'this_type__074_)
12621262
inherit map as super
12631263
method! opt_type_constr x = f (super#opt_type_constr x)
12641264
end
12651265
let map_decl_param f =
1266-
object (_this__063_ : 'this_type__064_)
1266+
object (_this__071_ : 'this_type__072_)
12671267
inherit map as super
12681268
method! decl_param x = f (super#decl_param x)
12691269
end
12701270
let map_decl_params f =
1271-
object (_this__061_ : 'this_type__062_)
1271+
object (_this__069_ : 'this_type__070_)
12721272
inherit map as super
12731273
method! decl_params x = f (super#decl_params x)
12741274
end
12751275
let map_opt_decl_params f =
1276-
object (_this__059_ : 'this_type__060_)
1276+
object (_this__067_ : 'this_type__068_)
12771277
inherit map as super
12781278
method! opt_decl_params x = f (super#opt_decl_params x)
12791279
end
12801280
let map_type_info f =
1281-
object (_this__057_ : 'this_type__058_)
1281+
object (_this__065_ : 'this_type__066_)
12821282
inherit map as super
12831283
method! type_info x = f (super#type_info x)
12841284
end
12851285
let map_type_repr f =
1286-
object (_this__055_ : 'this_type__056_)
1286+
object (_this__063_ : 'this_type__064_)
12871287
inherit map as super
12881288
method! type_repr x = f (super#type_repr x)
12891289
end
12901290
let map_name_ctyp f =
1291-
object (_this__053_ : 'this_type__054_)
1291+
object (_this__061_ : 'this_type__062_)
12921292
inherit map as super
12931293
method! name_ctyp x = f (super#name_ctyp x)
12941294
end
12951295
let map_or_ctyp f =
1296-
object (_this__051_ : 'this_type__052_)
1296+
object (_this__059_ : 'this_type__060_)
12971297
inherit map as super
12981298
method! or_ctyp x = f (super#or_ctyp x)
12991299
end
13001300
let map_of_ctyp f =
1301-
object (_this__049_ : 'this_type__050_)
1301+
object (_this__057_ : 'this_type__058_)
13021302
inherit map as super
13031303
method! of_ctyp x = f (super#of_ctyp x)
13041304
end
13051305
let map_pat f =
1306-
object (_this__047_ : 'this_type__048_)
1306+
object (_this__055_ : 'this_type__056_)
13071307
inherit map as super
13081308
method! pat x = f (super#pat x)
13091309
end
13101310
let map_rec_pat f =
1311-
object (_this__045_ : 'this_type__046_)
1311+
object (_this__053_ : 'this_type__054_)
13121312
inherit map as super
13131313
method! rec_pat x = f (super#rec_pat x)
13141314
end
13151315
let map_exp f =
1316-
object (_this__043_ : 'this_type__044_)
1316+
object (_this__051_ : 'this_type__052_)
13171317
inherit map as super
13181318
method! exp x = f (super#exp x)
13191319
end
13201320
let map_rec_exp f =
1321-
object (_this__041_ : 'this_type__042_)
1321+
object (_this__049_ : 'this_type__050_)
13221322
inherit map as super
13231323
method! rec_exp x = f (super#rec_exp x)
13241324
end
13251325
let map_mtyp f =
1326-
object (_this__039_ : 'this_type__040_)
1326+
object (_this__047_ : 'this_type__048_)
13271327
inherit map as super
13281328
method! mtyp x = f (super#mtyp x)
13291329
end
13301330
let map_sigi f =
1331-
object (_this__037_ : 'this_type__038_)
1331+
object (_this__045_ : 'this_type__046_)
13321332
inherit map as super
13331333
method! sigi x = f (super#sigi x)
13341334
end
13351335
let map_mbind f =
1336-
object (_this__035_ : 'this_type__036_)
1336+
object (_this__043_ : 'this_type__044_)
13371337
inherit map as super
13381338
method! mbind x = f (super#mbind x)
13391339
end
13401340
let map_constr f =
1341-
object (_this__033_ : 'this_type__034_)
1341+
object (_this__041_ : 'this_type__042_)
13421342
inherit map as super
13431343
method! constr x = f (super#constr x)
13441344
end
13451345
let map_bind f =
1346-
object (_this__031_ : 'this_type__032_)
1346+
object (_this__039_ : 'this_type__040_)
13471347
inherit map as super
13481348
method! bind x = f (super#bind x)
13491349
end
13501350
let map_case f =
1351-
object (_this__029_ : 'this_type__030_)
1351+
object (_this__037_ : 'this_type__038_)
13521352
inherit map as super
13531353
method! case x = f (super#case x)
13541354
end
13551355
let map_mexp f =
1356-
object (_this__027_ : 'this_type__028_)
1356+
object (_this__035_ : 'this_type__036_)
13571357
inherit map as super
13581358
method! mexp x = f (super#mexp x)
13591359
end
13601360
let map_stru f =
1361-
object (_this__025_ : 'this_type__026_)
1361+
object (_this__033_ : 'this_type__034_)
13621362
inherit map as super
13631363
method! stru x = f (super#stru x)
13641364
end
13651365
let map_cltdecl f =
1366-
object (_this__023_ : 'this_type__024_)
1366+
object (_this__031_ : 'this_type__032_)
13671367
inherit map as super
13681368
method! cltdecl x = f (super#cltdecl x)
13691369
end
13701370
let map_cltyp f =
1371-
object (_this__021_ : 'this_type__022_)
1371+
object (_this__029_ : 'this_type__030_)
13721372
inherit map as super
13731373
method! cltyp x = f (super#cltyp x)
13741374
end
13751375
let map_clsigi f =
1376-
object (_this__019_ : 'this_type__020_)
1376+
object (_this__027_ : 'this_type__028_)
13771377
inherit map as super
13781378
method! clsigi x = f (super#clsigi x)
13791379
end
13801380
let map_cldecl f =
1381-
object (_this__017_ : 'this_type__018_)
1381+
object (_this__025_ : 'this_type__026_)
13821382
inherit map as super
13831383
method! cldecl x = f (super#cldecl x)
13841384
end
13851385
let map_clexp f =
1386-
object (_this__015_ : 'this_type__016_)
1386+
object (_this__023_ : 'this_type__024_)
13871387
inherit map as super
13881388
method! clexp x = f (super#clexp x)
13891389
end
13901390
let map_clfield f =
1391-
object (_this__013_ : 'this_type__014_)
1391+
object (_this__021_ : 'this_type__022_)
13921392
inherit map as super
13931393
method! clfield x = f (super#clfield x)
13941394
end
13951395
let map_ep f =
1396-
object (_this__011_ : 'this_type__012_)
1396+
object (_this__019_ : 'this_type__020_)
13971397
inherit map as super
13981398
method! ep x = f (super#ep x)
13991399
end
14001400
let map_rec_bind f =
1401-
object (_this__009_ : 'this_type__010_)
1401+
object (_this__017_ : 'this_type__018_)
14021402
inherit map as super
14031403
method! rec_bind x = f (super#rec_bind x)
14041404
end

0 commit comments

Comments
 (0)