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.internal.parsing.Symbol;
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 FieldAccessor extends Symbol {
15 public char accessSeparator;
17 public FieldAccessor(char accessSeparator) {
18 this.accessSeparator = accessSeparator;
21 public void collectVars(TObjectIntHashMap<Variable> allVars,
25 public void collectFreeVariables(THashSet<Variable> vars) {
28 public void simplify(SimplificationContext context) {
31 public void resolve(TranslationContext context) {
34 public void checkType(TypingContext context) {
37 public abstract Expression asExpression();
39 public boolean isVariableId() {
43 public abstract void setLocationDeep(long loc);
45 public abstract void accept(FieldAccessorVisitor visitor);