]> gerrit.simantics Code Review - simantics/platform.git/blob
80943f7d8704620edc20ef88fc928e11af447b44
[simantics/platform.git] /
1 package org.simantics.scl.compiler.elaboration.expressions;
2
3 import org.simantics.scl.compiler.elaboration.chr.translation.CHRTranslation;
4 import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;
5 import org.simantics.scl.compiler.elaboration.expressions.list.ListQualifier;
6
7 public class EPreCHRSelect extends ASTExpression {
8     ListQualifier[] query;
9     Expression expression;
10     
11     public EPreCHRSelect(ListQualifier[] query, Expression expression) {
12         this.query = query;
13         this.expression = expression;
14     }
15
16     @Override
17     public Expression resolve(TranslationContext context) {
18         return new ECHRSelect(expression, CHRTranslation.convertCHRQuery(context, true, query)).resolve(context);
19     }
20
21
22 }