1 package org.simantics.scl.compiler.elaboration.expressions.accessor;
\r
3 import gnu.trove.map.hash.TObjectIntHashMap;
\r
4 import gnu.trove.set.hash.THashSet;
\r
5 import gnu.trove.set.hash.TIntHashSet;
\r
7 import org.simantics.scl.compiler.elaboration.contexts.SimplificationContext;
\r
8 import org.simantics.scl.compiler.elaboration.contexts.TranslationContext;
\r
9 import org.simantics.scl.compiler.elaboration.contexts.TypingContext;
\r
10 import org.simantics.scl.compiler.elaboration.expressions.Expression;
\r
11 import org.simantics.scl.compiler.elaboration.expressions.Variable;
\r
12 import org.simantics.scl.compiler.elaboration.expressions.VariableProcedure;
\r
13 import org.simantics.scl.compiler.internal.elaboration.utils.ExpressionDecorator;
\r
14 import org.simantics.scl.compiler.internal.parsing.Symbol;
\r
16 public abstract class FieldAccessor extends Symbol {
\r
17 public char accessSeparator;
\r
19 public void collectRefs(TObjectIntHashMap<Object> allRefs,
\r
23 public void collectVars(TObjectIntHashMap<Variable> allVars,
\r
27 public void collectFreeVariables(THashSet<Variable> vars) {
\r
30 public void simplify(SimplificationContext context) {
\r
33 public void resolve(TranslationContext context) {
\r
36 public void decorate(ExpressionDecorator decorator) {
\r
39 public void checkType(TypingContext context) {
\r
42 public abstract Expression asExpression();
\r
44 public boolean isVariableId() {
\r
48 public abstract void setLocationDeep(long loc);
\r
50 public abstract void accept(FieldAccessorVisitor visitor);
\r
52 public abstract void forVariables(VariableProcedure procedure);
\r