(refs #7375) Replaced collectFreeVariables method by a visitor
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / elaboration / equation / Equation.java
1 package org.simantics.scl.compiler.elaboration.equation;
2
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
9 import gnu.trove.map.hash.TObjectIntHashMap;
10 import gnu.trove.set.hash.TIntHashSet;
11
12 public abstract class Equation extends Symbol {
13     public static final Equation[] EMPTY_ARRAY = new Equation[0];    
14
15     public abstract void setLocationDeep(long loc);
16
17     public abstract void checkType(TypingContext context);
18     public abstract void collectVars(TObjectIntHashMap<Variable> allVars, TIntHashSet vars);
19     public abstract void resolve(TranslationContext context);
20     public abstract void accept(EquationVisitor visitor);
21     public abstract Equation replace(ReplaceContext context);
22
23 }