fix symbol prefixing on goto with expression

added coroutines example
This commit is contained in:
Irmen de Jong
2024-12-17 12:52:01 +01:00
parent 8ea032ed66
commit 7c79cdbd2f
11 changed files with 149 additions and 43 deletions

View File

@@ -116,10 +116,9 @@ class PtIfElse(position: Position) : PtNode(position) {
}
class PtJump(val target: PtExpression, position: Position) : PtNode(position) {
init {
target.parent = this
}
class PtJump(position: Position) : PtNode(position) {
val target: PtExpression
get() = children.single() as PtExpression
}