import org.simantics.scl.compiler.types.kinds.Kinds;
import gnu.trove.map.hash.TObjectIntHashMap;
-import gnu.trove.set.hash.THashSet;
import gnu.trove.set.hash.TIntHashSet;
public class CHRLiteral extends Symbol {
parameter.collectVars(allVars, vars);
}
- public void collectFreeVariables(THashSet<Variable> vars) {
- if(relation == SpecialCHRRelation.ASSIGN) {
- parameters[1].collectFreeVariables(vars);
- }
- else {
- for(Expression parameter : parameters)
- parameter.collectFreeVariables(vars);
- if(typeConstraintEvidenceParameters != null)
- for(Expression parameter : typeConstraintEvidenceParameters)
- parameter.collectFreeVariables(vars);
- }
- }
-
public void setLocationDeep(long loc) {
if(location == Locations.NO_LOCATION) {
this.location = loc;
visitor.visit(this);
return b.toString();
}
-
- public void collectQueryEffects(THashSet<Type> effects) {
- // TODO
- }
-
- public void collectEnforceEffects(THashSet<Type> effects) {
- // TODO
- }
}