cleanup RTS insertion and ast postprocessing before assembly generation

This commit is contained in:
Irmen de Jong
2025-05-21 00:19:50 +02:00
parent 25d7f8808f
commit cf7bea0985
12 changed files with 131 additions and 103 deletions
@@ -206,7 +206,7 @@ main {
}"""
val result = compileText(C64Target(), false, src, outputDir, writeAssembly = false)!!.compilerAst
val st = result.entrypoint.statements
st.size shouldBe 8
st.size shouldBe 9
st[0] shouldBe instanceOf<VarDecl>()
st[1] shouldBe instanceOf<VarDecl>()
st[2] shouldBe instanceOf<VarDecl>()