1 package org.simantics.scl.compiler.elaboration.expressions.list;
3 import org.simantics.scl.compiler.elaboration.contexts.SimplificationContext;
4 import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;
5 import org.simantics.scl.compiler.elaboration.contexts.TypingContext;
6 import org.simantics.scl.compiler.elaboration.expressions.Variable;
7 import org.simantics.scl.compiler.elaboration.expressions.VariableProcedure;
8 import org.simantics.scl.compiler.internal.elaboration.utils.ExpressionDecorator;
9 import org.simantics.scl.compiler.internal.parsing.Symbol;
10 import org.simantics.scl.compiler.types.Type;
12 import gnu.trove.map.hash.TObjectIntHashMap;
13 import gnu.trove.set.hash.THashSet;
14 import gnu.trove.set.hash.TIntHashSet;
16 public abstract class ListQualifier extends Symbol {
18 public abstract void checkType(TypingContext context);
19 public abstract void collectRefs(TObjectIntHashMap<Object> allRefs, TIntHashSet refs);
20 public abstract void collectVars(TObjectIntHashMap<Variable> allVars, TIntHashSet vars);
21 public abstract void collectFreeVariables(THashSet<Variable> vars);
23 * Called in simplification.
25 public abstract CompiledQualifier compile(SimplificationContext context);
26 public abstract void resolve(TranslationContext context);
27 public abstract void decorate(ExpressionDecorator decorator);
28 public abstract void collectEffects(THashSet<Type> effects);
29 public abstract void setLocationDeep(long loc);
30 public abstract void accept(ListQualifierVisitor visitor);
31 public abstract ListQualifier accept(ListQualifierTransformer transformer);
32 public abstract void forVariables(VariableProcedure procedure);