]> gerrit.simantics Code Review - simantics/platform.git/blob
34ef7539515dafdbacb5b0a9d459d117fc822359
[simantics/platform.git] /
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.elaboration.expressions.VariableProcedure;
8 import org.simantics.scl.compiler.internal.parsing.Symbol;
9 import org.simantics.scl.compiler.types.Type;
10
11 import gnu.trove.map.hash.TObjectIntHashMap;
12 import gnu.trove.set.hash.THashSet;
13 import gnu.trove.set.hash.TIntHashSet;
14
15 public abstract class Equation extends Symbol {
16     public static final Equation[] EMPTY_ARRAY = new Equation[0];    
17
18     public abstract void setLocationDeep(long loc);
19
20     public abstract void forVariables(VariableProcedure procedure);
21     public abstract void collectFreeVariables(THashSet<Variable> vars);
22     public abstract void collectEffects(THashSet<Type> effects);
23     public abstract void checkType(TypingContext context);
24     public abstract void collectRefs(TObjectIntHashMap<Object> allRefs, TIntHashSet refs);
25     public abstract void collectVars(TObjectIntHashMap<Variable> allVars, TIntHashSet vars);
26     public abstract void resolve(TranslationContext context);
27     public abstract void accept(EquationVisitor visitor);
28     public abstract Equation replace(ReplaceContext context);
29
30 }