From fad328317fabf79304a44cbf59068025c650a549 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Hannu=20Niemist=C3=B6?= Date: Tue, 4 Jul 2017 13:15:25 +0300 Subject: [PATCH] (refs #7322) Implemented visitors for CHRStatement Change-Id: I2f1b3b48fbb2060ba894cf209a9053a42bdf6560 --- .../expressions/StandardExpressionTransformer.java | 9 +++++++++ .../expressions/StandardExpressionVisitor.java | 10 ++++++++++ .../elaboration/expressions/block/CHRStatement.java | 2 +- .../expressions/block/StatementVisitor.java | 1 + 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/StandardExpressionTransformer.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/StandardExpressionTransformer.java index ac61eb486..1bd0d22c4 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/StandardExpressionTransformer.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/expressions/StandardExpressionTransformer.java @@ -9,6 +9,7 @@ import org.simantics.scl.compiler.elaboration.equation.Equation; import org.simantics.scl.compiler.elaboration.equation.EquationVisitor; import org.simantics.scl.compiler.elaboration.expressions.accessor.ExpressionAccessor; import org.simantics.scl.compiler.elaboration.expressions.block.BindStatement; +import org.simantics.scl.compiler.elaboration.expressions.block.CHRStatement; import org.simantics.scl.compiler.elaboration.expressions.block.GuardStatement; import org.simantics.scl.compiler.elaboration.expressions.block.IncludeStatement; import org.simantics.scl.compiler.elaboration.expressions.block.LetStatement; @@ -517,4 +518,12 @@ EquationVisitor { equation.guard = equation.guard.accept(this); } + @Override + public void visit(CHRStatement statement) { + for(int i=0;i