mirror of
https://github.com/KarolS/millfork.git
synced 2025-08-09 10:24:57 +00:00
A for-loop index variable is also a used variable
This commit is contained in:
@@ -163,7 +163,7 @@ object ForDirection extends Enumeration {
|
||||
}
|
||||
|
||||
case class ForStatement(variable: String, start: Expression, end: Expression, direction: ForDirection.Value, body: List[ExecutableStatement]) extends ExecutableStatement {
|
||||
override def getAllExpressions: List[Expression] = start :: end :: body.flatMap(_.getAllExpressions)
|
||||
override def getAllExpressions: List[Expression] = VariableExpression(variable) :: start :: end :: body.flatMap(_.getAllExpressions)
|
||||
}
|
||||
|
||||
case class DoWhileStatement(body: List[ExecutableStatement], condition: Expression) extends ExecutableStatement {
|
||||
|
Reference in New Issue
Block a user