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