mirror of
https://github.com/KarolS/millfork.git
synced 2024-05-31 18:41:30 +00:00
Fix handling of non-top-level return dispatch statements
This commit is contained in:
parent
6af84d1628
commit
790c836771
|
@ -722,7 +722,7 @@ case class StandardReturnDispatchLabel(labels:List[Expression]) extends ReturnDi
|
||||||
}
|
}
|
||||||
|
|
||||||
case class ReturnDispatchBranch(label: ReturnDispatchLabel, function: Expression, params: List[Expression]) extends Node {
|
case class ReturnDispatchBranch(label: ReturnDispatchLabel, function: Expression, params: List[Expression]) extends Node {
|
||||||
def getAllExpressions: List[Expression] = label.getAllExpressions ++ params
|
def getAllExpressions: List[Expression] = label.getAllExpressions ++ params :+ function
|
||||||
}
|
}
|
||||||
|
|
||||||
case class ReturnDispatchStatement(indexer: Expression, params: List[LhsExpression], branches: List[ReturnDispatchBranch]) extends ExecutableStatement {
|
case class ReturnDispatchStatement(indexer: Expression, params: List[LhsExpression], branches: List[ReturnDispatchBranch]) extends ExecutableStatement {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user