From: Hannu Niemistö Date: Tue, 4 Jul 2017 10:15:25 +0000 (+0300) Subject: (refs #7322) Implemented visitors for CHRStatement X-Git-Tag: v1.31.0~276 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=fad328317fabf79304a44cbf59068025c650a549;p=simantics%2Fplatform.git (refs #7322) Implemented visitors for CHRStatement Change-Id: I2f1b3b48fbb2060ba894cf209a9053a42bdf6560 --- 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