1 package org.simantics.scl.compiler.elaboration.query;
3 import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;
4 import org.simantics.scl.compiler.elaboration.contexts.TypingContext;
5 import org.simantics.scl.compiler.elaboration.expressions.Variable;
6 import org.simantics.scl.compiler.errors.Locations;
8 import gnu.trove.map.hash.TObjectIntHashMap;
9 import gnu.trove.set.hash.TIntHashSet;
11 public abstract class QAbstractModifier extends Query {
14 public QAbstractModifier(Query query) {
19 public Query resolve(TranslationContext context) {
20 query = query.resolve(context);
25 public void checkType(TypingContext context) {
26 query.checkType(context);
30 public void collectVars(TObjectIntHashMap<Variable> allVars,
32 query.collectVars(allVars, vars);
36 public void setLocationDeep(long loc) {
37 if(location == Locations.NO_LOCATION) {
39 query.setLocationDeep(loc);