1 package org.simantics.scl.compiler.elaboration.equation;
3 import org.simantics.scl.compiler.elaboration.contexts.ReplaceContext;
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.internal.parsing.Symbol;
8 import org.simantics.scl.compiler.types.Type;
10 import gnu.trove.map.hash.TObjectIntHashMap;
11 import gnu.trove.set.hash.THashSet;
12 import gnu.trove.set.hash.TIntHashSet;
14 public abstract class Equation extends Symbol {
15 public static final Equation[] EMPTY_ARRAY = new Equation[0];
17 public abstract void setLocationDeep(long loc);
19 public abstract void collectFreeVariables(THashSet<Variable> vars);
20 public abstract void collectEffects(THashSet<Type> effects);
21 public abstract void checkType(TypingContext context);
22 public abstract void collectVars(TObjectIntHashMap<Variable> allVars, TIntHashSet vars);
23 public abstract void resolve(TranslationContext context);
24 public abstract void accept(EquationVisitor visitor);
25 public abstract Equation replace(ReplaceContext context);