1 package org.simantics.scl.compiler.elaboration.expressions.accessor;
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.Expression;
7 import org.simantics.scl.compiler.elaboration.expressions.Variable;
8 import org.simantics.scl.compiler.elaboration.expressions.VariableProcedure;
9 import org.simantics.scl.compiler.internal.elaboration.utils.ExpressionDecorator;
10 import org.simantics.scl.compiler.internal.parsing.Symbol;
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 FieldAccessor extends Symbol {
17 public char accessSeparator;
19 public void collectRefs(TObjectIntHashMap<Object> allRefs,
23 public void collectVars(TObjectIntHashMap<Variable> allVars,
27 public void collectFreeVariables(THashSet<Variable> vars) {
30 public void simplify(SimplificationContext context) {
33 public void resolve(TranslationContext context) {
36 public void decorate(ExpressionDecorator decorator) {
39 public void checkType(TypingContext context) {
42 public abstract Expression asExpression();
44 public boolean isVariableId() {
48 public abstract void setLocationDeep(long loc);
50 public abstract void accept(FieldAccessorVisitor visitor);
52 public abstract void forVariables(VariableProcedure procedure);