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 collectRefs(TObjectIntHashMap<Object> allRefs,
25 public void collectVars(TObjectIntHashMap<Variable> allVars,
29 public void collectFreeVariables(THashSet<Variable> vars) {
32 public void simplify(SimplificationContext context) {
35 public void resolve(TranslationContext context) {
38 public void checkType(TypingContext context) {
41 public abstract Expression asExpression();
43 public boolean isVariableId() {
47 public abstract void setLocationDeep(long loc);
49 public abstract void accept(FieldAccessorVisitor visitor);