File tree 4 files changed +309
-185
lines changed
test/mlscript/specialisation
4 files changed +309
-185
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ abstract class MLsDiffMaker extends DiffMaker:
60
60
dbgParsing.isSet
61
61
|| dbgElab.isSet
62
62
|| debug.isSet
63
+ || dbgSpec.isSet
63
64
64
65
val etl = new TraceLogger :
65
66
override def doTrace = dbgElab.isSet || scope.exists:
@@ -193,7 +194,7 @@ abstract class MLsDiffMaker extends DiffMaker:
193
194
showElaboratedTree.get.foreach: post =>
194
195
output(s " Elaborated tree: " )
195
196
output(e.showAsTree(using post))
196
- val spec = Specialiser (stl, curCtx )
197
+ val spec = Specialiser (stl)
197
198
val spBlk = spec.topLevel(e)
198
199
showSpecialisedTree.get.foreach: post =>
199
200
output(s " Specialised tree: " )
Original file line number Diff line number Diff line change @@ -67,12 +67,12 @@ class MLsCompiler(preludeFile: os.Path):
67
67
newCtx.nest(N ).givenIn:
68
68
69
69
val (blk, newCtx) = elab.importFrom(mainParse.resultBlk)
70
- val spec = Specialiser (stl, newCtx )
70
+ val spec = Specialiser (stl)
71
71
val spBlk = spec.topLevel(blk)
72
72
val low = ltl.givenIn:
73
73
codegen.Lowering ()
74
74
val jsb = codegen.js.JSBuilder ()
75
- val le = low.program(spBlk )
75
+ val le = low.program(blk )
76
76
val baseScp : utils.Scope =
77
77
utils.Scope .empty
78
78
val nestedScp = baseScp.nest
You can’t perform that action at this time.
0 commit comments