mirror of
https://github.com/irmen/prog8.git
synced 2026-10-22 05:02:58 +00:00
improve ast source position tracking
This commit is contained in:
1 parent
05093e35c8
commit
331e2b8f2b
12 files changed
+46
-46
No files matched your search
@@ -60,7 +60,7 @@ internal class AssignmentGen(private val codeGen: IRCodeGen, private val exprGen
|
||||
// note: multi-value returns are passed throug A or AY (for the first value) then cx16.R15 down to R0
|
||||
// (this allows unencumbered use of many Rx registers if you don't return that many values)
|
||||
val returntypes = BuiltinFunctions.getValue(thing.name).returnTypes
|
||||
val signature = PtSubSignature(returntypes.map { DataType.forDt(it) }, Position.DUMMY)
|
||||
val signature = PtSubSignature(returntypes.map { DataType.forDt(it) }, values.position)
|
||||
val returnregs = signature.returnsWhatWhere()
|
||||
assignmentTargets.zip(returnregs).forEach {
|
||||
val target = it.first as PtAssignTarget
|
||||
@@ -1479,4 +1479,4 @@ internal class AssignmentGen(private val codeGen: IRCodeGen, private val exprGen
|
||||
}
|
||||
return result
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user